Slides 13 + 14 + 15 - A Practical Approach to Test Case Selection Flashcards
How to apply the general testing techniques? Steps
- Identify Input Equivalence Classes
- Identify Output Equivalence Classes
- Check Function Coverage
- Define boundary values
Cause-effect graph
A graphical representation of inputs and/or stimuli (causes) with their associated outputs (effects), which can be used to design test cases
Cause-effect graph - Process
- Break the specification down into workable pieces
- Identify the causes
- Identify the effects
- Create a cause-effect graph
- Annotate the graph with constraints describing combinations of causes and/or effects that are impossible
- Transform the cause-effect graph into a decision table
- Define concrete test cases
UML State Diagrams
● extend the notation of Harel state charts by object-oriented principles
● have the characteristics of both Mealy and Moore automata
State machine
● A behavior model, consisting of a finite number of states
● Events trigger states transitions and cause responses
State
Condition or situation in the life of a system during which it
● satisfies some condition
● performs some activity, or
● waits for some events
Events
Specification of a significant stimulus that has a location in time and space an can trigger a state transition: ● Signal event: name ● Call event: operation ● Change event: when ● Time event: after
Defintion: Transition
Relationship between two states
● where the source state will enter the target state
● when a specified event occurs and/or a specified condition is satisfied
Testing behavior in case of error
- Create Event-Response matrix
● Events form the rows of the table
● States the columns - Specify for each event and each state
● event is allowed (valid) (√ )
● event is invalid, leads to an error that must be handled (⊗)
● event is excluded because the precondition cannot be satisfied (-) - Create test cases for all event-state pairs that are invalid
When does a Inspection of states has to be done?
Has to be done after each test step