Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Skip Scenario in the feature based upon the condition at runtime #233

Open
contactkrsna1 opened this issue May 22, 2020 · 2 comments
Open

Comments

@contactkrsna1
Copy link

Hi,
i have a feature with 3 scenarios,
Feature
Scenario1
Scenario2
Scenario3
At runtime, after executing the scenario1 my code has a logic which tell me whether to execute scenerio 2 or scenerio 3.
How to skip Or ignore the 2nd scenario at run time?

Thanks in Advance

@wakaleo
Copy link
Member

wakaleo commented May 22, 2020

That’s not supported in Cucumber.

@contactkrsna1
Copy link
Author

Thanks for a quick response. Is there any workaround.
My application is user profile based and there are some scenarios which are not applicable for few profiles and for admin profile are scenarios are applicable.

Thanks In Advance

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants