Article ID Journal Published Year Pages File Type
493233 Procedia Technology 2012 9 Pages PDF
Abstract

In our approach, we use condition slicing and generate test cases from UML interaction diagrams. A novel testing methodology, to test object oriented software based on UML interaction diagrams is presented here. In our method, we identify the message guards on interaction diagrams and create condition slices with respect to each conditional predicates. We have proposed conditioned slicing as a general slicing framework for test case generation from interaction diagrams. To generate test cases, our approach, first builds a message flow dependence graph from an ordinary UML sequence diagram and then applies conditioned slicing on a predicate node of the graph. By this it minimizes the number of test cases generated while deriving all practically useful test cases. The effectiveness of a test case is based on how well the test modeled behaviors are covered and exercised. Test cases that we generate satisfy slice test coverage as well message path coverage. Our proposed method satisfies high path coverage criterion. Our technique also describes how condition slicing is used in testing and it achieves adequate test coverage without increasing the number of test cases.

Related Topics
Physical Sciences and Engineering Computer Science Computer Science (General)