background image
<< Recovery System - Recording a Close method | Recovery System - Handling login windows >>
Recovery System - Specifying windows to be left open
<< Recovery System - Recording a Close method | Recovery System - Handling login windows >>
296
User's Guide
15 U
NDERSTANDING
THE
R
ECOVERY
S
YSTEM
Specifying windows to be left open
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 Close method.
The Status field flashes the word Recording.
7
When you have finished recording the Close 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 Close
method in the declaration for the dialog.
Specifying windows to be left open
By default, the recovery system closes all windows in your test application
except the main window. To specify which windows, if any, need to be left
open--such as a child window that is always open--use the lwLeaveOpen
constant.
The lwLeaveOpen
constant
When you record and paste the declarations for your application's main
window, the stub of a declaration for the lwLeaveOpen constant is
automatically included, as shown in this example:
// The list of windows the recovery system is to leave open
// const lwLeaveOpen = {?}
Procedure To complete the declaration for the lwLeaveOpen constant:
1
Replace the question mark in the comment with the 4Test identifiers of
the windows you want to be left open. Separate each identifier with a
comma.