Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.jubula.client.ui.rap/src/org/eclipse/jubula/client/ui/rap/handler/ExportTestResultsHandler.java17
1 files changed, 6 insertions, 11 deletions
diff --git a/org.eclipse.jubula.client.ui.rap/src/org/eclipse/jubula/client/ui/rap/handler/ExportTestResultsHandler.java b/org.eclipse.jubula.client.ui.rap/src/org/eclipse/jubula/client/ui/rap/handler/ExportTestResultsHandler.java
index 69237762c..400321845 100644
--- a/org.eclipse.jubula.client.ui.rap/src/org/eclipse/jubula/client/ui/rap/handler/ExportTestResultsHandler.java
+++ b/org.eclipse.jubula.client.ui.rap/src/org/eclipse/jubula/client/ui/rap/handler/ExportTestResultsHandler.java
@@ -45,9 +45,7 @@ import org.eclipse.jubula.client.core.businessprocess.XmlResultReportWriter;
import org.eclipse.jubula.client.core.model.ITestResultSummaryPO;
import org.eclipse.jubula.client.core.model.SummarizedTestResult;
import org.eclipse.jubula.client.core.model.TestResultNode;
-import org.eclipse.jubula.client.core.persistence.GeneralStorage;
import org.eclipse.jubula.client.core.persistence.Persistor;
-import org.eclipse.jubula.client.core.persistence.TestResultPM;
import org.eclipse.jubula.client.ui.editors.TestResultViewer.GenerateTestResultTreeOperation;
import org.eclipse.jubula.client.ui.rap.constants.IdConstants;
import org.eclipse.jubula.client.ui.rap.servicehandler.DownloadTestResultsServiceHandler;
@@ -250,16 +248,13 @@ public class ExportTestResultsHandler extends AbstractHandler {
// DB connection. Otherwise we will receive an NPE
// while trying to initialize the Master Session.
if (Persistor.instance() != null) {
- List<Number> idsWithDetails =
- TestResultPM.computeTestresultIdsWithDetails(
- GeneralStorage.getInstance().getMasterSession());
for (Object selectedElement : structuredSelection.toArray()) {
- if (selectedElement instanceof ITestResultSummaryPO
- && idsWithDetails.contains(
- ((ITestResultSummaryPO)selectedElement).getId())) {
-
- selectedSummaryList.add(
- (ITestResultSummaryPO)selectedElement);
+ if (selectedElement instanceof ITestResultSummaryPO) {
+ ITestResultSummaryPO summary = (ITestResultSummaryPO)
+ selectedElement;
+ if (summary.hasTestResultDetails()) {
+ selectedSummaryList.add(summary);
+ }
}
}
}

Back to the top