UFT One tests

This topic describes the administrator tasks required to retrieve UFT One tests from Jenkins.

Step 1: Upload scripts to a Git repository

Upload your UFT One scripts to a Git repository. This repository can be any Git-compliant system, whether on-premises or in the cloud.

Note: The ADM Jenkins plugin requires that the Git default branch be named master.

The UFT One scripts can reside in any directory level below master.

Back to top

Step 2: Create an API key

Generate a dedicated API key to secure the connection between Jenkins and MBT.

You generate the key for CI/CD Integration. The user performing this operation must have space admin rights.

To create an API key:

  1. Open the Settings menu, click Spaces, and select a space.

  2. Select the API Access tab.

  3. Click the API access button to add a new API access key. Enter a name for the key, select the CI/CD Integration role, and select one or more workspaces for the key.

  4. Click Add. The access key information is displayed.

    Note: For security reasons, the key information will never be displayed again, so you must record it for future use.

For more details on API access, see the OpenText Core Software Delivery Platform Help Center.

Back to top

Step 3: Configure the Jenkins plugin

For Jenkins to work with MBT, install and configure the Application Automation Tools plugin.

To install and configure the plugin:

  1. In Jenkins, download and install the latest version of the plugin. For details, see Application Automation Tools plugin.

  2. After you install the plugin and reboot Jenkins, open Manage Jenkins > Configure system. In the ALM Octane CI section, add a new server and enter the following information:

    Field Information to enter
    Location

    The full URL presented to you when you access MBT in OpenText Core Software Delivery Platform.

    Client ID From the API access key.
    Client Secret From the API access key.
    Jenkins User

    The Jenkins user that runs the MBT jobs.

  3. Click Test Connection to make sure Jenkins connects with MBT.

Back to top

Step 4: Configure MBT

To complete the setup, you need to set up Jenkins connectivity from the MBT side, and define an MBT runner and release.

  1. Open the Settings menu, click Spaces, and select a space.

  2. Select the DevOps tab.

  3. Open the CI Servers section and click the CI Server button to add a new CI server.

  4. Enter a name for the CI server, and select your Jenkins server from the CI Server list.

    Note: If your Jenkins server is not listed, either the Jenkins side is not defined correctly (Test Connection on Jenkins has failed), or this Jenkins server is already used by another MBT CI Server setup.

  5. Define the MBT Runner. This links the Jenkins server with the Git repository, generates the Git auto-discovery (mirroring) jobs, and defines and launches MBT tests on the Jenkins server.

    1. Open the Test Runners section and click the Test Runner button to add a new test runner.

    2. Define the following:

      Field Information to enter
      Name

      A name for the runner.

      Framework MBT
      CI Server

      The CI server that you added.

      Repository

      The URL of your Git repository.

      User name and Password

      The credentials needed to connect to the Git repository (read-only access).

      Click Test Connection to validate that all settings are correct.

  6. Open the workspace Releases tab and make sure that at least one release is defined, as MBT requires each test run to be associated with a release.

Back to top

See also: