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 (
).Procedure
-
Open the test result that you want to export from the Test
Navigator.
The test result is displayed in a browser.
- Click the Menu icon , and then click the Share icon .
- Click Export Session to JSON file.
-
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.
-
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 -
Select Full to export all the data in the results.
-
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.
-
- 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.
- 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.
- 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.
- Click Export to specify the folder path to save the exported result.
- Click OK to save the exported results to a JSON file.