Forum Discussion
pradeepbishnoi
15 years agoContributor
Hi,
I guess the simplest way to do this would be using Logical Operator in your XPath assertion.
something of this short
(exists(//ns1:BasicData) and exists(//ns1:CorporateData))
so this will return True only when both of these node will exists in response. Else assertion would fail.
Or add 2 separate assertion for each node & whenever there is a failure of any Xpath assertion, it would lead to the failure of complete test step.
Hope this will help.
Best Regards,
/Pradeep Bishnoi
http://learnsoapui.wordpress.com
I guess the simplest way to do this would be using Logical Operator in your XPath assertion.
something of this short
(exists(//ns1:BasicData) and exists(//ns1:CorporateData))
so this will return True only when both of these node will exists in response. Else assertion would fail.
Or add 2 separate assertion for each node & whenever there is a failure of any Xpath assertion, it would lead to the failure of complete test step.
Hope this will help.
Best Regards,
/Pradeep Bishnoi
http://learnsoapui.wordpress.com