Skip to content

Commit fc0998b

Browse files
committed
Adding comments explaining driver.quit()
1 parent 1717e26 commit fc0998b

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

android/testng-examples/src/test/java/com/browserstack/run_first_test/BrowserStackTestNGTest.java

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

6565
@AfterMethod(alwaysRun=true)
6666
public void tearDown() throws Exception {
67+
// Invoke driver.quit() to indicate that the test is completed.
68+
// Otherwise, it will appear as timed out on BrowserStack.
6769
driver.quit();
6870
}
6971
}

android/testng-examples/src/test/java/com/browserstack/run_local_test/BrowserStackTestNGTest.java

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

7575
@AfterMethod(alwaysRun=true)
7676
public void tearDown() throws Exception {
77+
// Invoke driver.quit() to indicate that the test is completed.
78+
// Otherwise, it will appear as timed out on BrowserStack.
7779
driver.quit();
7880
if(local != null) local.stop();
7981
}

android/testng-examples/src/test/java/com/browserstack/run_parallel_test/BrowserStackTestNGTest.java

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

6767
@AfterMethod(alwaysRun=true)
6868
public void tearDown() throws Exception {
69+
// Invoke driver.quit() to indicate that the test is completed.
70+
// Otherwise, it will appear as timed out on BrowserStack.
6971
driver.quit();
7072
}
7173
}

ios/testng-examples/src/test/java/com/browserstack/run_first_test/BrowserStackTestNGTest.java

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

6666
@AfterMethod(alwaysRun=true)
6767
public void tearDown() throws Exception {
68+
// Invoke driver.quit() to indicate that the test is completed.
69+
// Otherwise, it will appear as timed out on BrowserStack.
6870
driver.quit();
6971
}
7072
}

ios/testng-examples/src/test/java/com/browserstack/run_local_test/BrowserStackTestNGTest.java

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

7575
@AfterMethod(alwaysRun=true)
7676
public void tearDown() throws Exception {
77+
// Invoke driver.quit() to indicate that the test is completed.
78+
// Otherwise, it will appear as timed out on BrowserStack.
7779
driver.quit();
7880
if(local != null) local.stop();
7981
}

ios/testng-examples/src/test/java/com/browserstack/run_parallel_test/BrowserStackTestNGTest.java

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

6767
@AfterMethod(alwaysRun=true)
6868
public void tearDown() throws Exception {
69+
// Invoke driver.quit() to indicate that the test is completed.
70+
// Otherwise, it will appear as timed out on BrowserStack.
6971
driver.quit();
7072
}
7173
}

0 commit comments

Comments
 (0)