Exporting results to a JSON file by using the product
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 the product.
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 workbench, and then go to .
- Expand the Test folder, and then select Performance Test Run Statistics as JSON file.
-
Click Next.
The Export Performance Test Run Statistics window is displayed.
-
Specify the folder path to save exported test results in the Export
Directory field.
Alternatively, you can click Browse and select a directory.
- Select the encoding system for the exported results from the Exported encoding drop-down list.
-
Expand the project, and then select one or more test results that you want to
export.
Note: When you select a test result, you can export data of specific time ranges. For example, Entire Run, 5 Users, or 15 Users. By default, the report includes the data for the Entire Run.
-
Click Next and perform any of the following actions
described in the following table to include the type of results into the JSON
file:
Requirements Options available Actions When you select a test result Simple -
Select Simple to export only the last value of each counter from results.
-
Optional: Select Time Range Comparison to export data of specific time ranges.
-
Optional: Select the time range that is displayed depending on the test result that you selected.
For example, Entire Run, 5 Users or 15 Users.Note: By default, the report includes the data for the Entire Run.
Full -
Select Full to export all the data for every sample interval during the test run.
-
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.Note: The default value is set to 250.
When you select one or more test results Simple Select Simple to export only the last value of each counter from results.
Full -
Select Full to export all the data for every sample interval during the test run.
-
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.Note: The default value is set to 250.
-
- 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 Finish to save the exported results to a JSON file.