Skip to content
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

Sharing browserstack config between environments #2668

Closed
thePantz opened this issue Jan 19, 2022 · 3 comments
Closed

Sharing browserstack config between environments #2668

thePantz opened this issue Jan 19, 2022 · 3 comments

Comments

@thePantz
Copy link
Contributor

Hello,

I want the ability to share my browserstack config between environments. I've tried using the existing default or all nodes that work with most properties. However, my browserstack config seems to be ignored if I put it here. It only works if it's placed in a Specific environment

environments {
  environmentA {
    ...
  }
  environmentB {
    ...
  }
  default {
    browserstack {
      osVersion = "10.0"
      deviceName = "Samsung Galaxy S20"
      realMobile = "true"
      debug = "true"
    }
    webdriver.driver = "remote"
    webdriver.remote.url = "https://#{browserstack.user}:#{browserstack.key}@hub-cloud.browserstack.com/wd/hub"
  }
}

If I run a test in this example, I will get a remote driver, but it will use the default capabilities (Windows Chrome). If I move the browserstack config to a specific environment, a driver is started on the correct device in browserstack

@wakaleo
Copy link
Member

wakaleo commented Jan 20, 2022

If you want a default setup, just add it to the main configuration outside of the environments block.

@wakaleo
Copy link
Member

wakaleo commented Jan 22, 2022

(Possibly fix in 3.1.16)

@wakaleo
Copy link
Member

wakaleo commented Feb 13, 2022

Fixed in 3.2.0.

@wakaleo wakaleo closed this as completed Feb 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants