In: Computer Science
Describe in detail how test cases are derived from behavior models to facilitate interclass testing in software engineering.
Sol:
Testcase design techniques
It is a technique which is used while writing test cases inorder to have better testcase coverage.
Types of test case design techniques:
- Error guessing
- Boundary value analysis
- Decision table techniques
- Equivalence partitioning
Behavioural model shows the interaction between objects to produce some particular system behaviour that is specified as a use case.Sequence diagrams,activity diagrams,collaboration diagrams are used to model interaction between objects.There is an integrated approach to generate test cases from UML sequence and activity diagram. First these UML diagrams are transformed into graph. then, an algorithm can be proposed to generate test scenarios from the constructed graph.next, is the necessary information for test case generation, such as method activity sequence etc.Thus we can say that this approach reduces the number of test cases and still achieves adequate test coverage.