Galenium "runmode=remote" using Browserstack

Description

Hello,

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:
<selenium.runmode>remote</selenium.runmode>

However, when setting the following property in one of my configuration files:
addDef "selenium.host=https://username:token@hub-cloud.browserstack.com"

I'm getting Caused by: java.io.IOException: Unable to parse URL: https://[username:token@hub-cloud.browserstack.com]: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

Activity

Show:
Adrian Stoica
May 18, 2020, 3:28 PM

Any updates please?

apegam
May 19, 2020, 11:56 AM

I’ll see if I can look into the working example suggestion tomorrow.

Adrian Stoica
May 19, 2020, 3:33 PM

thank you.

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?

apegam
May 24, 2020, 1:45 PM

I created a branch in the examples repo:

To run example test on Browserstack do the following:

  1. in local-settings.sh replace user and token with your credentials

    1. https://github.com/wcm-io-qa/wcm-io-qa-galenium-examples/blob/4938ff1cbb5712c5c02d2ef96511f79288f9c79b/remote-driver-example/tests/local-settings.sh#L9

  2. on command line run tests/run.sh

  3. report should be in tests/target/galenium-reports/extentreports/extentGalen.html

    1. Simple test across two Chrome resolutions with screenshot.

apegam
May 24, 2020, 1:54 PM

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

Assignee

Unassigned

Reporter

Adrian Stoica

Labels

None

Components

Priority

Major
Configure