Forum Discussion

Mark_Amrap's avatar
Mark_Amrap
New Contributor
6 years ago

How to stop a scenario in scenario outlines when a step fail in cucumbe js?

In the scenario outline, I would like to skip steps when a step fails in a scenario and to continue on the following scenario.

for example :

Examples:

|param 1|

|scenario 1|

|scenario 2|

|scenario 3|

If a step fails in scenario 1, I would like to continue directly to scenario 2 and not executing all the following steps in scenario 1 after the step fails.

Thanks for the answers!