Viewing JSON data

You can view the JSON data in a JSON format from the test editor, and you can use this data for data correlation.

Before you begin

You must have completed the following tasks:
  • Recorded an HTTP test that contains JSON data.
  • Selected the JSON value as ON from the product preferences (Windows > Preferences > Test > Test Generation > HTTP Test Generation > Data Correlation Types).

About this task

When HTTP tests contain JSON data in a POST request or response, you can view the JSON data in the Rational® Performance Tester test editor. You can inspect the JSON data to determine if the data can be transformed to a more readable JSON format so that you can use this data for easier data correlation.

Procedure

  1. Open the HTTP test from the Test Navigator.
  2. Expand the test in the Test Contents area.
  3. Select a POST request or a response element that contains JSON data.

Results

You have viewed the JSON data in the Content section.

What to do next

You can inspect the JSON data for easier data correlation. You can also create a reference in the JSON data to use the JSON notation instead of regular expressions to locate the JSON value at run time. See Creating a Reference or a Field Reference.