Forum Discussion

yashu's avatar
New Member
4 years ago

calculate Response time

How do i calculate time taken by a step to run ?

example - My test case starts with data source step. I want to see how much time did this step took to run ?

2 Replies

  • ChrisAdams's avatar
    Champion Level 3



    You could put this in a Groovy script step for a single step....


    def time = testRunner.testCase.testSteps["Some Test Request"].testRequest.response.timeTaken;"Step took " + time + "ms.");


    If you want to time the whole test, then before the datasource step add a groovy step to capture the time.  Then at the end of the test then capture the time again.  E.g. endTime - startTime = lengthOfTest.

  • richie's avatar
    Community Hero
    Hey yashu,

    Would you actually need sub second timings or could you just monitor the soapui and http logs instead?