Forum Discussion

Shan's avatar
Shan
New Contributor
4 years ago

How to log Http Status code returned by SoapUI mock

Hi,

 

I'm returning just http status code 202 - Accepted from the SoapUI (v5.4.0 - freeware) mock. I want to log this http status code so I can be sure of http status code returned by mock.

 

I tried following statement  in "AfterRequest Script" tab and it does not log the http status code

mockResult.getResponseHeaders()

 

Thanks for your response.