Test Scenarios Generation Using UML Sequence Diagram
Satya Sobhan Panigrahi, Shreshtha Shaurya, Pramita Das, Anil Kumar Swain, Ajay Kumar Jena · 2018
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.