TestNGOptions

The TestNG specific test options.

Constructors

Link copied to clipboard
@Inject
constructor(projectLayout: ProjectLayout, objects: ObjectFactory)

Properties

Link copied to clipboard
Link copied to clipboard
open val suiteXmlBuilder: Property<MarkupBuilder>
Link copied to clipboard

Functions

Link copied to clipboard
open fun copyFrom(other: TestNGOptions)
Copies the options from the source options into the current one.
Link copied to clipboard
open fun excludeGroups(excludeGroups: Array<String>): TestNGOptions
Link copied to clipboard
Option for what to do for other tests that use a configuration step when that step fails.
Link copied to clipboard
The set of groups to exclude.
Link copied to clipboard
Indicates whether the tests should be grouped by instances.
Link copied to clipboard
The set of groups to run.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Fully qualified classes that are TestNG listeners (instances of org.testng.ITestListener or org.testng.IReporter).
Link copied to clipboard
The location to write TestNG's output.
Link copied to clipboard
The parallel mode to use for running the tests - one of the following modes: methods, tests, classes or instances.
Link copied to clipboard
Indicates whether the tests should be run in deterministic order.
Link copied to clipboard
Sets the default name of the test suite, if one is not specified in a suite XML file or in the source code.
Link copied to clipboard
open fun getSuites(testSuitesDir: File): List<File>
Link copied to clipboard
The number of XML suites will run parallel
Link copied to clipboard
The suiteXmlFiles to use for running TestNG.
Link copied to clipboard
Sets the default name of the test, if one is not specified in a suite XML file or in the source code.
Link copied to clipboard
The number of threads to use for this run.
Link copied to clipboard
ThreadPoolExecutorFactory class used by TestNG
Link copied to clipboard
Whether the default listeners and reporters should be used.
Link copied to clipboard
open fun includeGroups(includeGroups: Array<String>): TestNGOptions
Link copied to clipboard
open fun methodMissing(name: String, args: Any): Any
Link copied to clipboard
open fun propertyMissing(name: String): Any
Link copied to clipboard
open fun setConfigFailurePolicy(configFailurePolicy: String)
Link copied to clipboard
open fun setExcludeGroups(excludeGroups: Set<String>)
Link copied to clipboard
open fun setGroupByInstances(groupByInstances: Boolean)
Link copied to clipboard
open fun setIncludeGroups(includeGroups: Set<String>)
Link copied to clipboard
open fun setListeners(listeners: Set<String>)
Link copied to clipboard
open fun setOutputDirectory(outputDirectory: File)
Link copied to clipboard
open fun setParallel(@Nullable parallel: @Nullable String)
Link copied to clipboard
open fun setPreserveOrder(preserveOrder: Boolean)
Link copied to clipboard
open fun setSuiteName(suiteName: String)
Link copied to clipboard
open fun setSuiteXmlBuilder(suiteXmlBuilder: MarkupBuilder)
Link copied to clipboard
open fun setSuiteXmlFiles(suiteXmlFiles: List<File>)
Link copied to clipboard
open fun setSuiteXmlWriter(suiteXmlWriter: StringWriter)
Link copied to clipboard
open fun setTestName(testName: String)
Link copied to clipboard
open fun setThreadCount(threadCount: Int)
Link copied to clipboard
open fun setThreadPoolFactoryClass(threadPoolFactoryClass: String)
Sets a custom threadPoolExecutorFactory class.
Link copied to clipboard
open fun setUseDefaultListeners(useDefaultListeners: Boolean)
Link copied to clipboard
open fun suites(suiteFiles: Array<File>)
Add suite files by File objects.
open fun suites(suiteFiles: Array<String>)
Add suite files by Strings.
Link copied to clipboard
open fun suiteXmlBuilder(): MarkupBuilder
Link copied to clipboard