Publishing test results to DevOps Test Hub

The test result indicates the quality of the application under test. Different stakeholders to the application might want to check the quality of application but do not have HCL DevOps Test Integrations and APIs (Test Integrations and APIs) installed. You can publish the test result reports to HCL DevOps Test Hub (Test Hub) so that others can view it from a web browser.

Before you begin

You must have completed the following tasks:
  • Installed Test Hub and configured a project.
  • Logged in to Test Hub and copied the offline user token generated by using the Create Token option from the menu in the Test Hub Header. You must have copied the offline user token in the Test Integrations and APIs UI. For more information, see DevOps Test Hub Documentation.

About this task

You can configure the auto-publishing option for publishing test result reports to Test Hub by using the Project Settings menu option. When the auto-publishing option is activated, the test result report is automatically published to Test Hub whenever you run a test suite or test in Test Integrations and APIs.

Procedure

  1. Click Project > Project Settings, and then click the Server Settings tab.
    Image of the Server Settings tab.
  2. Use the fields under Results Database to create or modify a database connection:
    1. Select the provider and enter the connection details about where and how the database is set up for Test Integrations and APIs.
    2. Click Test Connection to test the connection to the configured Results Database.

      If the test is successful, no further configuration is required. If the test is unsuccessful, you must verify whether the connection settings are correct and then try again.

  3. In the Control Panel section, complete the following steps:
    1. Specify the URL for HCL DevOps Test Virtualization Control Panel (Test Virtualization Control Panel).

      The server URL (https://localhost:5443/RTCP, by default) must point to the base URL of the server instance that runs the published stubs and manages the scheduled test runs.

    2. Optionally, click Open to open an instance of Test Virtualization Control Panel.
    3. Select the default domain name to use from the list under Domain when Test Integrations and APIs publishes stubs to Test Virtualization Control Panel.
    4. Optionally, click SSL to specify SSL connection details for that server instance.

      The Server SSL Options dialog opens.

    5. Select one of the following options if you have opted to specify the SSL details:
      Option Description

      Trust all certificates

      Use this option to accept any certificate that is presented by the server.

      Trust certificates signed by the inbuilt certificate authority

      Use this option to accept any certificate presented that was signed by the inbuilt certificate authority.

      Trust specific trust store

      Use this option to select a specific Java keystore within the project. This keystore contains the trusted certificates that is used to verify the certificate that is presented by the server.

    6. Click Publish results database connection to publish the details of your results database to the server if you have configured a results database and a server URL.
  4. In the DevOps Test Hub section, complete the following steps:
    1. Select the DevOps Test Hub check box to enable the fields in this section.
    2. Enter the hostname of Test Hub in the Secure host field.
    3. Paste the offline user token that you generated on Test Hub.
    4. Optionally, click SSL to specify SSL connection details for the Test Hub instance.

      The Server SSL Options dialog opens.

    5. Select one of the following options if you have opted to specify the SSL details:
      Select one of the following options:
      Option Description

      Trust all certificates

      Use this option to accept any certificate that is presented by the server.

      Trust certificates signed by the inbuilt certificate authority

      Use this option to accept any certificate presented that was signed by the inbuilt certificate authority.

      Trust specific trust store

      Use this option to select a specific Java keystore within the project. This keystore contains the trusted certificates that is used to verify the certificate that is presented by the server.

      Important: You must enter the offline user token before you test the connection to Test Hub.
    6. Click Test to test the connection to Test Hub.
    7. Click Select.
      The list of projects on Test Hub that you are a member of are displayed. Image of the select project dialog.
    8. Select the project to which you want to publish test reports.
      Notes:
      • Select the projects in which you are assigned an owner or tester role. Only owners or testers can publish test reports to the project on Test Hub.
      • The Publish result after execution check box is enabled only after you select a project on Test Hub.
    9. Click the Publish result after execution check box.
  5. Click OK.

    You have configured Test Integrations and APIs to publish test result reports to the selected project on Test Hub.

  6. To publish a test result report, open the Test Lab perspective, and complete the following steps:
    1. Select the test suite.
    2. Right-click and then click Run.

    The selected test suite runs and the test result reports are published to the selected project on Test Hub.

Results

Test results are automatically published to the selected project on Test Hub whenever the tests are run in Test Integrations and APIs.

What to do next

You can view the test result reports published to Test Hub. See Viewing reports published to DevOps Test Hub.