Changing the syntax of verification point commands

During recording, a verification point captures information about a specified GUI component, for example, its size or its position. Test UI records a statement in the test script for each verification point.

About this task

Verification point commands appear in the script with the name that you assign to the verification point when you record the script.

The new syntax for the verification point command is:ObjectName.performTest(VPName);

For example, if we capture a verification point called ChkBox_State on a check box, say CheckBox1 it is recorded as CheckBox1().performTest(ChkBox_State());

The verification point with this syntax stores only the information for the expected value and does not associated it with a specific GUI object. This provides the flexibility to reuse the verification point on similar objects.

For example: Use the same ChkBox_State verification point on another check box. You can use the expected value information stored in the ChkBox_State verification point to validate the actual value obtained from CheckBox2 control. You can use the statement CheckBox2().performTest(ChkBox_State());

In earlier versions of Test UI this syntax was:VP().performTest();

For example, CheckBox1_StateVP().performTest(); This verification point cannot be reused to validate the contents of another check box control. You cannot use the expected value stored in the CheckBox1_State verification point to validate the actual value obtained from the CheckBox2 control.

You can choose which one to use. By default the new syntax is enabled. If you want to use the old syntax, follow these steps:

Procedure

  1. Click Tools > Options.
    The Preferences dialog appears.
  2. Click Functional Test > Recorder and clear the Record Test Object Relative Verification Point check box.
  3. Click Apply and OK to close.
    The next time you record or insert a new verification point, it will show the old syntax in the test script.