Extract variables in a JSON response

The procedure for extracting variables in JSON-format response is almost identical to the standard procedure. For more information about extracting variables in a standard HTTP request, see Variable extractors.

Variable extractors may be defined on a JSON node.

The following screenshots show the simple and advanced variable extraction modes.

  1. Create an extractor.
  2. Tick the Expression check box.
  3. In the list box, select JSONPath.
  4. Click on the magnifying glass next to the text field, and select the JSON node to be extracted.
  5. Click OK.

    The JSONPath expression for the selected node appears in the text field.

  6. Define your extractor on the JSON node text.
Extract variables in an XML response

The procedure for extracting variables in XML-format response is almost identical to the standard procedure. For more information about extracting variables in a standard HTTP request, see Variable extractors.

Variable extractors may be defined on an XML node.

The following screenshots show the simple and advanced variable extraction modes.

  1. Create an extractor.
  2. Tick the Expression check box.
  3. In the list box, select XPath.
  4. Click on the magnifying glass next to the text field, and select the XML node to be extracted.
  5. Click OK.

    The XPath expression for the selected node appears in the text field.

  6. Define your extractor on the XML node text.