Quality software can be developed when it is properly tested. Due to increase in the size and complexity of object-oriented software, manual testing has become time, resource and cost consuming. Properly designed test cases discover more errors and bugs present in the software. The test cases can be generated much early in the software development process, during the design phase. The unified modeling language (UML) is the most widely used language to describe the analysis and designs of object-oriented software. Test cases can be derived from UML models more efficiently. In our work, we propose a novel approach for automatic test case generation from the combination of UML class diagrams. In our approach, we first draw the UML class diagrams using any online drawing tool like smart draw or yuml.com. Then, we generate XML information of these models. The XML file is processed to extract variables from the class and predicates from class diagram using Java code. The predicates are then used to generate the test cases. Our approach achieves 100% branch coverage and suitable for mutation testing and unit testing.
Rani, S., & Rana, M. (2018). Design of software testing model based on UML class and activity diagram. International Journal of Engineering and Advanced Technology, 7(6), 8–15.
Mendeley helps you to discover research relevant for your work.