I'm not sure if I picked the right category for this issues (there is no Galenium Project available).
Basically I would need to run Galenium using:
However, when setting the following property in one of my configuration files:
I'm getting Caused by: java.io.IOException: Unable to parse URL: https://[username:firstname.lastname@example.org]:4444/wd/hub/session
By analyzing the code in io/wcm/qa/glnm/webdriver/WebDriverFactory.java#getRemoteDriver(), I can see that it automatically adds the https, port and /wd/hub in case the are null or missing.
I would need to configure the URL as above, so what would be the best way to achieve this ?
LE: documentation link: https://www.browserstack.com/automate/java
Any updates please?
I’ll see if I can look into the working example suggestion tomorrow.
Also regarding the browsermob configuration: I can see that at every startup, it spawns on a random port locally. Can this be configured to be bound only to a fixed port?
I created a branch in the examples repo:
To run example test on Browserstack do the following:
in local-settings.sh replace user and token with your credentials
on command line run tests/run.sh
report should be in tests/target/galenium-reports/extentreports/extentGalen.html
Simple test across two Chrome resolutions with screenshot.
About the BUP:
You can set your own proxy by putting it into Galenium context with key “galenium.proxy.browser”
start it with the port you need
Galenium will pick it up and use it if you set it early enough in the lifecycle