TestResultsHibernateDao.getTestsForChainResultByState(...) Throws hibernate exception

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 5.0
    • Affects Version/s: 4.2
    • Component/s: Plugins, Tests
    • None
    • Environment:

      Tomcat 6.0.24 on Oracle JDK 1.6.0_18 on Red Hat Enterprise Linux 5.8

      I'm working on making a plugin that will display the test history for a given plan, but came across this exception:

      2012-10-04 09:52:12,674 ERROR [TP-Processor10] [PlanTestHistoryDisplayPlugin] Error : Parameter summary does not exist as a named parameter in [
          SELECT t FROM TestCaseResultImpl t
            join t.testCase as tc
            join t.testClassResult as tcr
            join tcr.testClass as tcl
            join tcr.buildResultsSummary rs
            join tcl.plan as plan
            WHERE rs.chainResultsSummary = :chainResult
            AND t.state = :state
            ORDER BY tcl.name, plan.buildName
          
          ]
      2012-10-04 09:52:12,676 ERROR [TP-Processor10] [PlanTestHistoryDisplayPlugin]    AbstractQueryImpl.java.setParameter at 342
      2012-10-04 09:52:12,676 ERROR [TP-Processor10] [PlanTestHistoryDisplayPlugin]    AbstractQueryImpl.java.setParameter at 398
      2012-10-04 09:52:12,676 ERROR [TP-Processor10] [PlanTestHistoryDisplayPlugin]    TestResultsHibernateDao.java.doInHibernate at 159
      2012-10-04 09:52:12,676 ERROR [TP-Processor10] [PlanTestHistoryDisplayPlugin]    HibernateTemplate.java.execute at 370
      2012-10-04 09:52:12,676 ERROR [TP-Processor10] [PlanTestHistoryDisplayPlugin]    HibernateTemplate.java.executeFind at 341
      2012-10-04 09:52:12,676 ERROR [TP-Processor10] [PlanTestHistoryDisplayPlugin]    TestResultsHibernateDao.java.getTestsForChainResultByState at 155
      2012-10-04 09:52:12,676 ERROR [TP-Processor10] [PlanTestHistoryDisplayPlugin]    TestsManagerImpl.java.getTestsForChainResultByState at 126
      

      Here's how I'm invoking testManager.getTestsForChainResultByState(..)
      Note: I just started working on this plugin, so it's rough

      List<ResultsSummary> buildresults = resultsSummaryManager.getLastNFailedResultsSummaries(plan,5);
                  List<TestCase> testCases =  new ArrayList<TestCase>();
                  for (ResultsSummary build : buildresults) {
                  	ChainResultsSummaryImpl chainResults = (ChainResultsSummaryImpl) build;
                  	List<TestCaseResult> testCaseResults = testManager.getTestsForChainResultByState(chainResults, TestState.FAILED,0, 99);
                  	for (TestCaseResult testCaseResult : testCaseResults) {
                  		testCases.add(testCaseResult.getTestCase());
                  	}
                  }
      

            Assignee:
            Marcin Gardias
            Reporter:
            Andrew Muraco
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: