Can't you use SoapUI httplog for this? (you can find it in the bottom of
SoapUI, but it will log the whole http response). Other than that I don't
think you can use setup or tear down scripts directly since they run on
startup and end of whole load test. In single test you can have assertion
script as mentioned in [1](sample will be [2]) and print the http status
code(you can see them in script log which again can be found in bottom of
SoapUI). But couldn't find a way to run that when executing the load test
though.

[1] -
https://community.smartbear.com/t5/SoapUI-NG/Resolved-Get-HTTP-Response-Code/m-p/44044#M22923
[2] - def headers =  messageExchange.getResponseHeaders()
log.info headers["#status#"]

Thanks,

On 29 September 2016 at 10:19, Malintha Fernando <[email protected]>
wrote:

> Hi All,
>
> I am doing a SoapUI load test to an APIM HTTP endpoint which has a hard
> throttling limit of 25 TPS. Therefore, some of the requests needs to be
> flooded out by the APIM and some are needed to be forwarded to the backend.
> Consequently, the ones forwarded to backend should return a HTTP 200
> response and ones which are throttled out should return a HTTP 503
> response.
>
> I need to log the response for each request to know which ones are
> throttled out and which are sent in. Apparently, it needs to be done via a
> SoapUI test script. (setup script or a tear down script). I have gone
> through their script documentation [1] and couldn't find a method to log
> the response code.
>
> [1]. https://www.soapui.org/load-testing/scripting-
> possibilities.html#1-Setup-and-TearDown-scripts
>
> Any inputs on this are appreciated.
>
> Thanks & Regards,
>
> --
> Malintha Fernando
> Software Engineer
> WSO2 Inc. | http://wso2.com
> Mobile : +94 718874922
> Blog : http://blog.malintha.org
>
> Lean . Enterprise . Middleware
>
>
>
>
>
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to