diff --git a/src/main/java/com/privalia/qa/aspects/ifStatementAspect.java b/src/main/java/com/privalia/qa/aspects/ifStatementAspect.java index 3374400e..89209a76 100644 --- a/src/main/java/com/privalia/qa/aspects/ifStatementAspect.java +++ b/src/main/java/com/privalia/qa/aspects/ifStatementAspect.java @@ -149,7 +149,7 @@ private Boolean validateStatement(String text) { statement = m.group(1); } - String result = interpolator.replace("${javascript:" + statement + "}"); + String result = interpolator.replace("${script:javascript:" + statement + "}"); return Boolean.parseBoolean(result.toLowerCase()); } } diff --git a/src/test/resources/features/ifStatement.feature b/src/test/resources/features/ifStatement.feature index 980b3ec0..5baa59ec 100644 --- a/src/test/resources/features/ifStatement.feature +++ b/src/test/resources/features/ifStatement.feature @@ -1,8 +1,8 @@ +@ignore Feature: Conditional execution - This allows the conditional execution of steps during runtime. All steps enclosed - between this step and if (statement) { } will be executed only if the given - statement returns true, otherwise, the steps will be skipped. + This allows the conditional execution of steps during runtime. All steps enclosed between if (statement) { and } + will be executed only if the given statement returns true, otherwise, the steps will be skipped. The statement can be any javascript expression that can return a true|false output. You can even use variables created during the scenario execution.