Use versions of test scripts

Using native version control, ALM Octane tracks every saved version of your test.

Save test versions

ALM Octane uses different types of versions for tests:

  • Unlabeled versions. Versions not named by you. If you do not enter a name, ALM Octane creates a new test version each time you save the test. For automated Gherkin tests, view when the script version is injected from an external source.

  • Labeled versions. Versions named by you.

To create labeled versions:

  1. After making changes in the Steps tab (manual tests) or the Script tab (Gherkin test), click Save Version.

  2. Enter a label and click Save.

Back to top

View versions

It can be useful to view versions for comparison or other reasons.

To view versions of your test:

  1. In the Steps tab (manual tests) or the Script tab (Gherkin test) for your test, click Versions. ALM Octane displays the Versions View window.

  2. By default, ALM Octane displays only named versions. To see all versions, clear Show major versions only.

  3. Look at each version.

    For example, for automated Gherkin tests, identify if a script is injected from an external source. In the Revision column, the 3rd digit on the right displays the relevant number, and the Is external column displays Yes.

Back to top

Revert to a previous version

At times, you may need to revert to an older version of a script.

To revert to previous versions of a script:

  1. In the Steps tab (manual tests) or the Script tab (Gherkin test) for your test, click Versions. ALM Octane displays the Versions View window.

  2. Select the version and click Set as latest version.

    This creates a new version with the same content as the version you selected. This new version becomes the current and latest version. ALM Octane discards your current test script.

    The Versions window closes and you return to your test.

    Next time you open the Versions window, see Reverted to and the date and time of the revert, listed as a new version.

Back to top

Compare versions

Comparing versions of tests lets you see what has changed between versions.

To compare test versions:

  1. In the Steps tab (manual tests) or the Script tab (Gherkin test), click Versions. ALM Octane displays the Versions View window.

  2. Select one of the versions you want to compare.

  3. Click Compare. ALM Octane displays the Compare window. The selected versions display side-by-side.

    ALM Octane highlights the differences between the versions in yellow.

Back to top

Manage releases assigned to versions

When you run a test, ALM Octane selects the version of the script associated with the release assigned in the run details. Edit this association in case of a mistake or if you need to associate a version without running it.

This is useful when planning or running tests from previous releases. Use the script version associated with the previous release without the later changes.

To assign a version to a specific release:

  1. In the Steps tab (manual tests) or the Script tab (Gherkin test), click Versions. The Versions dialog box is displayed.

  2. In the Releases column, click in the required row, and select a release from the drop-down list. In the autocomplete search box, you can type numerical values to search for releases.

Back to top

See also: