private int getTestAge(TestResult result) {
   if (result.isPassed()) return 0;
   else if (result.getOwner() != null) {
     return result.getOwner().getNumber() - result.getFailedSince() + 1;
   } else {
     return 0;
   }
 }
示例#2
0
 @Override
 public String getTestResultPath(TestResult it) {
   // Prepend Configuration path
   return it.getOwner().getParent().getShortUrl() + super.getTestResultPath(it);
 }