dschweie
14 years agoNew Contributor
MockService: How to anser a request with special HTTP status
Hi,
first I have to say that I really like soapUI. I use MockService for testing client software.
I would like to answer a request with another HTTP status code than 200. I already used script inside response. Here you find my snippet:
In dialog "MockResponse Properties" I can observe the value 401 in property "Response HTTP-Status"
After sending a request to MockService by jMeter I always see "Response code: 200".
Could you please give me a hint? Thanks in advance.
Best Regards
Dirk O. Schweier
first I have to say that I really like soapUI. I use MockService for testing client software.
I would like to answer a request with another HTTP status code than 200. I already used script inside response. Here you find my snippet:
mockResponse.setResponseHttpStatus("401")
In dialog "MockResponse Properties" I can observe the value 401 in property "Response HTTP-Status"
After sending a request to MockService by jMeter I always see "Response code: 200".
Could you please give me a hint? Thanks in advance.
Best Regards
Dirk O. Schweier