Download TEMPPO Designer (IDATG)

Transcript
User´s Guide - Part I
Edition 16.0
TEMPPO Designer (IDATG)
Test Case Generation
10.3 Random Test Cases
For detailed information on random test generation, please refer to chapter 6.
10.4 Transition Test Cases
Apart from defining entire test sequences with task flow graphs it is also possible to specify a set
of individual state transitions. Based on the pre-conditions and effects (actions) that have been
defined for each transition, IDATG is able to generate a valid sequence automatically. The highly
complex generation algorithm has even been patented. The goal is to test all transitions at least
once.
Problem Description
When searching for a test case that includes a specific transition T, IDATG has to find 2 paths:
• A path P1 beginning in the initial state of the GUI and ending in a state where all conditions for
T are fulfilled
• A path P2 beginning in the state produced by T and ending in a final state of the GUI (i.e. the
test case ends with a CloseApplication action)
To produce a valid test case, the 2 paths have to be connected with the transition T:
Initial State
Final State
Path P1
Transition T
Path P2
Figure 30 - Structure of a Transition Test Case
Searching a Path that fulfills a certain Condition
Most transitions depend on semantic conditions, for example a certain window has to be active
before the transition can be tested. As we know, IDATG enables the developer to express a wide
range of complex semantic dependencies in a GUI. These dependencies are a problem for TCG,
since considerable effort is necessary in order to create semantically correct test cases.
Let us assume for example the following transition:
State 3
State 4
Condition: #Delete:$Enabled# = TRUE
Action: (none)
Before testing this transition, it is necessary that the Delete button is enabled. In our example, the
button is initially disabled. Thus, the first step for TCG is to find a transition that sets
#Delete:$Enabled# to the required value and to add it to the test case.
State 2
Condition: #Name# != ""
Action: SetAttribute(#Delete:$Enabled#, TRUE)
15.09.2014
State 3
State 4
Condition: #Delete:$Enabled# = TRUE
Action: (none)
Page 57