Exporting results to a JSON file by using a web analytic report

When you want to analyze test results in a text format, you can export all test results or specific test results that are captured during a test run to a JSON file by using a web analytic report.

Before you begin

You must have at least one or more test results.

About this task

You can automatically export reports to a comma-separated values (CSV) or JSON file at the end of a test run. You can select the appropriate options to export reports from the command line, workbench, or both from the product preferences (Window > Preferences > Test > Performance Test Reports > Export Reports).

Procedure

  1. Open the test result that you want to export from the Test Navigator.
    The test result is displayed in a browser.
  2. Click the Menu icon menu_icon_from_report, and then click the Share icon share_icon_from_report.
  3. Click Export Session to JSON file.
  4. Select the encoding system from the drop-down list for the exported results.

    You can select the default encoding unless the exported JSON file is shared by multiple applications that recognize a specific encoding.

  5. Perform any of the following actions described in the following table to include the type of results into the JSON file:
    Options Actions
    Simple

    Select Simple to export only the last value of each counter from results.

    Full
    1. Select Full to export all the data in the results.

    2. Optional: Select the Split output if counters number exceeds check box, and then specify a value to create multiple JSON files if the number of counters in the exported file exceed the specified value.

  6. Select the Include per instance counters check box to include a description of the name of the result, node name, and time range for each counter.
  7. Select the Export each agent separately check box to group the data in the exported JSON file by prefixing the name of the counters with the name of the agent.
  8. Optional: Select the One file per agent check box to export data that was run on the agent in separate JSON files.
    Note: The One file per agent option is available only when you select the Export each agent separately option.
  9. Click Export to specify the folder path to save the exported result.
  10. Click OK to save the exported results to a JSON file.

Results

You have exported test results in to the JSON file by using the web analytic report.

What to do next

You can now analyze the result and share the file with stakeholders for further analysis of the results.