Journal of Software Engineering and Applications

Volume 14, Issue 6 (June 2021)

ISSN Print: 1945-3116   ISSN Online: 1945-3124

Google-based Impact Factor: 2  Citations  

An Improved Approach for Generating Test Cases during Model-Based Testing Using Tree Traversal Algorithm

HTML  XML Download Download as PDF (Size: 474KB)  PP. 257-265  
DOI: 10.4236/jsea.2021.146015    314 Downloads   1,354 Views  Citations

ABSTRACT

During the model-based software testing process, test cases are generated from modeled requirements to conduct acceptance testing. However, existing approaches generate erroneous test cases, lack full coverage criteria and prototype tools. Therefore, the aim of this research is to develop an approach capable of reducing erroneous test case generation based on full coverage criteria and a prototype tool. The method employed was to develop a parser to extract information from the XMI file of a modeling diagram where a tree is constructed and a traversal operation executed on the nodes and edges to generate test cases. The results obtained from the proposed approach showed that 97.35% of the generated test cases were precise and comprehensive enough to conduct testing because 99.01% of all the nodes and edges were fully covered during the traversal operations.

Share and Cite:

Achimugu, O. , Achimugu, P. , Nwufoh, C. , Husssein, S. , Kolapo, R. and Olufemi, T. (2021) An Improved Approach for Generating Test Cases during Model-Based Testing Using Tree Traversal Algorithm. Journal of Software Engineering and Applications, 14, 257-265. doi: 10.4236/jsea.2021.146015.

Copyright © 2025 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.