The transformation mechanism allows you to turn a node into another
type, e.g. a 'Sequence' into a 'Procedure' or a 'Test' into
a 'Test-case'. Such actions could be required for re-factoring
purposes or simply to make test development for efficient.
You can transform nodes via a right mouse click and then selecting
»Transform node into« and the
desired type.
Note QF-Test only shows transformations that are
possible in the current context of the test-suite, so sometimes you may not
see all possible transformations.
The following transformations also change the type of child nodes
of the converted nodes:
- 'Test-set' into 'Test-case'
- 'Data driver' into disabled 'Sequence'
- 'Test-case' into 'Test-step'
- 'Test-case' into 'Test-set'
- All children are packed into a new sub 'Test-case' node.
- 'Test' into 'Test-set' recursive
- If there are only 'Data driver' and 'Test' children, the 'Data driver' is turned into a
disabled 'Test'.
- Otherwise all children are packed into a new sub 'Test-case' node.
- 'Test' into 'Test-case'
- 'Data driver' into disabled 'Sequence'
The following transformations are allowed below the 'Extras' node
only:
- 'Sequence' into 'Cleanup'
- 'Sequence' into 'Setup'
- 'Sequence' into 'Test-case'
- 'Cleanup' into 'Procedure'
- 'Setup' into 'Procedure'
- 'Procedure' into 'Sequence'
- 'Procedure' into 'Test-case'
The following transformations also change the type of some child nodes:
- 'Test-set' into 'Package'
- 'Cleanup' into disabled 'Procedure'
- 'Data driver' into disabled 'Procedure'
- 'Dependency reference' into disabled 'Dependency' containing
the previous 'Dependency reference'
- 'Setup' into disabled 'Procedure'
- 'Test' into 'Procedure'
- 'Test-case' into 'Procedure'
- 'Test call' into disabled 'Procedure' containing the 'Test call'
- 'Test-case' into 'Procedure'
- 'Cleanup' into disabled 'Sequence'
- 'Dependency' into disabled 'Sequence'
- 'Dependency reference' into disabled 'Sequence'
- 'Setup' into disabled 'Sequence'
- 'Test' into 'Procedure'
- 'Data driver' into disabled 'Sequence'
- 'Test' into 'Package'
- All child nodes are packed into a 'Procedure' node.
- 'Test' into 'Sequence'
- 'Data driver' into disabled 'Sequence'
- 'Package' into 'Test-set'
- 'Package' into 'Test-set'
- 'Procedure' into 'Test-case'