leskop
13 years agoOccasional Contributor
Multiple [In]Valid HTTP Status Codes
It would be nice to have native support for multiple "[In]Valid HTTP Status Codes" assertions for teststep (same behaviour as assertions like "Contains", "XPath Match", "Script Assertion", ...)
I can simulate this feature by created Script Assertion (each with different prefix/sulfix in name) with code bellow, but I'm afraid it's too much memory consuming, while it use groovy everytime.
I can simulate this feature by created Script Assertion (each with different prefix/sulfix in name) with code bellow, but I'm afraid it's too much memory consuming, while it use groovy everytime.
def responseStatus = messageExchange.responseStatusCode;
assert (
(responseStatus == 200) || .... || ( responseStatus == 404 )
)