background image
<< Recovery System - Adding to the default base state | Recovery System - Overriding the default processing >>
Recovery System - Overriding the default recovery system
<< Recovery System - Adding to the default base state | Recovery System - Overriding the default processing >>
User's Guide
299
15 U
NDERSTANDING
THE
R
ECOVERY
S
YSTEM
Overriding the default recovery system
3
Place the insertion point on the declaration for the application's main
window.
4
Select Record/Method.
SilkTest displays the Record Method dialog, which allows you to record
a method for a class or window declaration.
5
Press the arrow button (located to the right of the Method Name field)
and select BaseState from the drop-down list.
6
Click the Start Recording pushbutton.
SilkTest closes the Record Method dialog and displays the Record Status
window, which indicates that you can begin recording the BaseState
method. The Status field flashes the word Recording.
7
When you have finished recording the BaseState method, click the Done
pushbutton on the Record Status window.
SilkTest redisplays the Record Method dialog. The Method Code field
contains the 4Test code you've just recorded.
8
Click OK to close the Record Method dialog and place the new
BaseState method in the declaration for your main window.
Overriding the default recovery system
The default recovery system specifies what SilkTest does to restore your
application's base state. It also specifies what SilkTest does whenever:
A script file is first accessed
A script file is exited
A testcase is about to begin
A testcase is about to exit