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. 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 completed the following tasks:
  • Installed HCL OneTest Server and configured a project.
  • Logged in to HCL OneTest Server and copied the offline user token generated by using the Create 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 HCL OneTest Server Documentation.

About this task

You can configure the auto-publishing option for publishing test result reports to HCL OneTest Server by using the Project Settings menu option. When the auto-publishing option is activated, the test result report is automatically published to HCL OneTest Server whenever you run a test suite or test in HCL OneTest API.

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 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 whether the connection settings are correct and then 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 the published stubs and manages the scheduled test runs.

    2. Optionally, click Open to open an instance of HCL Quality Server.
    3. Select the default domain name to use from the list under Domain when HCL OneTest API publishes stubs to HCL Quality Server.
    4. Optionally, click SSL to specify SSL connection details for that server instance.

      The Server SSL Options dialog box 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 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.
    4. Optionally, click SSL to specify SSL connection details for that server instance.

      The Server SSL Options dialog box 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 HCL OneTest Server.
    6. Click Test to test the connection to HCL OneTest Server.
    7. Click Select.
      The list of projects on HCL OneTest Server that you are a member of are displayed. Image of the select project dialog box.
    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 HCL OneTest Server.
      • The Publish result after execution check box is enabled only after you select a project on HCL OneTest Server.
    9. Click the Publish result after execution check box.
  5. Click OK.

    You have configured HCL OneTest API to publish test result reports to the selected project on HCL OneTest Server.

  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 HCL OneTest Server.

Results

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 view the test result reports published to HCL OneTest Server. See Viewing reports published to HCL OneTest Server.