Validator

Add Xpath Assertion Actions

It would be nice to have actions that allow you to perform assertions on Xpath results without first setting a variable.

 

I know you can run "Use XPath and Set Variable", then do an assertion on that variable. However, "Assert XPath Results Contains" and "Assert XPath Results Not Contains" would be very useful, by which you could specify an Xpath expression and do an assertion all in one step.

 

Use case: I make a SOAP call and set the XML response to a variable. I then need to make assertions on several different elements in the response. Rather than setting variables for each element and subsequently using "Assert Variable Equals" for each, I'd like to be able to do each Xpath expression and assertion in its own step.

Tags

Voting

1 vote
Idea No. 29