Replies: 2 comments 1 reply
-
You won't be able to do that directly from the command line, because the configuration is read from the serenity.conf file in the HOCON format. You can configure different setups using environment sections. |
Beta Was this translation helpful? Give feedback.
1 reply
-
This is how i tried, put the below in serenity.conf file and in the command call -Denvironment=firefox or -Denvironment=chrome accordingly
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to pass goog:ChromeOptions from maven command line instead of being dependent on serenity.conf but I am unable to parse it correctly. I have tried in many ways but it is still not working below is once such way I tried:
mvn clean verify serenity:aggregate -Dcucumber.options='src/test/resources/features --tags @sample --plugin json:target/CucumberReport.json --plugin junit:target/cucumber-reports/Cucumber-Sanity.xml' -Dwebdriver.driver=chrome -Dheadless.mode=true -Dwebdriver.driver.capabilities={'goog:chromeOptions'{args=['no-sandbox', 'disable-dev-shm-usage', 'disable-gpu', 'ignore-certificate-errors']}}
Any help will be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions