public TestCaseDataModel(SceneItemImpl tc) { this.name = tc.getLabel(); this.execTime = CalendarUtils.formatInterval(tc.getStartTime(), tc.getEndTime()); this.numberOfSamples = String.valueOf(tc.getCounter(CanvasItem.SAMPLE_COUNTER).get()); this.numberOfAssertions = String.valueOf(tc.getCounter(CanvasItem.ASSERTION_COUNTER).get()); this.numberOfFailedAssertions = String.valueOf(tc.getCounter(CanvasItem.ASSERTION_FAILURE_COUNTER).get()); }
public final String getTime() { return CalendarUtils.formatInterval(testcase.getStartTime(), testcase.getEndTime()); }