Forum Discussion
andrew_laser
14 years agoOccasional Contributor
Sorry to tell you, but it didn't work either.
It's weird, but all other setters work correctly and change the assertion
e.g. setAllowWildcards(boolean allowWildcards), setExpectedContent(java.lang.String expectedContent) worked correctly and updated the XPathContainsAssertion assertion.
I was also trying the following
1) get current response XML
2) process it using XPath (use getPath() to get it)
3) set the result from 2) as expected by means of method setExpectedContent(java.lang.String expectedContent)
The problem was - unable to 2) process received response using XPath the same way as soapUI does.
It's weird, but all other setters work correctly and change the assertion
e.g. setAllowWildcards(boolean allowWildcards), setExpectedContent(java.lang.String expectedContent) worked correctly and updated the XPathContainsAssertion assertion.
I was also trying the following
1) get current response XML
2) process it using XPath (use getPath() to get it)
3) set the result from 2) as expected by means of method setExpectedContent(java.lang.String expectedContent)
The problem was - unable to 2) process received response using XPath the same way as soapUI does.