-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lakovych Alexey
committed
Nov 16, 2019
1 parent
3e9b19e
commit 495ecba
Showing
6 changed files
with
46 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/java/com/loliktest/ufit/BrowserQuiteListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.loliktest.ufit; | ||
|
||
import org.testng.*; | ||
|
||
public class BrowserQuiteListener implements ISuiteListener { | ||
|
||
|
||
@Override | ||
public void onStart(ISuite suite) { | ||
|
||
} | ||
|
||
@Override | ||
public void onFinish(ISuite suite) { | ||
for (Browser browser : UFitBrowser.runtimeBrowsersList) { | ||
try { | ||
browser.quit(); | ||
} catch (Exception e){ | ||
continue; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
src/main/java/com/loliktest/ufit/listeners/testng/BrowserQuiteListener.java
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
src/main/resources/META-INF/services/org.testng.ITestNGListener
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
com.loliktest.ufit.listeners.testng.BrowserQuiteListener | ||
com.loliktest.ufit.BrowserQuiteListener | ||
com.loliktest.ufit.listeners.testng.AllureAttachmentsListener |