-
-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cant pass browser for multiple browser #1446
Comments
Use the webdriver.driver property:
|
Hi @wakaleo , can I run one test with parallel + multiple browser ? |
This isn’t currently supported; typically you would do this at the CI level. |
Thanks for your reply..but I am trying to run from intellij.. by right clicking on testrunner file |
You can also set the property in the serenity.properties file. |
Yes this is my serenity prop file looks like this is how my base class looks like static EnvironmentVariables variables = SystemEnvironmentVariables.createEnvironmentVariables();
So when I use different browser in serenity prop file..and right click on my testrunner file in intellij ..correct driver should be picked up by serenity driver and act upon it throughout the test Same thing should happen when run from commandline for given parameters in command and when right clicked on feature file in intellij |
That is not how Serenity works, at multiple levels.
The correct configuration for multiple browsers is described in the documentation - I will post a link shortly. |
yes please.... there are 3 possible ways to execute the test. one is right click feature file in intellij, right click test runner in intellij and giving command through maven. so I am able to get correct driver when executingthrough command line but not with other 2 options. I need to understand how can we do it so all possible ways work well? |
Thanks...so what I understand is after passing browser as parameter from the prop file......I wont be able to execute runner file on all the 3 browsers when right clicked on it through intellij. |
IntelliJ provides excellent integrated support for Cucumber feature files. You can even run features simply by right-clicking on the feature file. But this won't work when you are using Cucumber with Serenity, as Serenity needs to instrument the feature file before execution. Fortunately, this is easy to fix. Here's how: Click on the feature file you want to run |
I cant pass a browser of my choice for serenity to manage.
I want to use multiple browser for my tests which will be read from serenity.properties file. I read it in my code and it sets up a driver. how can we set it for serenity to manage without mentioning @Managed(driver = "chrome")..can i pass a variable instead of chrome so that throughout the cucumber test serenit uses that driver ?
The text was updated successfully, but these errors were encountered: