Forum Discussion
SmartBear_Suppo
15 years agoSmartBear Alumni (Retired)
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
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