Adding Tests that Use the Classic Agent to the DefaultBaseState

If you want the recovery system to perform additional steps after it restores the default base state, record a new method named BaseState and paste it into the declaration for your application’s main window. Silk Test Classic provides the Record/Method menu command to record a BaseState method.

  1. Open your application and the application’s test frame file.
  2. Place the insertion point on the declaration for the application’s main window.
  3. Click Record > Method. Silk Test Classic displays the Record Method dialog box, which allows you to record a method for a class or window declaration.
  4. From the Method Name list box, select BaseState.
  5. Click Start Recording. Silk Test Classic closes the Record Method dialog box and displays the Record Status window, which indicates that you can begin recording the BaseState method. The Status field flashes the word Recording.
  6. When you have finished recording the BaseState method, click Done on the Record Status window. Silk Test Classic redisplays the Record Method dialog box. The Method Code field contains the 4Test code you recorded.
  7. Click OK to close the Record Method dialog box and place the new BaseState method in the declaration for your main window.