-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
None
-
Affects Version/s: None
-
Component/s: Database (other), Infrastructure, Plugins
-
None
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());
}
}