From be7e87822dd2185ec9a46ea391574be14901599c Mon Sep 17 00:00:00 2001 From: robertgates55 Date: Fri, 11 Sep 2015 12:50:05 +0100 Subject: [PATCH] Added (alwaysRun = true) to all testng annotations which resolves issue #21 --- src/main/java/com/frameworkium/tests/internal/BaseTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/frameworkium/tests/internal/BaseTest.java b/src/main/java/com/frameworkium/tests/internal/BaseTest.java index 6afe9f99..2384bdce 100644 --- a/src/main/java/com/frameworkium/tests/internal/BaseTest.java +++ b/src/main/java/com/frameworkium/tests/internal/BaseTest.java @@ -44,7 +44,7 @@ public abstract class BaseTest implements SauceOnDemandSessionIdProvider, SauceO * - Initialise the screenshot capture * - Configure the browser based on paramaters (maximise window, session resets, user agent) */ - @BeforeSuite + @BeforeSuite(alwaysRun = true) public static void instantiateDriverObject() { driverType = new ThreadLocal() { @Override @@ -79,7 +79,7 @@ protected ScreenshotCapture initialValue() { * * @param testMethod - The test method name of the test */ - @BeforeMethod + @BeforeMethod(alwaysRun = true) public static void configureBrowserBeforeTest(Method testMethod) { configureDriverBasedOnParams(); initialiseNewScreenshotCapture(testMethod); @@ -140,7 +140,7 @@ private static void setUserAgent() { /** * Loops through all active driver types and tears down the driver object */ - @AfterSuite + @AfterSuite(alwaysRun = true) public static void closeDriverObject() { try { for (DriverType driverType : activeDriverTypes) {