Viewing Surefire format reports

After you execute JMeter, JUnit, API, and Functional tests with advanced settings in HCL OneTest Server, you can view the test results in a Surefire format report by using dedicated URLs.

Before you begin

You must have configured your tests with one of the following parameters:
  • For JMeter, JUnit, Postman, and HCL AppScan CodeSweep Suites, set the history parameter with cisterna value in the Additional Configuration Parameters field in the Advanced settings .
  • For API Suites, AFT Suites, Compound tests, Functional tests, and API tests, set the -history cisterna parameter in the Program Arguments field in the Advanced settings .

About this task

When a test run is complete, you can see the test result data in a report that is in a Surefire format. You can view this report by using dedicated URLs, and you do not have to do any import task.

Procedure

  1. Click Analyze > Results in the navigation pane.
    The Results page is displayed.
  2. Click a test result and note its project identifier and test result identifier (Id) in the URL of the test log that is displayed in your browser. The URL is in the following format: https://myProductionServer.com/#/Initial/project/<ProjectId>/analyze/test-log/<ResultId>.
    The identifiers are required to view the Surefire test logs in the following steps.
  3. Enter one of the following URLs with the appropriate information in a web browser or in an external tool that you use to view Surefire reports:
    • /rest/projects/<ProjectId>/data/views/surefire/

      Enter your REST API address and the project identifier to view the list of all test cases in the project with details about their status.

      Example: https://myProductionServer.com/rest/projects/230200/views/surefire/

    • /rest/projects/<ProjectId>/results/<ResultId>/data/views/surefire/

      Enter your REST API address, the project identifier, and the test result identifier to view the results for this test result id in the project.

      Example: https://myProductionServer.com/rest/projects/230200/results/80250/data/views/surefire/

Results

The test result reports are displayed in a Surefire format.