Prioritising and adding dependencies between cucumber scenarios | Selenium Forum
G
Geeta Ayyalasomayajula Posted on 09/06/2020

How can we prioritize or add dependencies between Scenarios, in Cucumber? 

for eg: in the QTP Selenium training, we have added 2 scenario's in the Portfolio, CreatePortFolio and DeletePortFolio.

but the DeletePortFolio will fail in the parallel run, as the portfolio that is being attempted to be deleted is not created yet, in the CreatePortfolio scenario.


A
Ashish Thakur Replied on 11/06/2020

Cucumber guys have clearly mentioned that scnarios should be independent

Dependent scenarios are not supported/encouraged