+
+ testManagerService
+ .registerTestRunDescriptor(msg.getTestRunDescriptor());
+ // if (testRunDescriptor != null) {
+ // if (log.isDebugEnabled())
+ // log.debug("Updating test run descriptor with id "
+ // + testRunDescriptor.getTestRunUuid());
+ //
+ // testRunDescriptorDao.saveOrUpdate(testRunDescriptor);
+ //
+ // // Update tree test result collection
+ // // TODO: put it in dedicated service and optimize
+ // SlcExecution slcExecution = slcExecutionDao
+ // .getSlcExecution(testRunDescriptor.getSlcExecutionUuid());
+ // if (slcExecution != null) {
+ // TreeTestResultCollection ttrc = treeTestResultCollectionDao
+ // .getTestResultCollection(slcExecution.getUser());
+ // if (ttrc == null) {
+ // ttrc = new TreeTestResultCollection(slcExecution.getUser());
+ // treeTestResultCollectionDao.create(ttrc);
+ // }
+ // TreeTestResult ttr = treeTestResultDao
+ // .getTestResult(testRunDescriptor.getTestResultUuid());
+ // ttrc.getResults().add(ttr);
+ // treeTestResultCollectionDao.update(ttrc);
+ // }
+ // }
+