Class StopWatch
- java.lang.Object
-
- eu.tsystems.mms.tic.testframework.internal.StopWatch
-
public final class StopWatch extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcleanupThreadLocals()cleans all local threadsstatic java.util.List<eu.tsystems.mms.tic.testframework.internal.TimingInfo>getPageLoadInfos()static voidinitializeStopWatch()initializes the ThreadLocal List for saving LoadTimesstatic voidstartPageLoad(java.lang.Object reference)starts to load pagestatic voidstopPageLoad(org.openqa.selenium.WebDriver driver, java.lang.Class page)static voidstorePageLoadInfosAfterTestMethod(org.testng.ITestResult iTestResult)loads infos of store page after test method
-
-
-
Method Detail
-
startPageLoad
public static void startPageLoad(java.lang.Object reference)
starts to load page- Parameters:
reference- .
-
initializeStopWatch
public static void initializeStopWatch()
initializes the ThreadLocal List for saving LoadTimes
-
stopPageLoad
public static void stopPageLoad(org.openqa.selenium.WebDriver driver, java.lang.Class page)- Parameters:
driver- .page- .
-
getPageLoadInfos
public static java.util.List<eu.tsystems.mms.tic.testframework.internal.TimingInfo> getPageLoadInfos()
-
cleanupThreadLocals
public static void cleanupThreadLocals()
cleans all local threads
-
storePageLoadInfosAfterTestMethod
public static void storePageLoadInfosAfterTestMethod(org.testng.ITestResult iTestResult)
loads infos of store page after test method- Parameters:
iTestResult- .
-
-