background image
<< Updating Testplan - Specifying data that is shared by multiple tests | Updating Testplan - To specify symbols as arguments >>
Updating Testplan - the FindTest testcase
<< Updating Testplan - Specifying data that is shared by multiple tests | Updating Testplan - To specify symbols as arguments >>
User's Guide
227
10 A
DDING
D
ATA
TO
A
T
ESTPLAN
Specifying data that is shared by multiple tests
The testplan in the figure uses six symbols:
·
$Text is the text to enter in the document window.
·
$Position is the position of the insertion point in the document window.
·
$Pattern is the pattern to search for in the document window.
·
$Case is the state of the Case Sensitive check box.
·
$Direction is the direction of the search.
·
$Expected is the expected match.
The symbols are named in the parameter list to the FindTest testcase, within
the parentheses after the testcase name.
testcase: FindTest ({ $Text, $Position, $Pattern, $Case,
$Direction, $Expected })
Note that the symbols are only named in the parameter list; they are not
assigned values. The values are assigned at either the group or test
description level, depending on whether the values are shared by several tests
or are unique to a single test.
For example, in the preceding figure, each test description assigns its own
unique values to the $Pattern and the $Expected symbols. The remaining four
symbols are assigned values at a group description level:
·
The $Text symbol is assigned its value at the Find dialog group
description level, because all eight tests of the Find dialog enter the text
SilkTest into the document window of the Text Editor application.