You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users may want to run the same suite of feature files against multiple browsers. Currently this can only effectively be done by defining an environment variable and running Cucumber multiple times.
With JUnit 5 and TestNG it is possible to define suites that define these parameters externally. E.g:
Doing this properly would require rewriting Cucumbers RuntimeOptions. Ideally cucumber would read properties on demand using the ConfigurationParameters rather than parsing everything ahead of time. So probably something to consider for v8.
The text was updated successfully, but these errors were encountered:
🤔 What's the problem you're trying to solve?
Users may want to run the same suite of feature files against multiple browsers. Currently this can only effectively be done by defining an environment variable and running Cucumber multiple times.
With JUnit 5 and TestNG it is possible to define suites that define these parameters externally. E.g:
However there is no easy way to access the
projectname.browser
value within a Scenario.✨ What's your proposed solution?
We can use JUnit 5s
ConfigurationParameters
interface for inspiration.⛏ Have you considered any alternatives or workarounds?
ThreadLocal
to pass information to scenarios e.g: https://stackoverflow.com/a/76136072/3945473📚 Any additional context?
Doing this properly would require rewriting Cucumbers
RuntimeOptions
. Ideally cucumber would read properties on demand using theConfigurationParameters
rather than parsing everything ahead of time. So probably something to consider for v8.The text was updated successfully, but these errors were encountered: