The top-level nodes of the test-suite define its basic structure :
Right after the "Test-suite" node an arbitrary number of "Test-set" and
"Test-case" nodes may be added specifying the functional tests.
"Procedures" contains reusable sequences (procedures) that can be organized into packages.
"Extras" is the scratch pad for recording and experimentation.
"Windows and components" contains the all-important elements of the test-suite: registered
elements of the SUT , e.g. windows, menus and buttons. The details of each element in the
"Windows and components" section contains the properties of the recorded GUI element
required by QF-Test to find the component when replaying a test.
Functional test-cases are represented by "Test-case" nodes and can be grouped and
structured with the help of "Test-set" nodes.
"Setup" and "Cleanup" nodes are intended for test-steps ensuring a well-defined state
before and after a test-case.
ActionLet's start by renaming the top-level
test-set node from "unnamed" to "Demo Tests".
If a dialog pops up asking us whether to update references we can simply
confirm with "Yes".
The second step is to move the "Setup" node generated by the Quickstart
Wizard from the "Extras" node into the "Test-set" node - right before
the "Test-case" node. Moving the "Setup" node can be done via mouse (Drag&Drop),
context-menu (right mouse-button copy/paste) or by [Ctrl-X] and [Ctrl-V] keyboard commands.
The next step is to make a test-case of the two sequences previously recorded.
ActionPlease rename the test-case node from "unnamed" to
Open the test-case node by clicking the '+' symbol.
Move the two sequences from "Extras" into the test-case.
You need to open the test-case node because otherwise QF-Test would try to place
the sequence nodes after the test-case node on the same level, which is not
a valid option.
QF-Test always records sequence nodes. They have the same funcionality as test-step
nodes, only they do not show up in the report.
So, just to show you, we will transform the two sequence nodes into test-step nodes.
ActionPlease open the context menu for the
first of the two sequence nodes by a right-click.
Choose »Transform node into...«-»Test-step«
Repeat this for the second sequence node.
Your test-suite should now look like this:
Now you've completed the most important steps of structuring a