Creating a Data Verification Point (Text)

Use a Data verification point (Text) to test textual data in your application. For example, you could test text in a text box area, or the text on an object, such as a button. When you record the verification point, a baseline of the textual data will be created. Then every time you play back the script, the data will be compared to see if any changes have occurred, either intentionally or unintentionally. This is useful for identifying potential defects.

When you create a verification point you can use a datapool reference instead of a literal value to supply variable data to make your tests more realistic.

To create a Data verification point (Text):

  1. In Functional Tester, Java Scripting, click the Record a Functional Tester Script button on the Functional Tester toolbar or the File > New > Functional Tester Script Using Recorder menu command to start recording a script. In Functional Tester, VB.NET Scripting, click the Record a Functional Tester Script button on the Functional Tester toolbar or the File > New > Add Script Using Recorder menu command to start recording a script. See Recording a Script for more information.

  2. In the Functional Tester Recording Monitor, click the Start Application button to start your test application. See Starting Your Test Applications for more information.

  3. Locate the text in your application that you want to test.

  4. In the Functional Tester Recording Monitor, click the Insert Verification Point or Action Command button on the toolbar.

  5. On the Select an Object page of the Verification Point and Action Wizard, use the Object Finder to select the field or area in your application that contains the text you want to test or the object you want to test. See the Select an Object page for more information about selecting objects.

  6. Once you have selected the text area or object, one of the values listed in the Object recognition properties grid should be the word "text" if it is a text area, or the actual text if it is the text on an object. Verify this and click Next.

  7. On the Select an Action page, the Perform Data Verification Point option should be selected, the first option on the page.

    Visible Text is the Data Value listed for a text area. If you are testing text on an object, select the Object Visible Text test. The list of tests shown in the Data Value field is dependent on information provided by the object's proxy. Values other than those described here may be shown.

    In the Verification Point Name field, accept the default suggestion, or type a new name. This name must follow standard Java naming conventions. The default name is based on the name of the object and the data value you chose to test.

Use the Include Retry Parameters to set a retry time for a verification point during playback to check for its existence. The retry option is useful when playback does not find the verification point in your application. To set a retry time, either use the default, or set your own time. Maximum Retry Time is the maximum number of seconds Functional Tester will retry for the verification point to appear in your application during playback. Retry Interval is the number of seconds between times that Functional Tester will check for the verification point during the wait period.

When you select Include Retry Parameters, Functional Tester will check for the existence of the verification point in your application every 2 seconds, for up to 20 seconds. To set your own time, clear the default fields and type in your own values for Maximum Retry Time and Retry Interval. When you click Finish, the retry for verification point is written into your script, and will occur on future playbacks.

After you accept or edit the fields, click Next to continue.

  1. Optionally, edit the data. On the Verification Point Data page, the text is displayed in a text box that can be used like a basic text editor. You can type and edit directly in this text box. To edit the verification point data, make your edits to the text in this area.

    Click the Help button for more information on the Verification Point Data page.

  2. To use a datapool reference instead of a literal value for a property verification point:

    1. On the Verification Point Data page toolbar, click Convert Value to Datapool Reference (Convert Value to Datapool Reference) to use a datapool instead of a literal value in a verification point. (If you cannot see the Convert Value to Datapool Reference button on the toolbar, make the page larger by dragging a corner of the page.

      The Datapool Reference Converter dialog box opens.

    2. Type a new name for the datapool variable or click the Datapool Variable arrow to select the variable that you want the verification point to reference in the datapool

    3. Optionally, select the Add value to new record in datapool check box to add the value of the verification point to a new record (row) in the datapool.

    4. Click OK.

  3. After you have viewed or edited the text data, click Finish.

    The verification point will be recorded and added to the script.

  4. After you record any other verification points or actions, end your recording by clicking the Stop Recording button on the Recording Monitor toolbar.

After you are done recording, you can open the Verification Point Editor any time to edit this data. See the Verification Point Editor for more information.

Note: You can also create a verification point by manually scripting it. For information, see Adding Manual and Dynamic Verification Points. Also see the vpManual() and vpDynamic() methods of RationalTestScript documentation. RationalTestScript can be found in the API documentation. Click Help > Functional Tester API Reference. Your script can access the same information as the verification points. See the TestObject getProperty() and getTestData() methods.

 

 

 

Terms of use | Feedback
(C) Copyright IBM Corporation 2002, 2004. All Rights Reserved.