Software Testing

(7) Testing Object-Oriented Software

Testing Strategies for state-based testing of OO Software?

  •  Strategy 1:
    • All transitions (method calls), pairs of transitions, transition tours, …
    • Preambles or explicitly setting the initial state
    • Correct sequencing, incorrect sequencing
    • Criteria based on control and data flows
  • Strategy 2:
    • Condition tests with boundary conditions
    • State invariants
    • Transition guards + illegal transitions (enforce all illegal events)
    • Method pre- (and postconditions)
 

Diskussion