A Path-Oriented Test Data Generation Approach Hybridizing Genetic Algorithm and Artificial Immune System

Author(s):  
Gargi Bhattacharjee ◽  
Ashish Singh Saluja
Author(s):  
H Park ◽  
N-S Kwak ◽  
J Lee

The immune system has pattern recognition capabilities based on reinforced learning, memory, and affinity maturation interacting between antigens (Ags) and antibodies (Abs). This article deals with an adaptation of artificial immune system (AIS) into genetic-algorithm (GA)-based multi-objective optimization. The present study utilizes the pattern recognition from an AIS and the evolution from a GA. Using affinity measures between Ags and Abs, GA-based immune simulation discovers a generalist Ab that represents the common pattern among Ags. Non-dominated Pareto-optimal solutions are obtained via GA-based immune simulation in which dominated designs are considered as Ags, whereas non-dominated designs are assigned to Abs. This article discusses the procedure of identifying Pareto-optimal solutions through the immune system-based pattern recognition. A number of mathematical function problems that are described by discontinuity or disconnection in the shape of Pareto surface are first examined as test examples. Subsequently, engineering optimization problems such as rotating flywheel disc and ten-bar planar truss are explored to support the present study.


Author(s):  
CHENGYING MAO ◽  
XINXIN YU

The quality of test data has an important impact on the effect of software testing, so test data generation has always been a key task for finding the potential faults in program code. In structural testing, the primary goal is to cover some kinds of structure elements with some specific inputs. Search-based test data generation provides a rational way to handle this difficult problem. In the past, some well-known meta-heuristic search algorithms have been successfully utilized to solve this issue. In this paper, we introduce a variant of genetic algorithm (GA), called quantum-inspired genetic algorithm (QIGA), to generate the test data with stronger coverage ability. In this new algorithm, the traditional binary bit is replaced by a quantum bit (Q-bit) to enlarge the search space so as to avoid falling into local optimal solution. On the other hand, some other strategies such as quantum rotation gate and catastrophe operation are also used to improve algorithm efficiency and quality of test data. In addition, experimental analysis on eight real-world programs is performed to validate the effectiveness of our method. The results show that QIGA-based method can generate test data with higher coverage in much smaller convergence generations than GA-based method. More importantly, our proposed method is more robust for algorithm parameter change.


Sign in / Sign up

Export Citation Format

Share Document