Using community soapui 5.2.1. Can I use an XPATH assertion to test a number is between two values? This question shows how to do one logical test. But I'd like to store the value in a variable and test on an AND condition. Something like (psuedo code):
declare namespace ns1='http://my.space/XML/output/6.1';
testme=//ns1:items-section[1]/ns1:results/@total_items;
testme > 100 && testme < 200;
If this can't be done, options i see are:
- retrieving the attribute twice (guess that's not performant)
- reverting to script assertion (more complex )
- buy NG PRO ( more expensive)