Use Jenkins to trigger tests from ALM Lab Management

This topic describes how to run OpenText Functional Testing tests from the ALM Lab Management module.

Run tests from ALM Lab Management

If you have Lab Management activated in ALM, you can run server-side tests from functional test sets and build verification suites. After setting up the test sets and build verification suites, you can configure a Jenkins build step to execute your tests.

For details, see the ALM Help Center.

To configure a Jenkins build step to trigger a test run from ALM Lab Management

  1. In the Project Configuration section of the Jenkins job, scroll down to the Build section, expand the Add build step drop-down, and select Execute tests using ALM Lab Management for a freestyle project.

    Note: For a pipeline, in the Pipeline Syntax page, select sseBuild or sseBuildAndPublish from Sample Step drop-down, generate the script, and copy the script to the pipeline script box.

  2. Select one of the configured ALM servers and enter the server credentials, project, and domain.

    Depending on the authentication type required by your ALM server, credentials can either be a username and password or the Client ID and API key secret obtained from your ALM site administrator for SSO authentication.

  3. Enter the Client type.

  4. Select a Run Type from the drop down menu (functional test set or build verification suite).

  5. Enter the ID of your run entity (either the test set ID or the build verification suite ID).

  6. (Optional) Enter the description about the build step.

  7. Enter a duration (in minutes) for the time slot. The minimum time is 30 minutes.

  8. (Optional) If you have defined an AUT environment in ALM, you can enter the ID to execute your time slot with specific AUT parameters.

    If you have CDA configured in ALM and want to implement it for this time slot, select the Use CDA for provisioning and deployment checkbox and enter your CDA details.

  9. In the Post-build Actions section, click Add post-build action and select Publish OpenText test result for the freestyle project.

    Note: For a pipeline, in the Pipeline Syntax page, select publishMicroFocusTestResults from Sample Step drop-down, generate the script, and copy the script to the pipeline script box.

  10. Run or schedule the job as you would with any standard Jenkins job.

Back to top

Review the test run results from ALM

  1. From the dashboard, click on the job.

  2. Click the Console link to view the ALM information.

  3. Copy the ALM link to your browser and view the Test Set results from within ALM.

For environments with Internet Explorer 9: The report, normally accessible through a link in the console log, will not be available.

Back to top

See also: