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.
In simple mode:
In advanced mode:
To create a variable extractor using JSONPath
Create an extractor.
Tick the Expression check box.
In the list box, select JSONPath.
Click on the magnifying glass next to the text field, and select the JSON node to be extracted.
Click OK.
The JSONPath expression for the selected node appears in the text field.
Define your extractor on the JSON node text.
Warning: Extracting variables on a JSON node are resource-consuming operations. Only use this type of extraction if absolutely necessary.
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.
In simple mode:
In advanced mode:
To create a variable extractor using XPath
Create an extractor.
Tick the Expression check box.
In the list box, select XPath.
Click on the magnifying glass next to the text field, and select the XML node to be extracted.
Click OK.
The XPath expression for the selected node appears in the text field.
Define your extractor on the XML node text.
Warning: Extracting variables on an XML node are resource-consuming operations. Only use this type of extraction if absolutely necessary.