Package org.easetech.easytest.reports.data

Examples of org.easetech.easytest.reports.data.ReportTotalsBean


    List<ReportTotalsBean> reportTotalsBeans = new ArrayList<ReportTotalsBean>();

    // Add method totals for every method to the reportParameters. These
    // will be showed in the column header band
    for (String methodName : methodTestResults.keySet()) {
      ReportTotalsBean createTestMethodSummary = this.createTestMethodSummary(methodTestResults.get(methodName));
      // add totals percentage to method totals bean
      createTestMethodSummary.setTotalsGraph(getPercentageImage(methodName, createTestMethodSummary));
      reportParameters.put(methodName, createTestMethodSummary);
      reportTotalsBeans.add(createTestMethodSummary);
    }

    ReportTotalsBean createTestClassSummary = this.createTestClassSummary(reportTotalsBeans);
    // add totals percentage to class totals bean
    createTestClassSummary.setTotalsGraph(getPercentageImage(className, createTestClassSummary));
    reportParameters.put(className, createTestClassSummary);
  }
View Full Code Here


  /**
   * Produces the summary of the test methed with statistics about totals
   * (passed/failed/exception etc.)
   */
  public ReportTotalsBean createTestMethodSummary(List<TestResultBean> testResultBeans) {
    ReportTotalsBean testReportTotals = new ReportTotalsBean();
    for (TestResultBean testResultBean : testResultBeans) {
      if (testResultBean.getPassed() != null && testResultBean.getPassed()) {
        testReportTotals.addPassed();
      } else if (testResultBean.getPassed() != null && !testResultBean.getPassed()) {
        testReportTotals.addFailed();
      } else if (testResultBean.getException() != null && testResultBean.getException()) {
        testReportTotals.addException();
      }
    }
    return testReportTotals;
  }
View Full Code Here

   * Produces the summary of the test class with statistics about totals
   * (passed/failed/exception etc.) This is all the summary of the test
   * methods accumulated
   */
  public ReportTotalsBean createTestClassSummary(List<ReportTotalsBean> testReportTotalsList) {
    ReportTotalsBean testReportTotals = new ReportTotalsBean();
    testReportTotals.setItem("");
    for (ReportTotalsBean reportTotalsBean : testReportTotalsList) {
      testReportTotals.addPassed(reportTotalsBean.getPassed());
      testReportTotals.addFailed(reportTotalsBean.getFailed());
      testReportTotals.addException(reportTotalsBean.getException());
    }
    return testReportTotals;
  }
View Full Code Here

TOP

Related Classes of org.easetech.easytest.reports.data.ReportTotalsBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.