-
-
Notifications
You must be signed in to change notification settings - Fork 683
Description
I'm using playwright with cucumber -bdd framework.
🤔 What's the problem you're trying to solve?
Can we have something like single flow multiple validations
Example: I have a pop up where 3 buttons needs to be validation for its presence so for this I need to write 3 different test cases as I don't want to merge this validations in single
If I use background or scenario outline the step till opening is pop up will execute in all 3 test cases,
Also global hooks or any before hooks will execute the flow till pop up each time.
Expectation:: Open pop up only once and all 3 test cases should be executed, be it in same file or different feature file, Be it with same tag execution run or different tag execution run
We also need to make sure each test cases have same tag execution or different tag execution
Assume all above test cases are in different feature files and the testcases have tag @regression and @PopUp
Example:
When run regression tag test cases all 3 will execute but at different time what if we could develop reading a tag popup before execution starts and have a bunch of such test cases combined internally and executed. This will reduce execution time drastically.
✨ What's your proposed solution?
It would be great if we could develop a flow like reading a tag "popup" (in above scenario) from all the feature files before execution starts and have a bunch of such test cases combined internally in memory and executed, where the popup will open only once and all related testcases having that tag within a single feature file or different feature files will perform their own validations.
Something like background we have, but background executes each time for each test case and also it has limitations to single feature file.
This will reduce execution time drastically.when tests are run in parallel.
Or
any other way you could think to handle such scenarios.
Or
If already anything like this is available in cucumber please let me know how can It be handled
⛏ Have you considered any alternatives or workarounds?
Not getting any work around
📚 Any additional context?
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status