Package com.eastidea.qaforum.entity

Examples of com.eastidea.qaforum.entity.TestRound


    return reportSummary;
  }

  public void wire() {
    getInstance();
    TestRound testRound = testRoundHome.getDefinedInstance();
    if (testRound != null) {
      getInstance().setTestRound(testRound);
    }
  }
View Full Code Here


    }
    TestData testData = testDataHome.getDefinedInstance();
    if (testData != null) {
      getInstance().setTestData(testData);
    }
    TestRound testRound = testRoundHome.getDefinedInstance();
    if (testRound != null) {
      getInstance().setTestRound(testRound);
    }
  }
View Full Code Here

 
  @Override
  public String persist() {
    this.instance.setRoundNo("RD_" + projectHome.getInstance().getProjectNo());
    String rt = super.persist();
    TestRound round = this.instance;
    round.setRoundNo(round.getRoundNo()
        + new DecimalFormat("0000").format(round.getId()));
    rt = super.update();
    return rt;
  }
View Full Code Here

    return (Long) getId();
  }

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

    getInstance();
    TestCase testCase = testCaseHome.getDefinedInstance();
    if (testCase != null) {
      getInstance().setTestCase(testCase);
    }
    TestRound testRound = testRoundHome.getDefinedInstance();
    if (testRound != null) {
      getInstance().setTestRound(testRound);
    }
  }
View Full Code Here

   
    String sql = "delete from reportexecution where testRound_id = " + sessionBean.getTestRoundId();
    getEntityManager().createNativeQuery(sql).executeUpdate();
   
    Long roundId = sessionBean.getTestRoundId();
    TestRound testRound = (TestRound)getEntityManager().find(TestRound.class, roundId);
   
    logCheckPointList.getLogCheckPoint().setTestRoundNo(testRound.getRoundNo());
    List<LogCheckPoint> logs = logCheckPointList.getResultList();
    HashMap<String, ReportExecution> caseHashMap = new HashMap<String, ReportExecution>();
    for (LogCheckPoint log : logs) {
      String caseNo = log.getTestCaseNo();
      TestCase testCase = null;
      String sql2 = "select testCase from TestCase testCase where caseNo = '" + caseNo + "'";
      List list = getEntityManager().createQuery(sql2).getResultList();
      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());
View Full Code Here

    reportExecutionList.getTestRound().setId(sessionBean.getTestRoundId());
    List<ReportExecution> caseReports = reportExecutionList.getResultList();

    ReportSummary reportSummary = new ReportSummary();
    testRoundHome.setTestRoundId(sessionBean.getTestRoundId());
    TestRound testRound = testRoundHome.getInstance();
    reportSummary.setTestRound(testRound);

    reportSummary.setTotalCaseNumber(0);
    reportSummary.setPassCaseNumber(0);
    reportSummary.setFailCaseNumber(0);
View Full Code Here

TOP

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

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.