Can I use two differing response assertions?
I am using a Response Assertion in my JMeter script to test a web service. The web service will respond successfully with either:
b) <ID>.*</ID> and <TC>.*</TC>
In case a) the ID and TC tags will NOT be returned.
In case b) the RC tag will NOT be returned.
I need a response assertion that will pass if EITHER case a) OR case b) is true. It seems that JMeter only allows me to AND the cases together. There's no OR functionality.
Please help!! I can't use the NOT and use error conditions either, because there are lots of error conditions. Too many to easily code.
Re: Can I use two differing response assertions?
Use a regular expression like this:
(<RC>0000</RC>|<ID>.*</ID> and <TC>.*</TC>
The '|' is the OR sign. Don't forget the '(' and ')'