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.

  1. Create an extractor.
  2. Check the JSONPath expression box.
  3. Click on the magnifying glass next to the text field, and select the JSON node to be extracted.
  4. Click OK.

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

  5. Define your extractor on the JSON node text.

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

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.

  1. Create an extractor.
  2. Check the XPath expression box.
  3. Click on the magnifying glass next to the text field, and select the XML node to be extracted.
  4. Click OK.

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

  5. Define your extractor on the XML node text.

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