scholarly journals Learning how to search: generating effective test cases through adaptive fitness function selection

2022 ◽  
Vol 27 (2) ◽  
Author(s):  
Hussein Almulla ◽  
Gregory Gay

AbstractSearch-based test generation is guided by feedback from one or more fitness functions—scoring functions that judge solution optimality. Choosing informative fitness functions is crucial to meeting the goals of a tester. Unfortunately, many goals—such as forcing the class-under-test to throw exceptions, increasing test suite diversity, and attaining Strong Mutation Coverage—do not have effective fitness function formulations. We propose that meeting such goals requires treating fitness function identification as a secondary optimization step. An adaptive algorithm that can vary the selection of fitness functions could adjust its selection throughout the generation process to maximize goal attainment, based on the current population of test suites. To test this hypothesis, we have implemented two reinforcement learning algorithms in the EvoSuite unit test generation framework, and used these algorithms to dynamically set the fitness functions used during generation for the three goals identified above. We have evaluated our framework, EvoSuiteFIT, on a set of Java case examples. EvoSuiteFIT techniques attain significant improvements for two of the three goals, and show limited improvements on the third when the number of generations of evolution is fixed. Additionally, for two of the three goals, EvoSuiteFIT detects faults missed by the other techniques. The ability to adjust fitness functions allows strategic choices that efficiently produce more effective test suites, and examining these choices offers insight into how to attain our testing goals. We find that adaptive fitness function selection is a powerful technique to apply when an effective fitness function does not already exist for achieving a testing goal.

Electronics ◽  
2020 ◽  
Vol 9 (8) ◽  
pp. 1311
Author(s):  
Yuchen Wang ◽  
Rong Xie

We proposed a pixel-based evolution method to automatically generate evolutionary art. Our method can generate diverse artworks, including original artworks and imitating artworks, with different artistic styles and high visual complexity. The generation process is fully automated. In order to adapt to the pixel-based method, a von Neumann neighbor topology-modified particle swarm optimization (PSO) is employed to the proposed method. The fitness functions of PSO are well prepared. Firstly, we come up with a set of aesthetic fitness functions. Next, the imitating fitness function is designed. Finally, the aesthetic fitness functions and the imitating fitness function are weighted into one single object function, which is used in the modified PSO. Both the original outputs and imitating outputs are shown. A questionnaire is designed to investigate the subjective aesthetic feeling of proposed evolutionary art, and the statistics are shown.


Leonardo ◽  
2016 ◽  
Vol 49 (3) ◽  
pp. 251-256 ◽  
Author(s):  
Penousal Machado ◽  
Tiago Martins ◽  
Hugo Amaro ◽  
Pedro H. Abreu

Photogrowth is a creativity support tool for the creation of nonphotorealistic renderings of images. The authors discuss its evolution from a generative art application to an interactive evolutionary art tool and finally into a meta-level interactive art system in which users express their artistic intentions through the design of a fitness function. The authors explore the impact of these changes on the sense of authorship, highlighting the range of imagery that can be produced by the system.


Author(s):  
Jose Torres-Jimenez ◽  
Himer Avila-George ◽  
Ezra Federico Parra-González

Software testing is an essential activity to ensure the quality of software systems. Combinatorial testing is a method that facilitates the software testing process; it is based on an empirical evidence where almost all faults in a software component are due to the interaction of very few parameters. The test generation problem for combinatorial testing can be represented as the construction of a matrix that has certain properties; typically this matrix is a covering array. Covering arrays have a small number of tests, in comparison with an exhaustive approach, and provide a level of interaction coverage among the parameters involved. This paper presents a repository that contains binary covering arrays involving many levels of interaction. Also, it discusses the importance of covering array repositories in the construction of better covering arrays. In most of the cases, the size of the covering arrays included in the repository reported here are the best upper bounds known, moreover, the files containing the matrices of these covering arrays are available to be downloaded. The final purpose of our Binary Covering Arrays Repository (BCAR) is to provide software testing practitioners the best-known binary test-suites.


Author(s):  
Yuanwei Ma ◽  
Dezhong Wang ◽  
Zhilong Ji ◽  
Nan Qian

In atmospheric dispersion models of nuclear accident, the empirical dispersion coefficients were obtained under certain experiment conditions, which is different from actual conditions. This deviation brought in the great model errors. A better estimation of the radioactive nuclide’s distribution could be done by correcting coefficients with real-time observed value. This reverse problem is nonlinear and sensitive to initial value. Genetic Algorithm (GA) is an appropriate method for this correction procedure. Fitness function is a particular type of objective function to achieving the set goals. To analysis the fitness functions’ influence on the correction procedure and the dispersion model’s forecast ability, four fitness functions were designed and tested by a numerical simulation. In the numerical simulation, GA, coupled with Lagrange dispersion model, try to estimate the coefficients with model errors taken into consideration. Result shows that the fitness functions, in which station is weighted by observed value and by distance far from release point, perform better when it exists significant model error. After performing the correcting procedure on the Kincaid experiment data, a significant boost was seen in the dispersion model’s forecast ability.


2015 ◽  
Vol 764-765 ◽  
pp. 444-447
Author(s):  
Keun Hong Chae ◽  
Hua Ping Liu ◽  
Seok Ho Yoon

In this paper, we propose a multiple objective fitness function for cognitive engines by using the genetic algorithm (GA). Specifically, we propose four single objective fitness functions, and finally, we propose a multiple objective fitness function based on the single objective fitness functions for transmission parameter optimization. Numerical results demonstrate that we can obtain transmission parameter sets optimized for given transmission scenarios with the GA-based cognitive engine incorporating the proposed objective fitness function.


2015 ◽  
Vol 66 (4) ◽  
pp. 185-193 ◽  
Author(s):  
Ján Hudec ◽  
Elena Gramatová

Abstract The paper presents a new functional test generation method for processors testing based on genetic algorithms and evolutionary strategies. The tests are generated over an instruction set architecture and a processor description. Such functional tests belong to the software-oriented testing. Quality of the tests is evaluated by code coverage of the processor description using simulation. The presented test generation method uses VHDL models of processors and the professional simulator ModelSim. The rules, parameters and fitness functions were defined for various genetic algorithms used in automatic test generation. Functionality and effectiveness were evaluated using the RISC type processor DP32.


1983 ◽  
Vol 219 (1216) ◽  
pp. 327-353 ◽  

Fisher (1930), Haldane (1932), and others discussed short and long term fitness relationships of the biological basis of social behaviour. Hamilton (1964 a , b ) proposed the inequality b / c > 1/ r ( b and c are marginal benefit and cost parameters, respectively, r is an appropriate kinship coefficient) as an essential concomitant of the evolution of altruism. Virtually all current kin selection models take the marginal benefit and cost parameters as primitive concepts and combine them in various ways to determine population fitness values. We offer an intrinsic ‘fitness function’ approach to modelling the theory of kin selection. The components of the model involve: ( a ) the delineation of the basic group structure specifying individual relationships; ( b ) the specification of local fitness functions that depend on group composition; ( c ) the determination of average fitness functions for the different phenotypes with respect to the population at large. We then derive a pair of benefit and cost functions, which are functions of the group composition and the numbers of altruist and selfish phenotypes. In this new framework the quantitative validity of the Hamilton criterion for the evolution of altruism are assessed and reinterpreted.


Sign in / Sign up

Export Citation Format

Share Document