An Improved Approach for Generating Test Cases during Model-Based Testing Using Tree Traversal Algorithm
- 1 Department of Information and Communication Engineering, Air Force Institute of Technology, Kaduna, Nigeria
- 2 Department of Computer Science, Air Force Institute of Technology, Kaduna, Nigeria
- 3 Department of Computer Science, Lead City University, Ibadan, Nigeria
- 4 Department of Computer Science, Islamic University in Uganda, Kampala, Uganda
- 5 Department of Computer Science, Lead City University, Ibadan, Nigeria
- 6 Department of Computer Science, Lead City University, Ibadan, Nigeria
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.
- Li, X., He, T. and Xiong, J. (2013) Extenics-Based Test Case Generation for UML Activity Diagram. Procedia Computer Science, 17, 1186-1193. https://doi.org/10.1016/j.procs.2013.05.151
- Jagtap, S., Gawade, V., Pawar, R., Shendge, S. and Avhad, P. (2016) Generate Test Cases From UML Use Case and State Chart Diagrams. International Research Journal of Engineering and Technology, 3, 873-881.
- Shanthi, A.V.K. and Kumar, D.G.M. (2011) Automated Test Cases Generation for Object Oriented Software. Indian Journal of Computer Science and Engineering, 2, 543-546.
- Sawant, V. and Shah, K. (2011) Construction of Test Cases from UML Models. In: Shah, K., Lakshmi Gorty, V.R. and Phirke, A., Eds., Technology Systems and Management, Springer, Berlin, Heidelberg, 61-68. https://doi.org/10.1007/978-3-642-20209-4_9
- Pachauri, A. (2013) Automated Test Data Generation for Branch Testing Using Genetic Algorithm: An Improved Approach Using Branch Ordering, Memory and Elitism. Journal of Systems and Software, 86, 1191-1208. https://doi.org/10.1016/j.jss.2012.11.045
- Anand, S., Burke, E., Chen, T.Y., Clark, J., Cohen, M.B., Grieskamp, W. and Zhu, H. (2013) An Orchestrated Survey on Automated Software Test Case Generation. The Journal of Systems and Software, 86, 1978-2001. https://doi.org/10.1016/j.jss.2013.02.061
- Kaur, G. and Bawa, S. (2013) A Survey of Requirement Prioritization Methods. International Journal of Engineering, Research and Technology, 2, 958-962.
- Kaur, A. and Vig, V. (2018) Automatic Test Case Generation through Collaboration Diagram: A Case Study. International Journal of Systems Assurance Engineering and Management, 9, 362-376. https://doi.org/10.1007/s13198-017-0675-8
- Septian, I., Alianto, R.S., and Gaol, F.L. (2017) Automated Test Case Generation from UML Activity Diagram and Sequence Diagram Using Depth First Search Algorithm. Procedia Computer Science, 116, 629-637. https://doi.org/10.1016/j.procs.2017.10.029
- Shah, S.A.A., Shahzad, R.K., Bukhari, S.S.A. and Humayun, M. (2016) Automated Test Case Generation Using UML Class & Sequence Diagram. British Journal of Applied Science and Technology, 15, 1-12. https://doi.org/10.9734/BJAST/2016/24860
- Swain, R., Panthi, V., Behera, P.K. and Mohapatra, D.P. (2012) Automatic Test Case Generation from UML State Chart Diagram. International Journal of Computer Applications, 42, 26-36. https://doi.org/10.5120/5705-7756