SiKing
12 years agoCommunity Expert
getTimeTaken units?
For TestRunner.getTimeTaken() the description says: "Returns the time taken by this runner since its last start" What are the units??? I assumed it would be milliseconds, but that does not seem to be the case.
I have a simple testcase that runs a Groovy step in a loop:
Here is a snippet of the log:
Those numbers do not seem to add up to anything.
I have a simple testcase that runs a Groovy step in a loop:
log.info "testRunner.timeTaken = ${testRunner.timeTaken}"
if(testRunner.timeTaken > 20 * 60 * 1000) {
testRunner.fail("${context.testCase.name} too long to find valid current issue!")
return
}
Here is a snippet of the log:
2014-03-12 07:30:48,957 INFO [log] testRunner.timeTaken = 43102
.....
2014-03-12 08:43:48,438 INFO [log] testRunner.timeTaken = 608137
Those numbers do not seem to add up to anything.