I have to check if the previous scenario has executed completely and if it fails I need to skip next Scenario, is it possible?
Asked
Active
Viewed 919 times
0
-
This might help: https://stackoverflow.com/questions/16037999/is-it-possible-to-skip-a-scenario-with-cucumber-jvm-at-run-time – orde May 20 '18 at 21:04
2 Answers
0
Afaik this is not possible. In general, Scenarios should be independent of each other.

Marit
- 2,399
- 18
- 27
0
You can achieve this by using gherkin with qaf where you can either set dependencies (which is not preferable but supported with qaf bdd) or adding testng method invocation listener and skip scenario on condition in before invocation method.

user861594
- 5,733
- 3
- 29
- 45