Package org.testng.internal
Class RuntimeBehavior
- java.lang.Object
-
- org.testng.internal.RuntimeBehavior
-
public final class RuntimeBehavior extends java.lang.ObjectThis class houses handling all JVM arguments by TestNG
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSHOW_TESTNG_STACK_FRAMESprivate static java.lang.StringSKIP_CALLER_CLS_LOADERprivate static java.lang.StringTEST_CLASSPATHstatic java.lang.StringTESTNG_MODE_DRYRUNstatic java.lang.StringTESTNG_THREAD_AFFINITYstatic java.lang.StringTESTNG_USE_UNSECURED_URL
-
Constructor Summary
Constructors Modifier Constructor Description privateRuntimeBehavior()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanenforceThreadAffinity()static java.lang.StringgetCurrentUserHome()static java.lang.StringgetDefaultDataProviderThreadCount()static java.lang.StringgetDefaultLineSeparator()static java.lang.StringgetDefaultXmlGenerationImpl()static java.lang.StringgetTestClasspath()static java.util.TimeZonegetTimeZone()static booleanisDryRun()static booleanisTestMode()static java.lang.StringorderMethodsBasedOn()static booleanshouldSkipUsingCallerClassLoader()static booleanshowTestNGStackFrames()static java.lang.StringunsecuredUrlDocumentation()static booleanuseEmailableReporter()static booleanuseOldTestNGEmailableReporter()static booleanuseSecuredUrlForDtd()static booleanuseStrictParameterMatching()
-
-
-
Field Detail
-
TESTNG_THREAD_AFFINITY
public static final java.lang.String TESTNG_THREAD_AFFINITY
- See Also:
- Constant Field Values
-
TESTNG_MODE_DRYRUN
public static final java.lang.String TESTNG_MODE_DRYRUN
- See Also:
- Constant Field Values
-
TEST_CLASSPATH
private static final java.lang.String TEST_CLASSPATH
- See Also:
- Constant Field Values
-
SKIP_CALLER_CLS_LOADER
private static final java.lang.String SKIP_CALLER_CLS_LOADER
- See Also:
- Constant Field Values
-
TESTNG_USE_UNSECURED_URL
public static final java.lang.String TESTNG_USE_UNSECURED_URL
- See Also:
- Constant Field Values
-
SHOW_TESTNG_STACK_FRAMES
public static final java.lang.String SHOW_TESTNG_STACK_FRAMES
- See Also:
- Constant Field Values
-
-
Method Detail
-
showTestNGStackFrames
public static boolean showTestNGStackFrames()
-
useSecuredUrlForDtd
public static boolean useSecuredUrlForDtd()
-
unsecuredUrlDocumentation
public static java.lang.String unsecuredUrlDocumentation()
-
getDefaultLineSeparator
public static java.lang.String getDefaultLineSeparator()
-
getCurrentUserHome
public static java.lang.String getCurrentUserHome()
-
getDefaultDataProviderThreadCount
public static java.lang.String getDefaultDataProviderThreadCount()
-
getDefaultXmlGenerationImpl
public static java.lang.String getDefaultXmlGenerationImpl()
-
isTestMode
public static boolean isTestMode()
-
shouldSkipUsingCallerClassLoader
public static boolean shouldSkipUsingCallerClassLoader()
-
useStrictParameterMatching
public static boolean useStrictParameterMatching()
-
orderMethodsBasedOn
public static java.lang.String orderMethodsBasedOn()
-
getTestClasspath
public static java.lang.String getTestClasspath()
-
useOldTestNGEmailableReporter
public static boolean useOldTestNGEmailableReporter()
-
useEmailableReporter
public static boolean useEmailableReporter()
-
isDryRun
public static boolean isDryRun()
- Returns:
- - returns
trueif we would like to run in the Dry mode andfalseotherwise.
-
getTimeZone
public static java.util.TimeZone getTimeZone()
- Returns:
- - returns the
TimeZonecorresponding to the JVM argument-Dtestng.timezoneif it was set. If not set, it returns the default timezone pertaining to the user propertyuser.timezone
-
enforceThreadAffinity
public static boolean enforceThreadAffinity()
- Returns:
- -
trueif we would like to enforce Thread affinity when dealing with the below two variants of execution models:- Ordering priority
- Ordering by dependsOnMethods (will not work with dependency on multiple methods)
-
-