Forum Discussion
thatsthat
4 years agoContributor
The issue is KarelHusa the value can appear in a variety of positions .. there is not just 1 amount returned .. there are many .. so i am looking to match the current result 'anywhere' in the previous step's result.
KarelHusa
4 years agoSuper Contributor
XPath assertions work exactly for such purpose.
An XPath expression like //ns2:BuyTotal/ns2:Amount = 742.50 should work for you.
ReadyAPI will help you declare namespaces and set up the XPath expression; please look at XPath Match docs for more detail.