Verifying a Test Case

This functionality is available only for projects or scripts that use the Classic Agent.

The cornerstone of an automated test is the verification stage, in which the test verifies that the state of the application matches the expected (baseline) state. Using the recorder, you can record object-appropriate verification of your application’s state, data, or appearance.

To record the verification stage:

  1. Continue with these steps after you record a test case. Or, if you have previously recorded a verification statement in an existing test case, choose Record > Actions to modify it.
  2. Drive your application to the state that you want to verify and position the mouse cursor over the object.
  3. Look at the Record Status window and make sure it is listing the object you want to verify. If so, press Ctrl+Alt.

    The Verify Window dialog box opens over your application window. The Window field, in the top-left corner of the dialog box, displays the name of the object you were pointing at when you pressed Ctrl+Alt. If the name in the Window field is incorrect, click Cancel to close the dialog box and return to the application. Point to the object you want to verify and press Ctrl+Alt again.

  4. If a script file is not the active window, Silk Test Classic prompts you for a file name. If prompted, specify the name of either a new or an existing script file and click OK.
  5. Choose to verify any of the following:
    • Properties of an object.
    • Appearance using a bitmap.
    • An object's state using built-in verification methods or other methods in combination with the built-in Verify function.
  6. If you are writing a complete test case, record the cleanup stage and paste the test case into the script. If you have added a verification statement to an existing test case, paste it into your script and close the Record Actions dialog box.