IMPORTANT NOTICE: As of 21 February, anything posted in this community WILL NOT BE MIGRATED to our new community site. We have pulled all user information and data from this site and are now in an approximately week long process of importing users, roles, and data to our new site. We are leaving this site open and active so you can post and hopefully get a response until the migration is complete. Once complete, the URL that currently takes you to this site will take you to our new site so your bookmarks will work as always. Please read the information on a New Login Process
If you want the recovery system to perform additional steps after it restores the Default BaseState, you need to record a new method named BaseState and paste it into the declaration for your application"s main window. SilkTest provides the Record/Method menu command to record a BaseState method. (See Record menu.)
To record a BaseState method:
When you now run a testcase which is based on the DefaultBaseState, it will perform all the actions that the DefaultBaseState always does (for a list of these actions, see below). However, after the DefaultBaseState has been restored fully, it will check the declaration for your application"s main window for the existence of a user-defined BaseState. If one exists, it will execute it before executing the testcase itself.
SilkTest provides a DefaultBaseState for applications, which ensures the following conditions are met before recording and executing a testcase:
The DefaultBaseState also ensures the following for browsers, in addition to the items listed above: