Abstract

Testing is an important phase of software development process. Automatic generation of test scenarios not only reduces the time, but also reduces the effort of the user. In this work, we propose a method for generating the test scenarios at an early stage of development. It involves complex sub tasks such as generating test cases from user scenarios, parsing user scenarios with a specific test coverage criteria and test script generation from test scenarios. We have selected model based testing due to its humongous advantages. By using Unified Modeling Language(UML) sequence diagram, the test scenario generation approach is proposed to achieve the flaws at the early stage and for better coverage. First, we converted the case study of the model into a sequence diagram (SD). The sequence diagram is then transformed into a Sequence Diagram Graph(SDG), to generate test scenarios from SDG. Depth first search (DFS) algorithm is followed to traverse the paths of the SDG. A case study of ATM deposit and withdrawal system is considered and our proposed approach is implemented in this. By using this approach, we are not only able to achieve the flaws in the initial stages but also reduce redundant test cases and flaws like decision, loop, interaction, message path and synchronization are achieved.

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

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.