Class DriverStorage
- java.lang.Object
-
- eu.tsystems.mms.tic.testframework.internal.utils.DriverStorage
-
public final class DriverStorage extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclearDriverMap()clears the driversstatic java.util.Map<java.lang.String,java.util.Map<java.lang.String,org.openqa.selenium.WebDriver>>getAllDriversPerTestMethod()Get all EventFiringDrivers of all executed TestMethodsstatic org.openqa.selenium.WebDrivergetDriverByTestMethodName(java.lang.String testMethodName, java.lang.String threadName)Get an existing EventFiringDriver for an existing testMethodName and threadNamestatic voidremoveSpecificDriver(java.lang.String testMethodName)removes specific drivers from test methodstatic voidsaveDriverForTestMethod(org.openqa.selenium.WebDriver driver, java.lang.String threadName, java.lang.String testMethodName)save the existing EventFiringDriver for the existing Testmethodname and ThreadName in a SynchronizedMap
-
-
-
Method Detail
-
saveDriverForTestMethod
public static void saveDriverForTestMethod(org.openqa.selenium.WebDriver driver, java.lang.String threadName, java.lang.String testMethodName)save the existing EventFiringDriver for the existing Testmethodname and ThreadName in a SynchronizedMap- Parameters:
driver- .threadName- .testMethodName- .
-
getDriverByTestMethodName
public static org.openqa.selenium.WebDriver getDriverByTestMethodName(java.lang.String testMethodName, java.lang.String threadName)Get an existing EventFiringDriver for an existing testMethodName and threadName- Parameters:
testMethodName- .threadName- .- Returns:
- webdriver
-
getAllDriversPerTestMethod
public static java.util.Map<java.lang.String,java.util.Map<java.lang.String,org.openqa.selenium.WebDriver>> getAllDriversPerTestMethod()
Get all EventFiringDrivers of all executed TestMethods- Returns:
- drivers per test method
-
removeSpecificDriver
public static void removeSpecificDriver(java.lang.String testMethodName)
removes specific drivers from test method- Parameters:
testMethodName- .
-
clearDriverMap
public static void clearDriverMap()
clears the drivers
-
-