diff --git a/core/citrus-base/src/main/java/com/consol/citrus/report/LoggingReporter.java b/core/citrus-base/src/main/java/com/consol/citrus/report/LoggingReporter.java index 55c93d2214..9407d24dcf 100644 --- a/core/citrus-base/src/main/java/com/consol/citrus/report/LoggingReporter.java +++ b/core/citrus-base/src/main/java/com/consol/citrus/report/LoggingReporter.java @@ -183,7 +183,7 @@ public void onTestActionStart(TestCase testCase, TestAction testAction) { if (isDebugEnabled()) { newLine(); if (testCase.isIncremental()) { - debug("TEST STEP " + (testCase.getActionIndex(testAction) + 1) + ": " + (testAction.getName() != null ? testAction.getName() : testAction.getClass().getName())); + debug("TEST STEP " + (testCase.getExecutedActions().size() + 1) + ": " + (testAction.getName() != null ? testAction.getName() : testAction.getClass().getName())); } else { debug("TEST STEP " + (testCase.getActionIndex(testAction) + 1) + "/" + testCase.getActionCount() + ": " + (testAction.getName() != null ? testAction.getName() : testAction.getClass().getName())); } @@ -206,7 +206,7 @@ public void onTestActionFinish(TestCase testCase, TestAction testAction) { if (isDebugEnabled()) { newLine(); if (testCase.isIncremental()) { - debug("TEST STEP " + (testCase.getActionIndex(testAction) + 1) + " SUCCESS"); + debug("TEST STEP " + (testCase.getExecutedActions().size() + 1) + " SUCCESS"); } else { debug("TEST STEP " + (testCase.getActionIndex(testAction) + 1) + "/" + testCase.getActionCount() + " SUCCESS"); } @@ -218,7 +218,7 @@ public void onTestActionSkipped(TestCase testCase, TestAction testAction) { if (isDebugEnabled()) { newLine(); if (testCase.isIncremental()) { - debug("SKIPPING TEST STEP " + (testCase.getActionIndex(testAction) + 1)); + debug("SKIPPING TEST STEP " + (testCase.getExecutedActions().size() + 1)); } else { debug("SKIPPING TEST STEP " + (testCase.getActionIndex(testAction) + 1) + "/" + testCase.getActionCount()); }