Forum Discussion

ssharma's avatar
ssharma
Contributor
14 years ago

[Resolved] Soapui Response time issue

Hi -

I am using the Parameter " TimeTaken = ${=testRunner.results[testRunner.results.size()-1].timeTaken} " to calculate the Server reponse time. However this includes the time taken to validate the assertions and since I am using a groovy script to loop through every response and validate data the final response time is not accurately recorded.

Is there a way to get the server response time without time taken to validate the assertions ?

Thank you
Suleena Sharma

7 Replies

  • Hi,

    sure - try using

    testRunner.results[testRunner.results.size()-1].messageExchange.timeTaken

    instead. Does that work better?

    regards!

    /Ole
    SmartBear Software
  • Hi
    I tried that and I get the message Incorrect decimal value :no such property message exchange for class com.eviware.soapui.implement.wsdl.test steps.wsdltestrequeststepresult
  • Hello,

    can you try this version ?

    testRunner.results[testRunner.results.size()-1].getMessageExchanges().timeTaken

    Hope this helps!

    Regards,
    Vladimir
    SmartBear Software
  • Hi that does work and returns (139). Is that in milliseconds and the actual response time .Thanks
  • ssharma wrote:
    Hi that does work and returns (139). Is that in milliseconds and the actual response time .Thanks


    1. Yes, it's in milliseconds.
    2. It's the roundtrip time, i.e. the time from the request was sent, to the response was received. This is configurable in soapUI global settings.

    If you want to know more about your service's performance, I would use loadUI, which can load test your soapUI TestCases.

    Have a nice weekend

    Henrik
    SmartBear Software
  • Thanks this is resolved now. Is there an option to mark this as resolved ?
  • ssharma wrote:
    Thanks this is resolved now. Is there an option to mark this as resolved ?

    Not really. What we use to do sometimes is to edit the title of the first post in the topic, prepending "[Resolved]" or similar. I'll do it now

    Have a nice weekend!

    /Henrik