I've found kind of a strange thing: I tried to detect if any of the steps have timed out.
For this, I use the following groovy script:
groovy:
boolean isAnyChildTimedout = false;
logger.info("step = " + step.getPath().toString())
if (step.parent != null) {
logger.info("parent = " + step.parent.getPath().toString())
for (child in step.parent.children) {
logger.info("child = " + child.getPath().toString())
logger.info("timeout = " + child.timeout.toString())
if (child.timeout && !child.getPath().equals(step.getPath())) {
logger.info("timeout found!")
isAnyChildTimedout = true;
break;
}
}
}
return !isAnyChildTimedout
This worked fine till I updated to version 15.
I added the logs as shown above in the script, and I'm not able to find the problem:
20:53:43,645 INFO - Checking step execute condition...
20:53:43,884 INFO - step = master>Platform Test>Tests Run?TestName=GetLogs
20:53:43,894 INFO - parent = master>Platform Test
20:53:43,894 INFO - child = master>Platform Test>Copy Build
20:53:43,894 INFO - timeout = 0
20:53:43,894 INFO - timeout found!
20:53:43,895 INFO - Step execute condition not satisfied, step will be skipped.
child.timeout is 0, therefore I it should not enter the "if" case, but it seems to do so.
Regards, Martin
- solved #2
- replies 3
- views 16
- stars 0
-