Combinatorial Test Case Generation Based on ROBDD and Improved Particle Swarm Optimization Algorithm
In applications of software testing, the cause–effect graph method is an approach often used to design test cases by analyzing various combinations of inputs with a graphical approach. However, not all inputs have equal impacts on the results, and approaches based on exhaustive testing are generally...
Main Authors: | , , |
---|---|
Format: | Article |
Language: | English |
Published: |
MDPI AG
2024-01-01
|
Series: | Applied Sciences |
Subjects: | |
Online Access: | https://www.mdpi.com/2076-3417/14/2/753 |
_version_ | 1797340154494451712 |
---|---|
author | Shunxin Li Yinglei Song Yaying Zhang |
author_facet | Shunxin Li Yinglei Song Yaying Zhang |
author_sort | Shunxin Li |
collection | DOAJ |
description | In applications of software testing, the cause–effect graph method is an approach often used to design test cases by analyzing various combinations of inputs with a graphical approach. However, not all inputs have equal impacts on the results, and approaches based on exhaustive testing are generally time-consuming and laborious. As a statute-based software-testing method, combinatorial testing aims to select a small but effective number of test cases from the large space of all possible combinations of the input values for the software to be tested, and to generate a set of test cases with a high degree of coverage and high error detection capability. In this paper, the reduced ordered binary decision diagram is utilized to simplify the cause–effect graph so as to reduce the numbers of both the inputs and test cases, thereby saving the testing cost. In addition, an improved particle swarm optimization algorithm is proposed to significantly reduce the computation time needed to generate test cases. Experiments on several systems show that the proposed method can generate excellent results for test case generation. |
first_indexed | 2024-03-08T09:58:50Z |
format | Article |
id | doaj.art-7bb2c93f0a924ff8b1ef1fcc82551ef2 |
institution | Directory Open Access Journal |
issn | 2076-3417 |
language | English |
last_indexed | 2024-03-08T09:58:50Z |
publishDate | 2024-01-01 |
publisher | MDPI AG |
record_format | Article |
series | Applied Sciences |
spelling | doaj.art-7bb2c93f0a924ff8b1ef1fcc82551ef22024-01-29T13:44:12ZengMDPI AGApplied Sciences2076-34172024-01-0114275310.3390/app14020753Combinatorial Test Case Generation Based on ROBDD and Improved Particle Swarm Optimization AlgorithmShunxin Li0Yinglei Song1Yaying Zhang2School of Automation, Jiangsu University of Science and Technology, Zhenjiang 212003, ChinaSchool of Automation, Jiangsu University of Science and Technology, Zhenjiang 212003, ChinaChina Ship Scientific Research Center, Wuxi 214082, ChinaIn applications of software testing, the cause–effect graph method is an approach often used to design test cases by analyzing various combinations of inputs with a graphical approach. However, not all inputs have equal impacts on the results, and approaches based on exhaustive testing are generally time-consuming and laborious. As a statute-based software-testing method, combinatorial testing aims to select a small but effective number of test cases from the large space of all possible combinations of the input values for the software to be tested, and to generate a set of test cases with a high degree of coverage and high error detection capability. In this paper, the reduced ordered binary decision diagram is utilized to simplify the cause–effect graph so as to reduce the numbers of both the inputs and test cases, thereby saving the testing cost. In addition, an improved particle swarm optimization algorithm is proposed to significantly reduce the computation time needed to generate test cases. Experiments on several systems show that the proposed method can generate excellent results for test case generation.https://www.mdpi.com/2076-3417/14/2/753test case generationreduced ordered binary decision diagramimproved particle swarm optimization algorithmcombinatorial test |
spellingShingle | Shunxin Li Yinglei Song Yaying Zhang Combinatorial Test Case Generation Based on ROBDD and Improved Particle Swarm Optimization Algorithm Applied Sciences test case generation reduced ordered binary decision diagram improved particle swarm optimization algorithm combinatorial test |
title | Combinatorial Test Case Generation Based on ROBDD and Improved Particle Swarm Optimization Algorithm |
title_full | Combinatorial Test Case Generation Based on ROBDD and Improved Particle Swarm Optimization Algorithm |
title_fullStr | Combinatorial Test Case Generation Based on ROBDD and Improved Particle Swarm Optimization Algorithm |
title_full_unstemmed | Combinatorial Test Case Generation Based on ROBDD and Improved Particle Swarm Optimization Algorithm |
title_short | Combinatorial Test Case Generation Based on ROBDD and Improved Particle Swarm Optimization Algorithm |
title_sort | combinatorial test case generation based on robdd and improved particle swarm optimization algorithm |
topic | test case generation reduced ordered binary decision diagram improved particle swarm optimization algorithm combinatorial test |
url | https://www.mdpi.com/2076-3417/14/2/753 |
work_keys_str_mv | AT shunxinli combinatorialtestcasegenerationbasedonrobddandimprovedparticleswarmoptimizationalgorithm AT yingleisong combinatorialtestcasegenerationbasedonrobddandimprovedparticleswarmoptimizationalgorithm AT yayingzhang combinatorialtestcasegenerationbasedonrobddandimprovedparticleswarmoptimizationalgorithm |