International Journal of Computer Applications |
Foundation of Computer Science (FCS), NY, USA |
Volume 42 - Number 7 |
Year of Publication: 2012 |
Authors: Ranjita Swain, Vikas Panthi, Prafulla Kumar Behera, Durga Prasad Mohapatra |
10.5120/5706-7756 |
Ranjita Swain, Vikas Panthi, Prafulla Kumar Behera, Durga Prasad Mohapatra . Automatic Test case Generation From UML State Chart Diagram. International Journal of Computer Applications. 42, 7 ( March 2012), 26-36. DOI=10.5120/5706-7756
More than 50% of software development effort is spent in testing phase in a typical software development project. Test case design as well as execution consumes a lot of time. So automated generation of test cases is highly required. We present a testing methodology to test object oriented software based on UML state chart diagrams. In our approach we apply function minimization technique and generate test cases automatically from UML state chart diagrams. Here, first the state chart diagram is constructed. Then the diagram is traversed. Here, we perform a DFS to select the associated predicates. After selecting the predicates, we guess an initial dataset. These conditional predicates are, then transformed to generate test cases automatically. Our technique achieves adequate test coverage without unduly increasing the number of test cases. Our approach achieves many important coverage like state coverage, transition coverage, transition pair coverage etc. . This paper also describes how minimization technique is used in testing.