Abstract

It is a challenge to design an effective algorithm utilizing problem features in automated test case generation for path coverage (ATCG-PC). A feature of ATCG-PC “similar paths are usually executed by similar test cases” was touched by a few scholars and can be further exploited to design more effective algorithms. Inspired by this feature, this paper proposes a two-stage local search strategy, denoted dual scatter search (DS) strategy, which concatenates two improved scatter search strategies with different search behaviors. The first stage aims to fully exploit the discovered test cases to search for desired test cases, and the latter stage aims to mine the unexploited areas of the first stage via using less computational overhead. Then, a backtracking search optimization algorithm with dual scatter search strategy (BSA-DS) is proposed, which incorporates DS strategy into the backtracking search optimization algorithm (BSA) with strong exploration capability. BSA is first introduced into the field of ATCG-PC. The performance of BSA-DS and some state-of-the-art algorithms is tested on twelve popular benchmark programs. Experimental studies demonstrate that BSA-DS achieves the highest path coverage with the fewest test cases and running time on at least eight out of the twelve programs.

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