CI plugins

The OpenText Core Performance Engineering plugins for continuous integration enable you to trigger a OpenText Core Performance Engineering test as a build step and present the results in the CI server's user interface.

Note: This topic contains a number of instances where you need to enter the server URL. You can get the URL by copying it from the address bar of the browser you opened LoadRunner Cloud. For example, if the URL in the address bar of the browser is https://loadrunner-cloud.saas.opentext.com/home/?TENANTID=208294383&projectId=1, copy the address https://loadrunner-cloud.saas.opentext.com.

Use the Jenkins plugin

We recommend that you always use the latest version of the plugin. Older versions of the plugin (versions 4.8.43 or earlier) have been deprecated.

To install the latest Jenkins plugin:

Download and install the latest Jenkins Plugin which is available on the official Jenkins plugin website.

To upgrade the Jenkins plugin from an older (deprecated) version:

Uninstall the old plugin, restart Jenkins, and then install the new Jenkins plugin.

Note: If you are upgrading from an older (deprecated version), previous configuration and historical data is not saved.

To use the deprecated Jenkins plugin:

To install and work with an old version of the Jenkins plugin (version 4.8.43 or earlier), do the following:

Back to top

Use the Azure DevOps plugin

Use the Azure DevOps Server (also known as TFS, Team Foundation Server) and Visual Studio Team Services (VSTS, also known as Azure DevOps) plugin to include a OpenText Core Performance Engineering test as part of a build script.

  1. Download the LoadRunner Cloud extension for Azure DevOps.

  2. Install the extension for Azure DevOps. For details, refer to the Azure DevOps extension installation help.

  3. Create a service endpoint. For details, refer to the Azure manage service connections help.

    When creating the service endpoint, configure the following parameters for OpenText Core Performance Engineering:

    Name Description
    Server URL

    URL to connect to the OpenText Core Performance Engineering server (see note in CI plugins for details).

    Authentication
    • For username/password authentication, enter the following:

      • User Name. Your user name to log on to OpenText Core Performance Engineering.

      • Password. Your password to log on to OpenText Core Performance Engineering.

    • For OAuth authentication, paste your Client ID in the User Name box, and your Client Secret in the Password box.

      Click Save & Test to test the connection using the credentials that you provided.

      Note: Tenants created before version 24.3 can authenticate using the username/password or OAuth authentication methods. However, tenants created for version 24.3 and higher may only authenticate with the OAuth method with a client ID and secret key. The preferred and more secure method is to always authenticate with a client ID and secret key, even for earlier versions.

    Proxy URL Add your local proxy in the format http(s)://(host):(port#) or leave empty if you are not using a local proxy.
    Proxy Username If using a proxy that requires credentials, enter the user name.
    Proxy Password If using a proxy that requires credentials, enter the password.
  4. Add a task to the build. For details, refer to the help on Azure tasks.

    When creating the task, configure the following parameters for OpenText Core Performance Engineering:

    Name Description
    LoadRunner Cloud Service Endpoint Select the service endpoint you created above for your OpenText Core Performance Engineering server.
    Tenant ID

    Your tenant ID, specified in your OpenText Core Performance Engineering URL.

    Example: https://loadrunner-cloud.saas.opentext.com/home/?TENANTID=354274891

    Project ID

    Your project ID, specified in your OpenText Core Performance Engineering URL.

    Example: https://loadrunner-cloud.saas.microfocus.com/home/?TENANTID=354274891&projectId=1

    Test ID

    The ID of the test.

    To see the test ID, open the test in the Load tests tab and click Test settings.

    Send e-mail to the preset address Select this checkbox if you want to receive a notification email to a preset address after the test run is finished.
    Run Test in Detached Mode Deactivates the reporting of test run results. Select this checkbox if you don't want the task to wait for the load test run to finish.
  5. For earlier versions of the Azure DevOps server, you may need to enable the Allow scripts to access the OAuth token option before running the task.

  6. When the task has finished, you can view an artifact published on the Summary tab and a brief report on the OpenText Core Performance Engineering tab.

  7. When finished, a variable called LRC_RUN_ID is available in the extension. This variable stores the ID of the run started by the task. You can use this variable in later steps in the same pipeline to query OpenText Core Performance Engineering public APIs for additional metrics (after the run finishes and such metrics are available).

    To use the LRC_RUN_ID variable in the pipeline:

    Pipeline Job Steps
    Classic Same job
    1. Set a reference name for the OpenText Core Performance Engineering test task.

    2. Refer to the variable in the format $(<ReferenceName>.<VariableName>).

    For example, if you set a reference name of LRC, refer to the variable by using $(LRC.LRC_RUN_ID).

    YAML Same job
    1. Set a name for the OpenText Core Performance Engineering test task. For example, name:LRC.

    2. Refer to the variable in the format $(<ReferenceName>.<VariableName>).

    For example, if you set a name of LRC, refer to the variable using $(LRC.LRC_RUN_ID).

    YAML

    Different job

    Note: To use the variable in a different job, you must use the YAML pipeline.

    1. Set a name for the OpenText Core Performance Engineering test task. For example, in the runLRC job, set name:LRC.

    2. In the jobs in different tasks, set dependsOn to the job name in which you defined the name for theOpenText Core Performance Engineering test task in the above step. For example, dependsOn runLRC.

    3. Map the variable to the current job. For example, runIdFrom_LRC: $[ dependencies.runLRC.outputs['LRC.LRC_RUN_ID'] ].

    4. You can now refer to the variable using the mapping defined in the above step. For example, $(runIdFrom_LRC)

    For more information, see Use output variables from tasks in the Azure Devops documentation.

Back to top

Use GitHub Actions

OpenText Core Performance Engineering provides a GitHub Action to enable you to trigger a load test and collect reports as part of a workflow. You can include the action as a step in your workflow YAML file and provide the necessary input parameters. For example:

Copy code
```
  - name: start a load test run
    uses: MicroFocus/lrc-gh-action@v1
    env:
      ...
    with:
      ...
```

For more information and examples, see LoadRunner Cloud GitHub Action.

For general information on GitHub Actions, refer to the GitHub Actions documentation.

Back to top

See also: