*** The wcm.io Project is closing down this JIRA Instance in favor of GitHub issues. *** Please use the corresponding GitHub projects to report issues - or the mailing list for general discussion.

Issues

Select view

Select search mode

 
1 of 1

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

Details

Assignee

Reporter

Components

Priority

Created May 4, 2020 at 10:43 AM
Updated May 24, 2020 at 1:54 PM

Activity

Show:

apegamMay 24, 2020 at 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

apegamMay 24, 2020 at 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

    1. https://github.com/wcm-io-qa/wcm-io-qa-galenium-examples/blob/feature/remote-webdriver-galenium-3/remote-driver-example/tests/run.sh

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

    1. Simple test across two Chrome resolutions with screenshot.

Adrian StoicaMay 19, 2020 at 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?

apegamMay 19, 2020 at 11:56 AM

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

Adrian StoicaMay 18, 2020 at 3:28 PM

Any updates please?