Publishing specific results to DevOps Test Hub

If you have a single test result or multiple test results that are not published to HCL DevOps Test Hub (Test Hub), you can publish a single or all of them simultaneously.

Before you begin

  • You must have installed the Test Hub and started it. The server is part of the product package. For more information about Test Hub, see the Information Center.
  • You must have created an offline user token on Test Hub, see Generating an offline token.
  • If the Test Hub server is behind a firewall, you might not be able to connect to it. You must configure the firewall so that it can allow connections on ports 5443 and 7828.

About this task

You can publish the statistical reports to Test Hub at this moment.

Procedure

  1. Open Test UI, and then go to UI Test perspective to select UI tests or Functional Test perspective to select functional tests.
  2. Right-click on all the test results that you want to publish from Test Navigator, and then select Publish Results.
    Tip: You can press the Ctrl key to select the results from across projects.
    Alternatively, for UI tests, you can perform the following:
    1. Go to File > Export.
    2. Expand the Test folder, and then select Execution Result to DevOps Test Hub.
    3. Click Next.
    4. Expand the project, and then select one or more test results that you want to publish.
    5. Click Next.
  3. Click New Server and specify the URL of Test Hub.

    The format of the URL is https://fully-qualified-domain-name:443.

    Note: If you added the publish parameters in the product Preferences, then the Server field auto-populates the URL of Test Hub.
  4. Enter an offline user token that you created on Test Hub.
  5. Select a project from the Project Name drop-down list.

    The Project Name drop-down list displays all the projects on Test Hub.

  6. Click a row against the result and type the name of the label in the Labels column to add labels to the result.
    Note: If you run the test assets by using the -labels option from the command-line interface, then the Labels field contains the name of the labels that you provided during the run time and labels that you added to the performance report.
  7. Optional: Click Add Common Labels and type the name of the label to apply a common label to the selected results.
  8. Select the reports that you want to publish to the server from the Reports section.
  9. Click Publish or if you started Publish Results wizard through the File menu, click Finish.

Results

You have published the test results to Test Hub.

What to do next

To view the test results:
  1. Log in to the server.
  2. Click the Results page and then expand the test.
  3. Click the published report links. The report opens in a new browser.