MartinSpamer
13 years agoFrequent Contributor
Contains Assertion
I have a REST request test step. It includes a number of Assertions. I want add an Assertion to ensure the response correctly opens with :
This does appear as expected in the "Raw Response", but is not shown in the "XML Response". This seems odd to me that, because it should clearly be considered part of the content.
I tried using an Contains Assertion but this doesn't detect this tag.
I guess I could use a Groovy to access the raw response but wonder how this is supposed to be done, what is the official way.
-- edited for grammar & clarity --
<?xml version="1.0" encoding="UTF-8" ?>
This does appear as expected in the "Raw Response", but is not shown in the "XML Response". This seems odd to me that, because it should clearly be considered part of the content.
I tried using an Contains Assertion but this doesn't detect this tag.
I guess I could use a Groovy to access the raw response but wonder how this is supposed to be done, what is the official way.
-- edited for grammar & clarity --