Comparing and Updating Verification Point Data Using the Comparator

Use the Verification Point Comparator to compare verification point data after you play back a script with a verification point and to update the baseline file. If the verification point failed, the Comparator shows both the expected and actual values, so you can analyze the differences. You can then load the baseline file and update it with the values from the actual file.

To open the Comparator, double-click the verification point in the Functional Tester log in TestManager, or click the View Results link in the Functional Tester HTML log. For information, see Viewing Results in the Log. The Comparator banner displays the name of your verification point.

For information about the user interface of the Comparator, see the Verification Point Comparator.

To compare and update verification point data with the Comparator:

  1. Record a script in Functional Tester that contains at least one verification point. For information about recording a verification point, see Creating a Properties Verification Point, an example of one type of verification point.

  2. Play back the script that contains the verification point on a new build of the application under test. For information about playing back scripts, see Running Scripts from Functional Tester.

  3. After playback, the log displays the log of that playback. For information about setting the option that makes the log open automatically after playback, see Logging Preferences Page.

  4. Open the Comparator from the log. If you are using a TestManager log, double-click the verification point in the Event Type column. If necessary, expand the Script Start command to see the verification point. If you are using the HTML log, click the View Results link. (Note that if you experience an error regarding the Java plug-in when trying to start the Comparator from the View Results link in the HTML log, verify that your plug-in is configured properly. For instructions, see Enabling the Java Plug-in of a Browser.)

If one verification point failed, and you are using a log, in Functional Tester, Java Scripting, select the log in the Functional Tester Projects view. Then, right-click the log, and click Failed Verification Points. In Functional Tester, VB.NET Scripting, select the log in the Solution Explorer, right-click the log, and click Failed Verification Points.

If you have more than one verification point failed, and you are using a log, the Results for Verification Points wizard opens. Click a failed verification point in the list and click View Results or Finish.

The Verification Point Comparator opens to display that verification point. The Comparator includes the expected and actual data values. The expected values were tested. The actual values were captured in the application during playback. If the verification point failed, the differences are shown in red.

In the case of the following verification point types, the expected values are displayed on the left and the actual values are displayed on the right: properties, data (list), data (table), and data (text). Differences are shown in red. For the data (menu hierarchy) and data (tree hierarchy) verification points, the expected and actual values are shown contiguously. The expected values of the differences are shown in red, and the actual values of the differences are shown underneath them in green.

  1. Look at the two data files to compare any differences between the expected and actual files. By analyzing differences in the Comparator, you can determine if they are intentional changes to the application or defects.

    To navigate through the differences, use the navigation buttons on the toolbar above the data display. For more information about the navigation buttons, see the Verification Point Comparator.

  2. If you want to edit the baseline file to update the information for future playbacks, you must load the baseline file. Click File > Baseline or click the Load Baseline to Edit toolbar button Load Baseline to Edit.

    The baseline file replaces the expected file on the left side of the display.

    Note: If you use the Functional Tester ClearCase integration, see Notes for ClearCase Users at the end of this topic.

  3. To edit individual items in the data, edit them in the baseline (left) column of the display. When you finish editing the data, click Save. For details about how to edit the different types of verification point displays, see the Verification Point Editor.

    For a Data (Text) verification point, click Edit Text Edit Text to start a text editor to make your edits. For other verification point types, you can edit directly in the baseline data display.

  4. For a Properties verification point, if you determine that the baseline value and actual value for a specific property are different, you can update the baseline value. In the Verification Point Comparator, right-click the property where the values are different, and click Replace Baseline on Current Selection.

  5. If you determine that all the differences reflect intentional changes to the application under test, and you want to update the baseline to reflect the changes, you can use the Replace Baseline with Actual Value toolbar button Replace Baseline with Actual Value to replace the entire baseline file.

  6. If you have made any individual changes to the baseline data file (not by using the Replace Baseline with Actual Value command), click File > Save to save the changes.

  7. When you finish comparing and updating verification point data, click File > Exit to exit the Verification Point Comparator.

Notes for ClearCase Users

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