On the effectiveness of using elitist genetic algorithm in mutation testing

29Citations
Citations of this article
41Readers
Mendeley users who have this article in their library.

Abstract

Manual test case generation is an exhaustive and time-consuming process. However, automated test data generation may reduce the efforts and assist in creating an adequate test suite embracing predefined goals. The quality of a test suite depends on its fault-finding behavior. Mutants have been widely accepted for simulating the artificial faults that behave similarly to realistic ones for test data generation. In prior studies, the use of search-based techniques has been extensively reported to enhance the quality of test suites. Symmetry, however, can have a detrimental impact on the dynamics of a search-based algorithm, whose performance strongly depends on breaking the "symmetry" of search space by the evolving population. This study implements an elitist Genetic Algorithm (GA) with an improved fitness function to expose maximum faults while also minimizing the cost of testing by generating less complex and asymmetric test cases. It uses the selective mutation strategy to create low-cost artificial faults that result in a lesser number of redundant and equivalent mutants. For evolution, reproduction operator selection is repeatedly guided by the traces of test execution and mutant detection that decides whether to diversify or intensify the previous population of test cases. An iterative elimination of redundant test cases further minimizes the size of the test suite. This study uses 14 Java programs of significant sizes to validate the efficacy of the proposed approach in comparison to Initial Random tests and a widely used evolutionary framework in academia, namely Evosuite. Empirically, our approach is found to be more stable with significant improvement in the test case efficiency of the optimized test suite.

References Powered by Scopus

Hints on test data selection: Help for the practicing programmer

1511Citations
N/AReaders
Get full text

An analysis and survey of the development of mutation testing

1300Citations
N/AReaders
Get full text

Nature-Inspired Optimization Algorithms

1161Citations
N/AReaders
Get full text

Cited by Powered by Scopus

Application of improved LightGBM model in blood glucose prediction

73Citations
N/AReaders
Get full text

A hybrid genetic algorithm and tabu search for minimizing makespan in flow shop scheduling problem

62Citations
N/AReaders
Get full text

Intrusion detection of UAVs based on the deep belief network optimized by PSO

51Citations
N/AReaders
Get full text

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Cite

CITATION STYLE

APA

Rani, S., Suri, B., & Goyal, R. (2019). On the effectiveness of using elitist genetic algorithm in mutation testing. Symmetry, 11(9). https://doi.org/10.3390/sym11091145

Readers' Seniority

Tooltip

PhD / Post grad / Masters / Doc 15

58%

Lecturer / Post doc 6

23%

Professor / Associate Prof. 3

12%

Researcher 2

8%

Readers' Discipline

Tooltip

Computer Science 16

59%

Engineering 9

33%

Chemical Engineering 1

4%

Nursing and Health Professions 1

4%

Save time finding and organizing research with Mendeley

Sign up for free