Test Case Design Using Slicing of UML Interaction Diagram

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.

[1]  Andrea De Lucia,et al.  Understanding function behaviors through program slicing , 1996, WPC '96. 4th Workshop on Program Comprehension.

[2]  Philip Samuel,et al.  A Novel Test Case Design Technique Using Dynamic Slicing of UML Sequence Diagrams , 2008, e Informatica Softw. Eng. J..

[3]  Ákos Hajnal,et al.  An applicable test data generation algorithm for domain errors , 1998, ISSTA '98.

[4]  Mark Harman,et al.  Building executable union slices using conditioned slicing , 2004, Proceedings. 12th IEEE International Workshop on Program Comprehension, 2004..

[5]  Bogdan Korel,et al.  Dynamic program slicing methods , 1998, Inf. Softw. Technol..

[6]  Aniello Cimitile,et al.  Conditioned program slicing , 1998, Inf. Softw. Technol..