dest.setTime(Time.create(source.getStart(), source.getStop())); dest.setParameters(parameters); dest.setDescription(getDescription(testSuite.getDescription(), source.getDescription()));
/** * If test not finished yet (in our case if stop time is zero) mark it as interrupted. * Set message, stop time and status. */ public void markTestcaseAsInterruptedIfNotFinishedYet(TestCaseResult testCase) { if (testCase.getStop() == 0L) { testCase.setStop(System.currentTimeMillis()); testCase.setStatus(Status.BROKEN); testCase.setFailure(new Failure().withMessage("Test was interrupted")); } } }
theStop = this.getStop(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "stop", theStop), currentHashCode, theStop);
dest.setTime(Time.create(source.getStart(), source.getStop())); dest.setParameters(parameters); dest.setDescription(getDescription(testSuite.getDescription(), source.getDescription()));