Skip to content

Commit 96518c7

Browse files
Adding target/ to gitignore, Changed to BROWSERSTACK_ACCESS_KEY and checking for null while checking if local is enabled
1 parent c49ed01 commit 96518c7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212

1313
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
1414
hs_err_pid*
15-
15+
target/
1616
/.idea/
17-
*.iml
17+
*.iml

src/test/java/com/browserstack/stepdefs/SearchSteps.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ public class SearchSteps {
2727
@Before
2828
public void setUp(Scenario scenario) throws Exception {
2929
String USERNAME = System.getenv("BROWSERSTACK_USERNAME");
30-
String ACCESS_KEY = System.getenv("BROWSERSTACK_ACCESSKEY");
30+
String ACCESS_KEY = System.getenv("BROWSERSTACK_ACCESS_KEY");
3131
String URL = "https://" + USERNAME + ":" + ACCESS_KEY + "@hub.browserstack.com/wd/hub";
3232

3333
DesiredCapabilities caps = new DesiredCapabilities();
3434
caps.setCapability("browser", System.getProperty("browser"));
3535

36-
if (System.getProperty("local").equals("true")) {
36+
if (System.getProperty("local") != null && System.getProperty("local").equals("true")) {
3737
caps.setCapability("browserstack.local", "true");
3838
l = new Local();
3939
Map<String, String> options = new HashMap<String, String>();

0 commit comments

Comments
 (0)