Forum Discussion

jrahman's avatar
jrahman
Contributor
15 years ago

Groovy example of getting response time

I am using SoapUI 3.6.1 Pro.
I want a groovy example to get the response time after each response is received and assign it to a variable.

something like this:
....
def myResponseTime = getResponseTime(); // <-- this is an example
....

3 Replies

  • While waiting for the reply, I searched the older postings and got the answer.

    The code example is:

    def responseTime = testRunner.testCase.testSteps["Request"].testRequest.response.getTimeTaken(); // <-- in ms

    Long live SoapUI !