background image
<< Setting a Precondition Within a Suite | Inserting Other Items into a Suite >>
<< Setting a Precondition Within a Suite | Inserting Other Items into a Suite >>

Relating Preconditions Set in Suites to Those in Test Cases

Inserting a Selector into a Suite
213
How to Set a Precondition
To set a precondition:
s
Right-click the test script, suite, or test case on which to set the precondition, and
then select
Run Properties
.
Note:
For detailed procedures, see the TestManager Help.
Relating Preconditions Set in Suites to Those in Test Cases
The preconditions that you set when designing and implementing test cases
(discussed in chapters 3 and 4) are not related to the preconditions that you set within
a suite.
A precondition set on a test case is a setup dependency to ensure that a test case can
run properly. You can enter text in the field. Although TestManager does not use this
text, you can refer to it later. If a precondition fails, the test case may still meet the
acceptance criteria, but the constraints necessary for the test case to run are not met.
A precondition set within a suite must complete successfully for subsequent items at
the same level in the suite to run. TestManager uses this field. If a precondition fails,
TestManager does not run remaining suite items at the same level in the suite.
However, you can relate the two types of preconditions so that the suite precondition
enforces the test case precondition. The following steps show how to do this:
1
Set a precondition on a test case.
2
Within a suite, insert a test script that checks that the test case precondition is met.
3
Within a suite, set a precondition on the test script itself.
Inserting a Selector into a Suite
TestManager allows you to set suite items to run in different sequences by setting a
selector. A selector provides more sophisticated control than running a simple
sequence of consecutive items in a suite. A selector tells TestManager which items to
execute and in what sequence. For example, you might want to repeatedly select a test
script at random from a group of test scripts. A selector helps you to do this.
The following list explains the types of selectors that are used in functional testing.
The other types of selectors are used in performance testing.
s
Sequential
Runs each suite item in the order in which it appears in the suite. This
is the default.