Publishing test results to HCL OneTest™ Server

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 OneTest™ API installed. As a user of HCL OneTest™ API, you can publish the test result reports to HCL OneTest™ Server so that others can view it from a web browser.

Before you begin

  • You must have installed HCL OneTest™ Server and configured a project. For more information about HCL OneTest™ Server, see HCL OneTest Server Documentation.
  • You must have logged in to HCL OneTest™ Server and copied the offline user token generated by using the Offline Token option from the menu in the HCL OneTest™ Server Header. You must have copied the offline user token in the HCL OneTest™ API UI. For more information, see Accessing HCL OneTest™ Server.

About this task

You can activate the auto-publishing option of publishing the test result report to HCL OneTest™ Server by using the Project Settings page. When the auto-publishing option is activated, the test result report is automatically published to HCL OneTest™ Server, whenever you run a test suite test.

You can also publish existing test result reports to HCL OneTest™ Server. For information about how to publish existing test result reports, see Publishing existing test suite results to Unified Reporting.

Procedure

To automatically publish test result reports to HCL OneTest™ Server from HCL OneTest™ API, complete the following steps:

  1. Click Project > Project Settings and then click 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 HCL OneTest™ API.
    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 that the connection settings are correct and try again.
  3. In the HCL Quality Server section, complete the following steps:
    1. Specify the URL for HCL Quality Server. The server URL (https://localhost:5443/RTCP, by default) must point to the base URL of the server instance that runs published stubs and manages scheduled execution (for more information, see HCL OneTest™ Virtualization).
    2. Optionally, click Open to open an instance of HCL Quality Server.
    3. Select the default domain name to use when publishing stubs to HCL Quality Server from the list under Domain.
    4. Optionally, click SSL to specify SSL connection details for that server instance. The Server SSL Options dialog opens. Select one of the following options:
      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, which contains the trusted certificates that can be used to verify the certificate that is presented by the server.
    5. If you configured a results database and a server URL, you can publish the details of your results database to the server by clicking Publish results database connection.
  4. In the HCL OneTest™ Server section, complete the following steps:
    1. Select the HCL OneTest™ Server check box to enable the fields in this section.
    2. Enter the host name of HCL OneTest™ Server.
    3. Paste the offline user token that you generated on HCL OneTest™ Server in the Offline Token field.
    4. Optionally, click SSL to specify SSL connection details for that server instance. The Server SSL Options dialog opens. Select one of the following options:
      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, which contains the trusted certificates that can be used to verify the certificate that is presented by the server.
    5. Click Test to test the connection to HCL OneTest™ Server.
      Important: You must enter the offline user token before you can test the connection to HCL OneTest™ Server.
    6. Click Select. The list of projects on HCL OneTest™ Server that you are a member of are displayed as shown in the following example image. Select the project that you want to publish the test reports to.
      Note: Select the projects in which you have an owner or tester role assigned. Only owners or testers can publish test reports to the project on HCL OneTest™ Server.
      Image of the select project dialog box.
    7. Click the Publish result after execution check box.
      Note: The Publish result after execution check box is enabled only after you select a project on HCL OneTest™ Server.
  5. Click OK.

    To publish a test suite report:

  6. From Test Lab, select the test suite that you want the test results for, right-click and then, click Run.

    The selected test suite runs and the test result reports are published to the selected project on HCL OneTest™ Server.

Results

The test results are automatically published to the selected project on HCL OneTest™ Server whenever the tests are run in HCL OneTest™ API.

What to do next

You can proceed to view the test result reports published to HCL OneTest™ Server. For instructions, see Viewing reports published to HCL OneTest™ Server.

Feedback