Forum Discussion

DisTreSs's avatar
DisTreSs
Occasional Contributor
15 years ago

Exporting/transferring assertion results

Hi,

I'm a novice user of SoapUI pro with limited programming skills but would like to see if the following is possible

I'm currently performing a REST request. The reply to that request contains a specific ID.
I have added an Xpath assertion to look up that specific ID and when it is found that portion of the XML containing the ID should be equal to the expected result.

The question now is:
- If the Xpath expression fails (ID is not found) is there any way to return a message such as "ID not found" to a property?

- If the Xpath expression fails (ID is found, but content does not match expected result), can I export the part that was actually found to a property?

- If the Xpath expression is succesfull (ID found and contents match), can I  return a message such as "Xpath OK" to a property?

Thank you very much in advance for your help!

If any additional information is needed, please ask

12 Replies