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.StringFAVOR_CUSTOM_THREAD_POOL_EXECUTORstatic java.lang.StringIGNORE_CALLBACK_INVOCATION_SKIPSstatic java.lang.StringPREFERENTIAL_LISTENERSstatic java.lang.StringSHOW_TESTNG_STACK_FRAMESstatic java.lang.StringSTRICTLY_HONOUR_PARALLEL_MODEstatic java.lang.StringSYMMETRIC_LISTENER_EXECUTIONstatic java.lang.StringTESTNG_DEFAULT_VERBOSEstatic java.lang.StringTESTNG_MODE_DRYRUNstatic java.lang.StringTESTNG_THREAD_AFFINITYstatic java.lang.StringTESTNG_USE_UNSECURED_URL
-
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 intgetDefaultVerboseLevel()Returns the default verbosity level if not specified at the suite level.static java.lang.StringgetDefaultXmlGenerationImpl()static java.util.List<java.lang.String>getPreferentialListeners()static java.lang.StringgetTestClasspath()static java.util.TimeZonegetTimeZone()static booleanignoreCallbackInvocationSkips()static booleanisDryRun()static booleanisMemoryFriendlyMode()static booleanisTestMode()static java.lang.StringorderMethodsBasedOn()static booleanshouldSkipUsingCallerClassLoader()static booleanshowTestNGStackFrames()static booleanstrictParallelism()static java.lang.StringunsecuredUrlDocumentation()static booleanuseEmailableReporter()static booleanuseSecuredUrlForDtd()static booleanuseStrictParameterMatching()static booleanuseSymmetricListenerExecution()
-
-
-
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
-
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
-
STRICTLY_HONOUR_PARALLEL_MODE
public static final java.lang.String STRICTLY_HONOUR_PARALLEL_MODE
- See Also:
- Constant Field Values
-
TESTNG_DEFAULT_VERBOSE
public static final java.lang.String TESTNG_DEFAULT_VERBOSE
- See Also:
- Constant Field Values
-
IGNORE_CALLBACK_INVOCATION_SKIPS
public static final java.lang.String IGNORE_CALLBACK_INVOCATION_SKIPS
- See Also:
- Constant Field Values
-
SYMMETRIC_LISTENER_EXECUTION
public static final java.lang.String SYMMETRIC_LISTENER_EXECUTION
- See Also:
- Constant Field Values
-
PREFERENTIAL_LISTENERS
public static final java.lang.String PREFERENTIAL_LISTENERS
- See Also:
- Constant Field Values
-
FAVOR_CUSTOM_THREAD_POOL_EXECUTOR
public static final java.lang.String FAVOR_CUSTOM_THREAD_POOL_EXECUTOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
ignoreCallbackInvocationSkips
public static boolean ignoreCallbackInvocationSkips()
-
getPreferentialListeners
public static java.util.List<java.lang.String> getPreferentialListeners()
- Returns:
- - A comma separated list of packages that represent special listeners which users will expect to be executed after executing the regular listeners. Here special listeners can be anything that a user feels should be executed ALWAYS at the end.
-
strictParallelism
public static boolean strictParallelism()
-
showTestNGStackFrames
public static boolean showTestNGStackFrames()
-
useSecuredUrlForDtd
public static boolean useSecuredUrlForDtd()
-
isMemoryFriendlyMode
public static boolean isMemoryFriendlyMode()
-
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()
-
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)
-
getDefaultVerboseLevel
public static int getDefaultVerboseLevel()
Returns the default verbosity level if not specified at the suite level.- Returns:
- default XML suite verbosity level, or 1 if property is missing
-
useSymmetricListenerExecution
public static boolean useSymmetricListenerExecution()
- Returns:
- -
trueif we would like to invoke AfterClass methods symmetrically to BeforeClass. When true, order is:- Class @afterClass methods
- Listener onAfterClass methods
-
-