Hello,
This should be doable, but it's a bit tricky. First off, create an event handler in the Project:
RequestFilter.afterRequest:
def method = context.httpMethod
if( method.failed ) {
context.failureCause = method.failed ? method.failureCause.toString() : null
}
This will check if the request failed, and if so attach the failure cause to the response, which you will then be able to check in a groovy assertion:
def failureCause = context.failureCause
if( failureCause != null ) {
log.info failureCause
assert false
} else {
log.info "OK"
}
Good luck!
Regards,
Dain
eviware.com