Use a Data verification point (List) to test list data in your application. When you record the verification point, a baseline of the list 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 (List):
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.
In the Functional Tester Recording Monitor, click the Start Application button to start your test application. See Starting Your Test Applications for more information.
Locate the list in your application that you want to test.
In the Functional Tester Recording Monitor, click the Insert Verification Point or Action Command button on the toolbar.
On the Select an Object page of the Verification Point and Action Wizard, use the Object Finder to select the list in your application that you want to test. To test the entire list, you can select any item in the list. See the Select an Object page for more information about selecting objects.
Once you have selected the list, one of the values shown on the Object recognition properties grid should be the word "list." Verify this and click Next.
On the Select an Action page, the Perform Data Verification Point option should be selected, the first option on the page.
In the Data Value field, select the List Elements or Selected List Elements test. List Elements tests the contents of the entire list. Selected List Elements will test only the items that are selected. 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.
Optionally, edit the data. On the Verification Point Data page, the list displays the same information as the list in your application, and in the same order top to bottom. To edit a list item, double-click on it in the list display. The field then becomes editable. You can also edit the list of which items get tested during playback by using the check box beside each item. Checked items get tested. You can use the Check All or Uncheck All buttons to select or clear all of the items in the list.
You can use the Insert toolbar button above the list area to insert items into the list. It creates a blank line for you to type the new list item. If you do not have anything selected when you click Insert, the new item will appear at the end of the list. If you have an item selected when you click Insert, the new item will be inserted above the selected item.
The Cut, Copy, Paste, and Delete toolbar buttons above the list area apply to the selected item(s), and are only applicable within the Verification Point and Action Wizard. (It does not use the system clipboard.)
Click the Help button for more information on the Verification Point Data page.
To use a datapool reference instead of a literal value for a verification point:
Right-click a list item, and then click Convert Value to Datapool Reference.
The Datapool Reference Converter dialog box opens.
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
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.
Click OK.
After you have viewed or edited the list data, click Finish.
The verification point will be recorded and added to the script.
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.