Skip to content

Commit 7ceec9e

Browse files
committed
Adding comments for driver.quit()
1 parent 21d8af6 commit 7ceec9e

File tree

12 files changed

+24
-2
lines changed

12 files changed

+24
-2
lines changed

android/junit4-examples/src/test/java/com/browserstack/run_first_test/BrowserStackJUnitTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ public void setUp() throws Exception {
8989

9090
@After
9191
public void tearDown() throws Exception {
92+
// Invoke driver.quit() to indicate that the test is completed.
93+
// Otherwise, it will appear as timed out on BrowserStack.
9294
driver.quit();
9395
}
9496
}

android/junit4-examples/src/test/java/com/browserstack/run_local_test/BrowserStackJUnitTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ public void setUp() throws Exception {
100100

101101
@After
102102
public void tearDown() throws Exception {
103+
// Invoke driver.quit() to indicate that the test is completed.
104+
// Otherwise, it will appear as timed out on BrowserStack.
103105
driver.quit();
104106
if (local != null) local.stop();
105107
}

android/junit4-examples/src/test/java/com/browserstack/run_parallel_test/BrowserStackJUnitTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ public void setUp() throws Exception {
8989

9090
@After
9191
public void tearDown() throws Exception {
92+
// Invoke driver.quit() to indicate that the test is completed.
93+
// Otherwise, it will appear as timed out on BrowserStack.
9294
driver.quit();
9395
}
9496
}

android/junit5-examples/src/test/java/com/browserstack/run_first_test/BrowserStackJUnitTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ public void setup() {
9191

9292
@AfterEach
9393
public void tearDown() {
94+
// Invoke driver.quit() to indicate that the test is completed.
95+
// Otherwise, it will appear as timed out on BrowserStack.
9496
driver.quit();
9597
}
9698
}

android/junit5-examples/src/test/java/com/browserstack/run_local_test/BrowserStackJUnitTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ public void setup() throws Exception {
9797

9898
@AfterEach
9999
public void tearDown() throws Exception {
100+
// Invoke driver.quit() to indicate that the test is completed.
101+
// Otherwise, it will appear as timed out on BrowserStack.
100102
driver.quit();
101-
102103
if(local != null) local.stop();
103104
}
104105
}

android/junit5-examples/src/test/java/com/browserstack/run_parallel_test/BrowserStackJUnitTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ public void setup() {
8888

8989
@AfterEach
9090
public void tearDown() {
91+
// Invoke driver.quit() to indicate that the test is completed.
92+
// Otherwise, it will appear as timed out on BrowserStack.
9193
driver.quit();
9294
}
9395
}

ios/junit4-examples/src/test/java/com/browserstack/run_first_test/BrowserStackJUnitTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ public void setUp() throws Exception {
8888

8989
@After
9090
public void tearDown() throws Exception {
91+
// Invoke driver.quit() to indicate that the test is completed.
92+
// Otherwise, it will appear as timed out on BrowserStack.
9193
driver.quit();
9294
}
9395
}

ios/junit4-examples/src/test/java/com/browserstack/run_local_test/BrowserStackJUnitTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ public void setUp() throws Exception {
9999

100100
@After
101101
public void tearDown() throws Exception {
102+
// Invoke driver.quit() to indicate that the test is completed.
103+
// Otherwise, it will appear as timed out on BrowserStack.
102104
driver.quit();
103105
if (local != null) local.stop();
104106
}

ios/junit4-examples/src/test/java/com/browserstack/run_parallel_test/BrowserStackJUnitTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ public void setUp() throws Exception {
8686

8787
@After
8888
public void tearDown() throws Exception {
89+
// Invoke driver.quit() to indicate that the test is completed.
90+
// Otherwise, it will appear as timed out on BrowserStack.
8991
driver.quit();
9092
}
9193
}

ios/junit5-examples/src/test/java/com/browserstack/run_first_test/BrowserStackJUnitTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ public void setup() {
9393

9494
@AfterEach
9595
public void tearDown() {
96+
// Invoke driver.quit() to indicate that the test is completed.
97+
// Otherwise, it will appear as timed out on BrowserStack.
9698
driver.quit();
9799
}
98100
}

0 commit comments

Comments
 (0)