background image
<< Save the testplan | Confirm the Application State >>

Recording from a Testplan

<< Save the testplan | Confirm the Application State >>
102
Getting Started: A Tutorial
5 C
REATING
T
ESTCASES
Recording from a Testplan
Recording from a Testplan
You can record a testcase from a testplan in two ways;
While the testplan is being developed or
After the testplan has been completed.
There is an advantage to recording from a testplan rather than recording the
testcase on its own and then linking it to the testplan. The advantage is, in
recording from the testplan editor SilkTest automatically inserts the script
and testcase statements into the plan when you have finished recording.
In the following exercise you will create a testcase from the test descriptions
you created in
Chapter 3, "Planning a Testing Strategy"
.
1
In SilkTest, confirm your Runtime Options
Click Options/Runtime.
(Web): Make sure you are using gmow.inc as your test frame: In the Use
Files field, confirm gmow.inc. Click OK.
(client/server): Make sure you are using gmoc.inc as your test frame: In
the Use Files field, confirm gmoc.inc. Click OK.
2
If the GMO project that you created in Chapter 2 is not open, please open
it (File/Open Project.) If you have not created this project yet, please
see
Chapter 2, "Preparing to Use this Tutorial" on page 25
.
3
Open the testplan
If it is not already open, click File/Open.
(Web): From the list of files, select webtut.pln and click OK.
(client/server): From the list of files, select cstut.pln and click OK.
4
Select a test description
(Web): In the testplan, click on the test description Verify Enter GMO
OnLine pushbutton is enabled
.
(client/server): In the testplan, click on the test description Verify
Search pushbutton is enabled
.
5
Open the Record Testcase Script dialog
Click Record/Testcase.
6
Select the script file
(Web): Select webtut.t. Click Open.
(client/server): Select cstut.t. Click Open.