4.4 Article

Automatic PSO Based Path Generation Technique for Data Flow Coverage

Journal

INTELLIGENT AUTOMATION AND SOFT COMPUTING
Volume 29, Issue 1, Pages 147-164

Publisher

TECH SCIENCE PRESS
DOI: 10.32604/iasc.2021.015708

Keywords

Data flow testing; genetic algorithm; path testing; particle swarm optimization

Funding

  1. Taif University Researchers Supporting Project (TURSP), Taif University, Taif, Saudi Arabia [TURSP2020/73]

Ask authors/readers for more resources

Path-based testing involves finding all paths throughout the code under test and creating a test suite to cover these paths. A new technique presented in this paper utilizes Particle Swarm Optimization to generate a set of paths satisfying a given criterion, showing better efficiency compared to a genetic algorithm in an empirical study.
Path-based testing involves two main steps: 1) finding all paths throughout the code under test; 2) creating a test suite to cover these paths. Unfortunately, covering all paths in the code under test is impossible. Path-based testing could be achieved by targeting a subset of all feasible paths that satisfy a given testing criterion. Then, a test suite is created to execute this paths subset. Generating those paths is a key problem in path testing. In this paper, a new path testing technique is presented. This technique employs Particle Swarm Optimization (PSO) for generating a set of paths to satisfy the all-uses criterion. To construct such paths for programs with loops, the proposed technique applies the ZOT-criterion. This criterion selects paths that traverse loops 0, 1, and 2 times. The proposed technique utilizes the decision-decision graph of the program under test to represent the position vector of the particle. To evaluate the efficiency of the presented technique, an empirical study has been conducted, which included 15 C# programs. In this study, the proposed technique has been compared with a genetic algorithm (GA)-based one. The results showed that the PSO required 199 generations, while the GA required 349 generations, to satisfy all def-use paths of all programs. In addition, the proposed technique required a smaller number of paths than the GA-based one.

Authors

I am an author on this paper
Click your name to claim this paper and add it to your profile.

Reviews

Primary Rating

4.4
Not enough ratings

Secondary Ratings

Novelty
-
Significance
-
Scientific rigor
-
Rate this paper

Recommended

No Data Available
No Data Available