diff --git a/src/main/java/com/epam/reportportal/jbehave/ReportPortalStoryReporter.java b/src/main/java/com/epam/reportportal/jbehave/ReportPortalStoryReporter.java index 4d9beec..1732cf5 100644 --- a/src/main/java/com/epam/reportportal/jbehave/ReportPortalStoryReporter.java +++ b/src/main/java/com/epam/reportportal/jbehave/ReportPortalStoryReporter.java @@ -497,7 +497,7 @@ protected TestItemTree.TestItemLeaf retrieveLeaf() { break; case SCENARIO: Scenario scenario = (Scenario) entity.get(); - if (scenario.hasExamplesTable() || !scenario.getExamplesTable().getRows().isEmpty()) { + if (scenario.hasExamplesTable() && !scenario.getExamplesTable().getRows().isEmpty()) { // Each Example has its own scenario node, no need to wrap them into suite once again break; } @@ -575,7 +575,7 @@ protected TestItemTree.TestItemLeaf getLeaf() { break; case SCENARIO: Scenario scenario = (Scenario) entity.get(); - if (scenario.hasExamplesTable() || !scenario.getExamplesTable().getRows().isEmpty()) { + if (scenario.hasExamplesTable() && !scenario.getExamplesTable().getRows().isEmpty()) { // Each Example has its own scenario node, no need to wrap them into suite once again continue; } @@ -704,7 +704,7 @@ protected void evaluateAndFinishLastItem() { Entity entity = structure.pollLast(); if (entity != null && ItemType.SCENARIO == entity.type()) { Scenario scenario = (Scenario) entity.get(); - if (scenario.hasExamplesTable() || !scenario.getExamplesTable().getRows().isEmpty()) { + if (scenario.hasExamplesTable() && !scenario.getExamplesTable().getRows().isEmpty()) { // Each Example has its own scenario node, no need to wrap them into suite once again return; }