Exemple #1
0
 private void addCountsToResult(
     TestExecutionReport.TestResult currentResult, TestSummary testSummary) {
   currentResult.right = Integer.toString(testSummary.getRight());
   currentResult.wrong = Integer.toString(testSummary.getWrong());
   currentResult.ignores = Integer.toString(testSummary.getIgnores());
   currentResult.exceptions = Integer.toString(testSummary.getExceptions());
 }
Exemple #2
0
  public void processTestResults(
      final String relativeTestName, TestSummary testSummary, TimeMeasurement timeMeasurement)
      throws IOException {
    finalSummary = new TestSummary(testSummary);
    TestExecutionReport.TestResult currentResult = newTestResult();
    testResponse.results.add(currentResult);
    currentResult.startTime = currentTestStartTime;
    currentResult.content = outputBuffer == null ? null : outputBuffer.toString();
    outputBuffer = null;
    addCountsToResult(currentResult, testSummary);
    currentResult.runTimeInMillis = String.valueOf(timeMeasurement.elapsed());
    currentResult.relativePageName = relativeTestName;
    currentResult.tags = page.getData().getAttribute(PageData.PropertySUITES);

    if (testSystem instanceof SlimTestSystem) {
      SlimTestSystem slimSystem = (SlimTestSystem) testSystem;
      new SlimTestXmlFormatter(currentResult, slimSystem).invoke();
    }
  }