Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.jubula.client.archive/src/org/eclipse/jubula/client/archive/JsonImporter.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/org.eclipse.jubula.client.archive/src/org/eclipse/jubula/client/archive/JsonImporter.java b/org.eclipse.jubula.client.archive/src/org/eclipse/jubula/client/archive/JsonImporter.java
index 3f83bf1b6..469989ecc 100644
--- a/org.eclipse.jubula.client.archive/src/org/eclipse/jubula/client/archive/JsonImporter.java
+++ b/org.eclipse.jubula.client.archive/src/org/eclipse/jubula/client/archive/JsonImporter.java
@@ -1397,12 +1397,23 @@ public class JsonImporter {
ProjectDTO dto, boolean assignNewGuid) throws InterruptedException,
InvalidDataException {
+ List<TestJobDTO> testjobs = new ArrayList<>();
for (NodeDTO node : dto.getExecCategories()) {
ImportExportUtil.checkCancel(m_monitor);
+ if (node instanceof TestJobDTO) {
+ testjobs.add((TestJobDTO) node);
+ continue;
+ }
proj.getExecObjCont().addNode(
createTestSuitesOrTestJobsOrCategories(proj, node,
assignNewGuid));
}
+ for (TestJobDTO testJobDTO : testjobs) {
+ ImportExportUtil.checkCancel(m_monitor);
+ proj.getExecObjCont().addNode(
+ createTestSuitesOrTestJobsOrCategories(proj, testJobDTO,
+ assignNewGuid));
+ }
}
/**

Back to the top