Object-Oriented Test Case Generation Using Teaching Learning-Based Optimization (TLBO) Algorithm

被引:3
作者
Al-Masri, Ohood [1 ]
Al-Sorori, Wedad [1 ]
机构
[1] Univ Sci & Technol Sanaa, Sanaa, Yemen
关键词
Software algorithms; Software; Genetic algorithms; Particle swarm optimization; Software testing; Codes; Object oriented modeling; Test suite generation; unit testing; object-oriented test case generation; coverage-based optimization; BEE COLONY ALGORITHM; CUCKOO SEARCH;
D O I
10.1109/ACCESS.2022.3214841
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Researchers are currently seeking effective methods for automated software testing to reduce time, avoid test case redundancy, and create comprehensive test cases to cover (paths, benches, conditions, and statements). Generating a minimum number of test cases and covering all code paths is challenging in automated test case generation. Therefore, the use of optimization algorithms has become a popular trend for generating test cases to achieve many goals. In this study, we used a teaching-learning-based optimization algorithm to generate the minimum number of test cases. We compared our results with those of other state-of-the-art methods based on the path coverage for ten Java programs. The motive for using this algorithm is to optimize the number of test cases that cover all code paths in the unit test. The results emphasize that the proposed algorithm generates the minimum number of test cases and covers all paths in the code at a full-coverage rate.
引用
收藏
页码:110879 / 110888
页数:10
相关论文
共 36 条
[1]  
Alazzawi AK, 2019, INT J ADV COMPUT SC, V10, P259
[2]  
Bahaweres R. B., 2017, 2017 4 INT C ELECT E, P1, DOI 10.1109/EECSI.2017.8239088
[3]   Augmenting ant colony optimization with adaptive random testing to cover prime paths [J].
Bidgoli, Atieh Monemi ;
Haghighi, Hassan .
JOURNAL OF SYSTEMS AND SOFTWARE, 2020, 161
[4]   Ant Colony Optimization for Object-Oriented Unit Test Generation [J].
Bruce, Dan ;
Menendez, Hector D. ;
Barr, Earl T. ;
Clark, David .
SWARM INTELLIGENCE, ANTS 2020, 2020, 12421 :29-41
[5]   Enhanced Genetic Algorithm for Automatic Generation of Unit and Integration Test Suite [J].
Bui Thi Mai Anh .
2020 RIVF INTERNATIONAL CONFERENCE ON COMPUTING & COMMUNICATION TECHNOLOGIES (RIVF 2020), 2020, :298-303
[6]  
Damia A. H., 2020, INT J WEB RES, V3, P1
[7]   A Multi-Objective Particle Swarm Optimization for Test Case Selection Based on Functional Requirements Coverage and Execution Effort [J].
de Souza, Luciano S. ;
de Miranda, Pericles B. C. ;
Prudencio, Ricardo B. C. ;
Barros, Flavia de A. .
2011 23RD IEEE INTERNATIONAL CONFERENCE ON TOOLS WITH ARTIFICIAL INTELLIGENCE (ICTAI 2011), 2011, :245-252
[8]   Automation of software test data generation using genetic algorithm and reinforcement learning [J].
Esnaashari, Mehdi ;
Damia, Amir Hossein .
EXPERT SYSTEMS WITH APPLICATIONS, 2021, 183
[9]  
Gamido HV., 2019, International Journal of Electrical and Computer Engineering, V9, P4473, DOI DOI 10.11591/IJECE.V9I5.PP4473-4478
[10]  
Geetha B., 2020, ICTACT J SOFT COMPUT, V11, P1, DOI [10.21917/ijsc.2020.0318, DOI 10.21917/IJSC.2020.0318]