Forum Discussion

sandrocsimas's avatar
12 years ago

How can i test the full response content ?

Hi all, i'm new in SOAPUI and i need to test the response XML content comparing with an expected response XML.
The problem is that i can't test the raw xml data because it contains a lot of white space.
SOAPUI provides an already exists assertion to test all xml content ?
It's better to use the scripting way to compare ?
How can i do that ?

1 Reply

  • nmrao's avatar
    nmrao
    Community Hero
    1. You may use xpath assertion on the result where it can verify a simple or complex xml element.
    2. You may also use comparing full response comparision by having a master copy and compare actual response with it. It has to be done with some scripting / use of libraryies like XmlUtils etc.
    Hope this will help.