Latest News from the Thunders Product Team
Improvement

Assert, extract or save an XML value from the response of an API step

Ines avatar
Shared by Ines •

You can now pick a value in an XML response in the same way as in a JSON response. In the response of an API step, open the Pretty view and hover over an element or an attribute. The row shows three actions:

  • Assert: add a step that checks the value.
  • Extract: add a step that extracts the value, so that later steps can use it.
  • Save: save the value as a variable.

Thunders writes the XML path for you, for example body.slideshow.slide[1].@type. For a SOAP response, the Envelope and Body levels are left out of the path.

The actions show on elements that hold a value and on attributes. An element that contains other elements has no action, as for a JSON object. The Raw view does not change.

#Sprint37