Package com.eastidea.qaforum.entity

Examples of com.eastidea.qaforum.entity.ReportExecution


      if (list.size() > 0) {
        testCase = (TestCase)list.get(0);
      }

      if (!caseHashMap.containsKey(caseNo)) {
        ReportExecution rp = new ReportExecution();

        testRound.setName(log.getTestRoundName());
        rp.setTestRound(testRound);

        rp.setTestCase(testCase);

        rp.setCaseResult(log.getCpResult());
        rp.setStartTime(log.getLogTime());
        rp.setEndTime(log.getLogTime());

        caseHashMap.put(caseNo, rp);       
      } else {
        ReportExecution rp = caseHashMap.get(caseNo);
        if (!log.getCpResult().equals("Pass")) {
          rp.setCaseResult("Fail");
        }

        if (log.getLogTime().before(rp.getStartTime())) {
          rp.setStartTime(log.getLogTime());
        }
        if (log.getLogTime().after(rp.getEndTime())) {
          rp.setEndTime(log.getLogTime());
        }
      }
    }
    for (ReportExecution rp : caseHashMap.values()) { 
      rp.setGenerateTime(new Date(System.currentTimeMillis()));
      reportExecutionHome.setInstance(rp);
      reportExecutionHome.persist();
    }
    generateSummaryReport();
  }
View Full Code Here


    return (Long) getId();
  }

  @Override
  protected ReportExecution createInstance() {
    ReportExecution reportExecution = new ReportExecution();
    return reportExecution;
  }
View Full Code Here

TOP

Related Classes of com.eastidea.qaforum.entity.ReportExecution

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.