calculate Response time
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2021
02:35 AM
02-18-2021
02:35 AM
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 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2021
07:44 AM
02-18-2021
07:44 AM
Hey @yashu,
Would you actually need sub second timings or could you just monitor the soapui and http logs instead?
Ta
Rich
Would you actually need sub second timings or could you just monitor the soapui and http logs instead?
Ta
Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2021
05:56 AM
02-19-2021
05:56 AM
Hi,
You could put this in a Groovy script step for a single step....
def time = testRunner.testCase.testSteps["Some Test Request"].testRequest.response.timeTaken;
log.info("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.
