Package org.testng.internal
Class RuntimeBehavior
java.lang.Object
org.testng.internal.RuntimeBehavior
This class houses handling all JVM arguments by TestNG
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic Stringstatic Stringstatic Stringstatic intReturns the default verbosity level if not specified at the suite level.static Stringstatic Stringstatic TimeZonestatic booleanstatic booleanisDryRun()static booleanstatic booleanstatic Stringstatic booleanstatic booleanstatic booleanstatic Stringstatic booleanstatic booleanstatic booleanstatic booleanstatic boolean
-
Field Details
-
TESTNG_THREAD_AFFINITY
- See Also:
-
TESTNG_MODE_DRYRUN
- See Also:
-
TEST_CLASSPATH
- See Also:
-
SKIP_CALLER_CLS_LOADER
- See Also:
-
TESTNG_USE_UNSECURED_URL
- See Also:
-
SHOW_TESTNG_STACK_FRAMES
- See Also:
-
MEMORY_FRIENDLY_MODE
- See Also:
-
STRICTLY_HONOUR_PARALLEL_MODE
- See Also:
-
TESTNG_DEFAULT_VERBOSE
- See Also:
-
IGNORE_CALLBACK_INVOCATION_SKIPS
- See Also:
-
SYMMETRIC_LISTENER_EXECUTION
- See Also:
-
PREFERENTIAL_LISTENERS
- See Also:
-
-
Constructor Details
-
RuntimeBehavior
private RuntimeBehavior()
-
-
Method Details
-
ignoreCallbackInvocationSkips
public static boolean ignoreCallbackInvocationSkips() -
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
-
getDefaultLineSeparator
-
getCurrentUserHome
-
getDefaultDataProviderThreadCount
-
getDefaultXmlGenerationImpl
-
isTestMode
public static boolean isTestMode() -
shouldSkipUsingCallerClassLoader
public static boolean shouldSkipUsingCallerClassLoader() -
useStrictParameterMatching
public static boolean useStrictParameterMatching() -
orderMethodsBasedOn
-
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
- 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
-