Skip to content

Commit be7e878

Browse files
committed
Added (alwaysRun = true) to all testng annotations
which resolves issue #21
1 parent f4fce2f commit be7e878

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/frameworkium/tests/internal/BaseTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public abstract class BaseTest implements SauceOnDemandSessionIdProvider, SauceO
4444
* - Initialise the screenshot capture
4545
* - Configure the browser based on paramaters (maximise window, session resets, user agent)
4646
*/
47-
@BeforeSuite
47+
@BeforeSuite(alwaysRun = true)
4848
public static void instantiateDriverObject() {
4949
driverType = new ThreadLocal<DriverType>() {
5050
@Override
@@ -79,7 +79,7 @@ protected ScreenshotCapture initialValue() {
7979
*
8080
* @param testMethod - The test method name of the test
8181
*/
82-
@BeforeMethod
82+
@BeforeMethod(alwaysRun = true)
8383
public static void configureBrowserBeforeTest(Method testMethod) {
8484
configureDriverBasedOnParams();
8585
initialiseNewScreenshotCapture(testMethod);
@@ -140,7 +140,7 @@ private static void setUserAgent() {
140140
/**
141141
* Loops through all active driver types and tears down the driver object
142142
*/
143-
@AfterSuite
143+
@AfterSuite(alwaysRun = true)
144144
public static void closeDriverObject() {
145145
try {
146146
for (DriverType driverType : activeDriverTypes) {

0 commit comments

Comments
 (0)