Compare Assets and Versions

Relevant for: GUI tests and components and API testing

This topic describes methods you can use to compare different versions of an asset using the Asset Comparison Tool.

Asset Comparison window enables you to compare two versions of a particular OpenText Functional Testing asset, such as an application area, a test, a component, a function library, a shared object repository, a data table, a recovery scenario, or an environment variable XML file. It also enables you to drill down in an asset to view a comparison of entities that are associated with the asset, for example, an associated data table or shared object repository.

    Note:
  • To open the Asset Viewer in OpenText Functional Testing or OpenText Application Quality Management, the asset must be stored in an ALM project that has version control enabled.

  • The Asset Viewer does not enable you to drill down to view assets that are associated using a relative path.

Open the Asset Comparison Tool in OpenText Functional Testing

You can open the Asset Comparison Tool from any of the following:

Option Description
The main OpenText Functional Testing window
  1. Open the test, component, or function library (GUI testing only) whose versions you want to compare.

  2. Select ALM > Version History or Baseline History. The Version History or Baseline History dialog box opens.

  3. Select two versions (using the CTRL key) and click Compare. The Asset Comparison Tool opens.

The Object Repository Manager (GUI testing only)
  1. Open the Object Repository Manager (Resources > Object Repository Manager).

  2. Browse to and open the shared object repository whose versions you want to compare.

  3. Select ALM > Version History or Baseline History. The Version History or Baseline History dialog box opens.

  4. Select two versions (using the CTRL key) and click Compare. The Asset Comparison Tool opens.

Recovery Scenario Manager (GUI testing only)
  1. Open the Recovery Scenario Manager (Resources > Recovery Scenario Manager).

  2. Open the recovery scenario file whose versions you want to compare. For details, see Recovery Scenario Manager Dialog Box.

  3. Click the Version Control down arrow and select Version History or Baseline History.

  4. Select two versions (using the CTRL key) and click Compare. The Asset Comparison Tool opens.

The Command Line Interpreter (cmd.exe) (tests only)
  1. Open the Command Line Interpreter.

  2. Enter the command using the following syntax:

    "<Installdir>\bin\QTPDiffApplication.exe" P1: "<file path 1>" P2: "<file path 2>"

    where P1 = the file system path to the first asset, and P2 = the file system path to the second asset.

    "%ProgramFiles%\OpenText\Functional Testing\bin\QTPDiffApplication.exe" P1: "%ProgramFiles%\OpenText\Functional Testing\Tests\Test1" P2: "%ProgramFiles%\OpenText\Functional Testing\Tests\Test2"

    Note: Make sure you insert a blank space after each argument. The options are not case-sensitive and can be entered in any order.

Open the Asset Comparison Tool from OpenText Application Quality Management

  1. In OpenText Application Quality Management, connect to the project containing the asset you want to compare.

  2. Do one of the following:

    • In the sidebar, click the Test Plan button (for tests) or the Business Components button (for components) to open the Test Plan or Business Components module.

    • Click the Test Resources button in the sidebar to open the Test Resources module. This module contains the resource files associated with your test or component, such as function libraries, shared object repositories, data tables, recovery scenarios, or environment variable XML files.

  3. In the tree, select the file whose versions you want to compare.

  4. Click the History tab, and then click the Versions or Baselines tab.

  5. In the grid, select two versions to compare (using the CTRL key), and then click the Compare button.

  6. In the sidebar of the window that opens, click the QTP Comparison/ST Comparison or Automation button. The Asset Comparison Tool opens.

    Tip: You can also compare baselines from the Management module. Click the Management button in the side bar to open the Management module. Select a baseline in the tree and click the Compare To button. For details, see the OpenText Application Quality Management user guide.

Back to top

View a comparison of two asset versions (Asset Comparison Tool)

  1. With a test or component selected, select ALM > Version History. The Version History dialog box opens.

  2. In the Version History dialog box, select two versions to compare by pressing the version row and the CTRL key.

  3. Click Compare. The Asset Comparison Tool window opens with a detailed list of the similarities and differences between the selected versions.

Back to top

Compare two versions of an asset using the Asset Comparison Tool

After you select the specific versions to view in the Version History dialog box, you can view differences between the two versions.

Back to top

Drill down to view or compare versions

Drill down to view or compare integral elements included in the test or component, or external assets associated with the test or component.

  • View or compare versions of an integral element. An integral element is a resource file that is a part of the test or component (not saved as an external resource), such as a local object repository (for GUI testing) or a data table (for API testing). When you check in a test or component, these elements are checked in, too, because they are part of the test or component. Therefore, when you drill down in the asset, you can view or compare the version that existed when the test or component was checked in, in addition to the currently saved version.

  • View or compare versions of associated external assets. An associated asset is any external (not integral) resource file used by an asset (such as a function library, a shared object repository, a data table, a recovery scenario, or an environment variable XML file).

    To view or compare by drilling down, the resource file must be associated via an absolute or ALM path.

To view or compare a specific element:

  • Click the drilldown arrow adjacent to any asset that can be compared. (The pointer changes into a pointing hand in the proximity of the drilldown arrow.)

    Note: You can drill down any asset that has a drilldown arrow adjacent to it.

  • Double-click the asset.

  • Right-click the asset and select View Drilldown.

  • Select an asset and press ENTER on your keyboard.

Back to top

View the OpenText Functional Testing location of an element

Right-click the relevant node and select View Sample Snapshot. The screen capture displays an example of the relevant dialog box. The option (or area) for the node you right-clicked is highlighted in the screen capture. For details, see View Assets.

Back to top

View the number of differences for a specific element

In the Asset Comparison Tool, collapse the node representing an element.

If the sub-elements of that element are different between versions, a legend is displayed adjacent to the node. The legend indicates the number of differences that exist under the collapsed element.

Example: In the following example, three sub-elements were modified, one was deleted, and seven were added:

Back to top

See also: