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.

Highlights

  • Testing can be described as the process of ensuring the behavior of a system meets the requirements or desires of users or stakeholders as specified in the contract documents [1]

  • Evaluation of the proposed technique was conducted based on accuracy and coverage criteria. Accuracy for this experiment is taken as the number of artefacts correctly retrieved or generated divided by the total number of existing relevant artefacts while coverage criteria is given as the number of nodes and edges visited during the traversal operation divided by the total number of existing nodes and edges

  • The percentage of coverage criteria was calculated and from the results displayed in Table 2, all the nodes and edges were fully visited during the traversal operation giving rise to 99.01% coverage

Read more

Summary

Introduction

Testing can be described as the process of ensuring the behavior of a system meets the requirements or desires of users or stakeholders as specified in the contract documents [1]. Model-based testing deals with the process of generating test cases from extracted information of the underlying model for the system under test (SUT). An approach for extracting information or artefacts from the underlying models of a SUT to generate test cases is the focus of this research work. Test case generations are the foundation of any model-based testing activity [3] [4]. Model-based testing can be initiated as soon as the requirements/design documents are ready. This is because, these documents provide the expected input and output of the system under development which together form what is known as test cases. The importance of testing in software development cannot be over emphasized It helps eradicate breaches of contract, trust, or agreement. This accounts for the reason why clients are beginning to request for testing results before accepting or deploying a system in its application domain

Objectives
Methods
Results
Conclusion
Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call