Abstract

Problem statement: This study proposes a new idea for generation of minimized test suite in the test case generation using the mutant gene algorithm, which not only identifies the best test cases but also reduces the number of test cases generated, selects test cases optimally there improving the performance in testing of software. Test cases are generated by using branch coverage algorithm and a coverage table is created for verifying branch coverage. Approach: The process of minimization was done through Mutant gene algorithm. Mutant gene algorithm combined both the mutation testing process and genetic algorithm. Initially a number of chromosomes were generated in random order. Mutation score was used for finding fitness function. The fitness function was found for all the randomly generated chromosomes by applying the mutant score to the function. Rank based selection was used for selecting the chromosomes. After the selection of the chromosomes one-point crossover was performed. A population of chromosomes obtained, which was given as the input for the next iteration. Large iterations were performed to obtain the best test case with higher fitness value, it was the end condition. Results: Between the measured iterations the value of the mutant score remained constant. The results of the experiments showed that the minimization process was competitive with other methods and even outperforms them for complex cases. Conclusion: The whole generation and minimization process was fully automated; redundant explorations of test case were avoided, resulting in efficient generation of test cases.

Highlights

  • The complexity of software systems has been increasing dramatically in the past decade and softwareTesting of software is the appendage used to testing as a labor-intensive component is becoming assess the quality of computer software

  • The level of confidence in a software component is often linked to the quality of its test cases. This quality can in turn be evaluated with mutation analysis: faulty components are systematically generated to check the proportion of mutants detected (“killed”) by the test cases

  • Our proposed work which looks at genetic algorithms to solve this problem and model it as follows: a test case can be considered as a predator while a mutant program is analogous to a prey

Read more

Summary

Introduction

The complexity of software systems has been increasing dramatically in the past decade and softwareTesting of software is the appendage used to testing as a labor-intensive component is becoming assess the quality of computer software. This quality can in turn be evaluated with mutation analysis: faulty components (mutants) are systematically generated to check the proportion of mutants detected (“killed”) by the test cases. Our proposed work which looks at genetic algorithms to solve this problem and model it as follows: a test case can be considered as a predator while a mutant program is analogous to a prey.

Results
Conclusion
Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call