Package com.auto.framework.env
Class TestEnvironment
java.lang.Object
com.auto.framework.env.TestEnvironment
public class TestEnvironment
extends java.lang.Object
User: Priytam Jee Pandey
Date: 28/05/20
Time: 1:17 pm
email: mrpjpandey@gmail.com
-
Constructor Summary
Constructors Constructor Description TestEnvironment() -
Method Summary
Modifier and Type Method Description static java.lang.StringgetBaseDir()static AutoConfgetConfig()static java.lang.StringgetCurrentApplication()static longgetDoneTime()static longgetEndTime()static longgetInitTime()static longgetReadyTime()static java.lang.StringgetResourcePath()static ITestCasegetTestCase()static java.lang.reflect.MethodgetTestMethod()static longgetTestTime()static org.junit.rules.TemporaryFoldergetTmpFolder()static booleanhaltOnError()static voidinit(ITestCase tTestCase, java.lang.String sBaseDir, org.junit.rules.TemporaryFolder sTmpFolder)static voidsetConfig(AutoConf config)static voidsetCurrentApplication(java.lang.String sCurrentApplication)static voidsetDoneTime()static voidsetEndTime()static voidsetHaltOnError(boolean bHaltOnError)static voidsetReadyTime()static voidsetShouldKeepLog(boolean bShouldKeepLog)static voidsetTestMethod(java.lang.reflect.Method method)static booleanshouldKeepLog()
-
Constructor Details
-
TestEnvironment
public TestEnvironment()
-
-
Method Details
-
init
public static void init(ITestCase tTestCase, java.lang.String sBaseDir, org.junit.rules.TemporaryFolder sTmpFolder) -
setReadyTime
public static void setReadyTime() -
haltOnError
public static boolean haltOnError() -
setCurrentApplication
public static void setCurrentApplication(java.lang.String sCurrentApplication) -
setHaltOnError
public static void setHaltOnError(boolean bHaltOnError) -
setShouldKeepLog
public static void setShouldKeepLog(boolean bShouldKeepLog) -
setTestMethod
public static void setTestMethod(java.lang.reflect.Method method) -
setDoneTime
public static void setDoneTime() -
setEndTime
public static void setEndTime() -
getBaseDir
public static java.lang.String getBaseDir() -
getTmpFolder
public static org.junit.rules.TemporaryFolder getTmpFolder() -
getTestCase
-
getInitTime
public static long getInitTime() -
getReadyTime
public static long getReadyTime() -
getTestTime
public static long getTestTime() -
getDoneTime
public static long getDoneTime() -
getEndTime
public static long getEndTime() -
getCurrentApplication
public static java.lang.String getCurrentApplication() -
shouldKeepLog
public static boolean shouldKeepLog() -
getTestMethod
public static java.lang.reflect.Method getTestMethod() -
getConfig
-
setConfig
-
getResourcePath
public static java.lang.String getResourcePath()
-