aldana
16 years agoOccasional Contributor
Direct assertion support for HTTP Status
Hi,
is there a built in way to assert that the response has a certain HTTP status.
Currently I am work-around it by using groovy-script assertion (e.g.):
===
assert messageExchange.responseStatusCode == 200
I think such an assertion is quite valuable if you have a HTTP rest-style api (which works a lot with http statuses). Would be great to just offer a status-code assertion (where you just enter the expected status code).
is there a built in way to assert that the response has a certain HTTP status.
Currently I am work-around it by using groovy-script assertion (e.g.):
===
assert messageExchange.responseStatusCode == 200
I think such an assertion is quite valuable if you have a HTTP rest-style api (which works a lot with http statuses). Would be great to just offer a status-code assertion (where you just enter the expected status code).