Skip to content

Commit

Permalink
[#323] Enable passing credentials for Browserstack via envs
Browse files Browse the repository at this point in the history
  • Loading branch information
oomelianchuk committed Dec 13, 2024
1 parent 3d943ae commit 877c0e4
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@ protected TestEnvironment(Properties properties, String baseKey)
{
url = properties.getProperty(baseKey + ".url");
username = properties.getProperty(baseKey + ".username");
if (StringUtils.isBlank(username))
{
username = System.getenv("BROWSERSTACK_USERNAME");
}
password = properties.getProperty(baseKey + ".password");
if (StringUtils.isBlank(password))
{
password = System.getenv("BROWSERSTACK_PASSWORD");
}
optionsTag = properties.getProperty(baseKey + ".optionsTag");
useProxy = Boolean.valueOf(properties.getProperty(baseKey + ".proxy"));
if (useProxy)
Expand Down

0 comments on commit 877c0e4

Please sign in to comment.