I am using a Cucumber feature file with two scenarios using Scenario Outline. Is there a way to execute the second Scenario Outline, only if the first one passes? Scenario Outline: Test 1 fails, then Scenario Outline: Test 2 is never executed.
I wonder if there are some tags that may work like @BeforeTest that i can apply before Scenario Outline: Test 2 only. But then i have to find a way to listen for the failure in Scenario Outline: Test 1
Structure of the feature file is as follows:
Scenario Outline: Test 1
Given i run test one
When test one passes
Then run test 2
Scenario Outline: Test 2
Given test one passes
When i run test two successfully
Then both tests pass
Thank you!