Return vallue of testRunner.getTimeTaken()
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2007
08:18 AM
06-13-2007
08:18 AM
Return vallue of testRunner.getTimeTaken()
Can you tell me what i got bat brom testRunner.getTimeTaken()
is than milliseconds or what else?
is than milliseconds or what else?
4 REPLIES 4
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2007
11:16 AM
06-13-2007
11:16 AM
Hi!
yes.. in milliseconds.. it is the sum of the time taken by all teststeps during the execution of your testcase..
regards,
/Ole
eviware.com
yes.. in milliseconds.. it is the sum of the time taken by all teststeps during the execution of your testcase..
regards,
/Ole
eviware.com
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2007
01:52 PM
06-14-2007
01:52 PM
oke, thanxs
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2009
07:51 AM
08-11-2009
07:51 AM
Hi Ole,
Is there a call i can use to get the time taken for this call of the test step (the soap call).
I would like to get it logged in a data sink for each thread of a load test.
Im a newbie with groovy so all help is appreciated.
Thanks,
Bhuvan.
Is there a call i can use to get the time taken for this call of the test step (the soap call).
I would like to get it logged in a data sink for each thread of a load test.
Im a newbie with groovy so all help is appreciated.
Thanks,
Bhuvan.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2009
02:55 PM
08-12-2009
02:55 PM
Hi!
sure.. the testRunner contains a results property which is a List of all TestStepResult objects collected during the execution of the TestCase (one for each run of a TestStep). This object has a timeTaken property which contains the desired value; you just need to figure out which TestStepResult is the one you are after; for example if you add a groovy script step after your soap call, it would be the last added result;
log.info( testRunner.results[testRunner.results.size()-1].timeTaken )
Hope this helps you forward!
/Ole
eviware.com
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
sure.. the testRunner contains a results property which is a List of all TestStepResult objects collected during the execution of the TestCase (one for each run of a TestStep). This object has a timeTaken property which contains the desired value; you just need to figure out which TestStepResult is the one you are after; for example if you add a groovy script step after your soap call, it would be the last added result;
log.info( testRunner.results[testRunner.results.size()-1].timeTaken )
Hope this helps you forward!
/Ole
eviware.com
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
