Package org.testng
Class TestNGAntTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.testng.TestNGAntTask
-
- All Implemented Interfaces:
java.lang.Cloneable
public class TestNGAntTask extends org.apache.tools.ant.Task
TestNG settings:- classfileset (inner)
- classfilesetref (attribute)
- xmlfileset (inner)
- xmlfilesetref (attribute)
- enableAssert (attribute)
- excludedGroups (attribute)
- groups (attribute)
- junit (attribute)
- listener (attribute)
- outputdir (attribute)
- parallel (attribute)
- reporter (attribute)
- sourcedir (attribute)
- sourcedirref (attribute)
- suitename (attribute)
- suiterunnerclass (attribute)
- target (attribute)
- testjar (attribute)
- testname (attribute)
- threadcount (attribute)
- dataproviderthreadcount (attribute)
- verbose (attribute)
- testrunfactory (attribute)
- configFailurepolicy (attribute)
- randomizeSuites (attribute)
- methodselectors (attribute)
- classpath (inner)
- classpathref (attribute)
- jvm (attribute)
- workingDir (attribute)
- env (inner)
- sysproperty (inner)
- propertyset (inner)
- jvmarg (inner)
- timeout (attribute)
- haltonfailure (attribute)
- onHaltTarget (attribute)
- failureProperty (attribute)
- haltonFSP (attribute)
- FSPproperty (attribute)
- haltonskipped (attribute)
- skippedProperty (attribute)
- testRunnerFactory (attribute)
- dumpCommand (boolean)
- dumpEnv (boolean)
- dumpSys (boolean)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestNGAntTask.Mode
private static class
TestNGAntTask.TestNGLogOS
protected static class
TestNGAntTask.TestNGLogSH
-
Field Summary
Fields Modifier and Type Field Description private boolean
forkJvm
private static Logger
LOGGER
protected boolean
m_assertEnabled
protected java.util.List<org.apache.tools.ant.types.ResourceCollection>
m_classFilesets
protected java.lang.String
m_configFailurePolicy
protected java.lang.String
m_dataproviderthreadCount
private boolean
m_delegateCommandSystemProperties
protected boolean
m_dump
True if the temporary file created by the Ant Task for command line parameters to TestNG should be preserved after execution.private boolean
m_dumpEnv
private boolean
m_dumpSys
protected org.apache.tools.ant.types.Environment
m_environment
protected java.lang.String
m_excludedGroups
protected java.lang.String
m_failurePropertyName
protected java.lang.String
m_fspPropertyName
protected boolean
m_haltOnFailure
protected boolean
m_haltOnFSP
protected boolean
m_haltOnSkipped
private boolean
m_ignoreMissedTestNames
protected java.lang.String
m_includedGroups
protected org.apache.tools.ant.types.CommandlineJava
m_javaCommand
private java.util.List<java.lang.String>
m_listeners
protected java.lang.String
m_mainClass
The suite runner name (defaults to TestNG.class.getName().private java.lang.String
m_methods
private java.util.List<java.lang.String>
m_methodselectors
private java.lang.String
m_objectFactory
protected java.lang.String
m_onHaltTarget
protected java.io.File
m_outputDir
protected java.lang.String
m_parallelMode
protected java.lang.Boolean
m_randomizeSuites
private java.lang.Boolean
m_skipFailedInvocationCounts
protected java.lang.String
m_skippedPropertyName
private java.lang.String
m_suiteName
private java.lang.Integer
m_suiteThreadPoolSize
protected java.io.File
m_testjar
private java.lang.String
m_testName
private java.lang.String
m_testNames
protected java.lang.String
m_testRunnerFactory
protected java.lang.String
m_threadCount
private java.lang.Integer
m_timeout
java.lang.String
m_useDefaultListeners
private java.lang.Integer
m_verbose
protected java.io.File
m_workingDir
protected java.util.List<org.apache.tools.ant.types.ResourceCollection>
m_xmlFilesets
private java.lang.String
m_xmlPathInJar
private TestNGAntTask.Mode
mode
private java.util.List<AntReporterConfig>
reporterConfigs
The list of report listeners added via <reporter> sub-element of the Ant task
-
Constructor Summary
Constructors Constructor Description TestNGAntTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
actOnResult(int exitValue, boolean wasKilled)
private void
addArgumentsIfNotEmpty(java.util.List<java.lang.String> argv, java.lang.String name, java.util.List<java.lang.String> arguments, java.lang.String separator)
private void
addBooleanIfTrue(java.util.List<java.lang.String> argv, java.lang.String name, java.lang.Boolean value)
void
addClassfileset(org.apache.tools.ant.types.FileSet fs)
void
addConfiguredPropertySet(org.apache.tools.ant.types.PropertySet sysPropertySet)
Add the referenced property set as system properties for the TestNG JVM.void
addConfiguredReporter(AntReporterConfig reporterConfig)
private void
addDefaultListeners(java.util.List<java.lang.String> argv)
void
addEnv(org.apache.tools.ant.types.Environment.Variable var)
Adds an environment variable; used when forking.private void
addFileIfFile(java.util.List<java.lang.String> argv, java.lang.String name, java.io.File file)
private void
addFilesOfRCollection(java.util.List<java.lang.String> argv, java.lang.String name, java.util.List<org.apache.tools.ant.types.ResourceCollection> resources)
private void
addIntegerIfNotNull(java.util.List<java.lang.String> argv, java.lang.String name, java.lang.Integer value)
private void
addListOfStringIfNotEmpty(java.util.List<java.lang.String> argv, java.lang.String name, java.util.List<java.lang.String> arguments)
private void
addOutputDir(java.util.List<java.lang.String> argv)
private void
addReporterConfigs(java.util.List<java.lang.String> argv)
private void
addStringIfNotBlank(java.util.List<java.lang.String> argv, java.lang.String name, java.lang.String value)
private void
addStringIfNotNull(java.util.List<java.lang.String> argv, java.lang.String name, java.lang.String value)
void
addSysproperty(org.apache.tools.ant.types.Environment.Variable sysp)
private void
addXmlFiles(java.util.List<java.lang.String> argv)
void
addXmlfileset(org.apache.tools.ant.types.FileSet fs)
private org.apache.tools.ant.types.FileSet
appendClassSelector(org.apache.tools.ant.types.FileSet fs)
protected java.util.List<java.lang.String>
createArguments()
org.apache.tools.ant.types.Path
createBootclasspath()
Adds a path to the bootclasspath.org.apache.tools.ant.types.Path
createClasspath()
Adds path to classpath used for tests.org.apache.tools.ant.types.Commandline.Argument
createJvmarg()
private org.apache.tools.ant.types.ResourceCollection
createResourceCollection(org.apache.tools.ant.types.Reference ref)
protected org.apache.tools.ant.taskdefs.ExecuteWatchdog
createWatchdog()
private void
debug(java.lang.String message)
private void
delegateCommandSystemProperties()
private void
dumpCommand(java.lang.String fileName)
void
execute()
Launches TestNG in a new JVM.protected int
executeAsForked(org.apache.tools.ant.types.CommandlineJava cmd, org.apache.tools.ant.taskdefs.ExecuteWatchdog watchdog)
Executes the command line as a new process.private void
executeHaltTarget(int exitValue)
Executes the target, if any, that user designates executing before failing the testprivate java.io.File
findJar()
private java.lang.String
fromURI(java.lang.String uri)
private java.util.List<java.lang.String>
getFiles(java.util.List<org.apache.tools.ant.types.ResourceCollection> resources)
Returns the list of files corresponding to the resource collectionprotected org.apache.tools.ant.types.CommandlineJava
getJavaCommand()
protected java.util.List<java.lang.String>
getSuiteFileNames()
protected void
handleOutput(java.lang.String output)
private void
printDebugInfo(java.lang.String fileName)
private void
readAndPrintFile(java.lang.String fileName)
void
setClassfilesetRef(org.apache.tools.ant.types.Reference ref)
void
setClasspath(org.apache.tools.ant.types.Path s)
Set the classpath to be used when running the Java classvoid
setClasspathRef(org.apache.tools.ant.types.Reference r)
Classpath to use, by reference.void
setConfigFailurePolicy(java.lang.String failurePolicy)
void
setDataProviderThreadCount(java.lang.String dataproviderthreadCount)
void
setDelegateCommandSystemProperties(boolean value)
void
setDumpCommand(boolean verbose)
void
setDumpEnv(boolean verbose)
Sets the flag to write onSystem.out
the Ant Environment properties.void
setDumpSys(boolean verbose)
Sets te flag to write onSystem.out
the system properties.void
setEnableAssert(boolean flag)
void
setExcludedGroups(java.lang.String groups)
void
setFailureProperty(java.lang.String propertyName)
void
setForkJvm(boolean forkJvm)
void
setFSPProperty(java.lang.String propertyName)
void
setGroups(java.lang.String groups)
void
setHaltonfailure(boolean value)
void
setHaltonFSP(boolean value)
void
setHaltonskipped(boolean value)
void
setIgnoreMissedTestNames(boolean ignoreMissedTestNames)
void
setJUnit(boolean value)
void
setJvm(java.lang.String jvm)
Sets a particular JVM to be used.void
setListeners(java.lang.String listeners)
void
setMethods(java.lang.String methods)
void
setMethodSelectors(java.lang.String methodSelectors)
void
setMode(TestNGAntTask.Mode mode)
void
setObjectFactory(java.lang.String className)
void
setOnHaltTarget(java.lang.String targetName)
void
setOutputDir(java.io.File dir)
Sets the test output directoryvoid
setParallel(java.lang.String parallel)
void
setRandomizeSuites(java.lang.Boolean randomizeSuites)
void
setReporter(java.lang.String listener)
void
setSkipFailedInvocationCounts(boolean skip)
void
setSkippedProperty(java.lang.String propertyName)
void
setSuiteName(java.lang.String s)
Sets the suite namevoid
setSuiteRunnerClass(java.lang.String s)
Sets the suite runner class to invokevoid
setSuiteThreadPoolSize(java.lang.Integer n)
void
setTestJar(java.io.File s)
Sets the test jarvoid
setTestName(java.lang.String s)
Sets the test namevoid
setTestNames(java.lang.String testNames)
void
setTestRunnerFactory(java.lang.String testRunnerFactory)
void
setThreadCount(java.lang.String threadCount)
void
setTimeout(java.lang.Integer value)
Set the timeout value (in milliseconds).void
setUseDefaultListeners(java.lang.String f)
void
setVerbose(java.lang.Integer verbose)
void
setWorkingDir(java.io.File workingDir)
The directory to invoke the VM in.void
setXmlfilesetRef(org.apache.tools.ant.types.Reference ref)
void
setXmlPathInJar(java.lang.String path)
protected void
validateOptions()
-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Field Detail
-
m_javaCommand
protected org.apache.tools.ant.types.CommandlineJava m_javaCommand
-
m_xmlFilesets
protected java.util.List<org.apache.tools.ant.types.ResourceCollection> m_xmlFilesets
-
m_classFilesets
protected java.util.List<org.apache.tools.ant.types.ResourceCollection> m_classFilesets
-
m_outputDir
protected java.io.File m_outputDir
-
m_testjar
protected java.io.File m_testjar
-
m_workingDir
protected java.io.File m_workingDir
-
m_timeout
private java.lang.Integer m_timeout
-
m_listeners
private java.util.List<java.lang.String> m_listeners
-
m_methodselectors
private java.util.List<java.lang.String> m_methodselectors
-
m_objectFactory
private java.lang.String m_objectFactory
-
m_testRunnerFactory
protected java.lang.String m_testRunnerFactory
-
m_delegateCommandSystemProperties
private boolean m_delegateCommandSystemProperties
-
m_environment
protected org.apache.tools.ant.types.Environment m_environment
-
m_mainClass
protected java.lang.String m_mainClass
The suite runner name (defaults to TestNG.class.getName().
-
m_dump
protected boolean m_dump
True if the temporary file created by the Ant Task for command line parameters to TestNG should be preserved after execution.
-
m_dumpEnv
private boolean m_dumpEnv
-
m_dumpSys
private boolean m_dumpSys
-
m_assertEnabled
protected boolean m_assertEnabled
-
m_haltOnFailure
protected boolean m_haltOnFailure
-
m_onHaltTarget
protected java.lang.String m_onHaltTarget
-
m_failurePropertyName
protected java.lang.String m_failurePropertyName
-
m_haltOnSkipped
protected boolean m_haltOnSkipped
-
m_skippedPropertyName
protected java.lang.String m_skippedPropertyName
-
m_haltOnFSP
protected boolean m_haltOnFSP
-
m_fspPropertyName
protected java.lang.String m_fspPropertyName
-
m_includedGroups
protected java.lang.String m_includedGroups
-
m_excludedGroups
protected java.lang.String m_excludedGroups
-
m_parallelMode
protected java.lang.String m_parallelMode
-
m_threadCount
protected java.lang.String m_threadCount
-
m_dataproviderthreadCount
protected java.lang.String m_dataproviderthreadCount
-
m_configFailurePolicy
protected java.lang.String m_configFailurePolicy
-
m_randomizeSuites
protected java.lang.Boolean m_randomizeSuites
-
m_useDefaultListeners
public java.lang.String m_useDefaultListeners
-
m_suiteName
private java.lang.String m_suiteName
-
m_testName
private java.lang.String m_testName
-
m_skipFailedInvocationCounts
private java.lang.Boolean m_skipFailedInvocationCounts
-
m_methods
private java.lang.String m_methods
-
mode
private TestNGAntTask.Mode mode
-
forkJvm
private boolean forkJvm
-
m_ignoreMissedTestNames
private boolean m_ignoreMissedTestNames
-
LOGGER
private static final Logger LOGGER
-
reporterConfigs
private java.util.List<AntReporterConfig> reporterConfigs
The list of report listeners added via <reporter> sub-element of the Ant task
-
m_testNames
private java.lang.String m_testNames
-
m_verbose
private java.lang.Integer m_verbose
-
m_suiteThreadPoolSize
private java.lang.Integer m_suiteThreadPoolSize
-
m_xmlPathInJar
private java.lang.String m_xmlPathInJar
-
-
Method Detail
-
setParallel
public void setParallel(java.lang.String parallel)
-
setThreadCount
public void setThreadCount(java.lang.String threadCount)
-
setDataProviderThreadCount
public void setDataProviderThreadCount(java.lang.String dataproviderthreadCount)
-
setUseDefaultListeners
public void setUseDefaultListeners(java.lang.String f)
-
setHaltonfailure
public void setHaltonfailure(boolean value)
-
setOnHaltTarget
public void setOnHaltTarget(java.lang.String targetName)
-
setFailureProperty
public void setFailureProperty(java.lang.String propertyName)
-
setHaltonskipped
public void setHaltonskipped(boolean value)
-
setSkippedProperty
public void setSkippedProperty(java.lang.String propertyName)
-
setHaltonFSP
public void setHaltonFSP(boolean value)
-
setFSPProperty
public void setFSPProperty(java.lang.String propertyName)
-
setDelegateCommandSystemProperties
public void setDelegateCommandSystemProperties(boolean value)
-
setDumpCommand
public void setDumpCommand(boolean verbose)
- Parameters:
verbose
- the flag to log the command line. When verbose is set to true the command line parameters are stored in a temporary file stored in the user's default temporary file directory. The file created is prefixed with "testng".
-
setDumpEnv
public void setDumpEnv(boolean verbose)
Sets the flag to write onSystem.out
the Ant Environment properties.- Parameters:
verbose
-true
for printing
-
setDumpSys
public void setDumpSys(boolean verbose)
Sets te flag to write onSystem.out
the system properties.- Parameters:
verbose
-true
for dumping the info
-
setEnableAssert
public void setEnableAssert(boolean flag)
-
setWorkingDir
public void setWorkingDir(java.io.File workingDir)
The directory to invoke the VM in.- Parameters:
workingDir
- the directory to invoke the JVM from.
-
setJvm
public void setJvm(java.lang.String jvm)
Sets a particular JVM to be used. Default is 'java' and is solved byRuntime.exec()
.- Parameters:
jvm
- the new jvm
-
setTimeout
public void setTimeout(java.lang.Integer value)
Set the timeout value (in milliseconds).If the tests are running for more than this value, the tests will be canceled.
- Parameters:
value
- the maximum time (in milliseconds) allowed before declaring the test as 'timed-out'
-
createJvmarg
public org.apache.tools.ant.types.Commandline.Argument createJvmarg()
-
addSysproperty
public void addSysproperty(org.apache.tools.ant.types.Environment.Variable sysp)
-
addEnv
public void addEnv(org.apache.tools.ant.types.Environment.Variable var)
Adds an environment variable; used when forking.- Parameters:
var
- The variable
-
createClasspath
public org.apache.tools.ant.types.Path createClasspath()
Adds path to classpath used for tests.- Returns:
- reference to the classpath in the embedded java command line
-
createBootclasspath
public org.apache.tools.ant.types.Path createBootclasspath()
Adds a path to the bootclasspath.- Returns:
- reference to the bootclasspath in the embedded java command line
-
setClasspath
public void setClasspath(org.apache.tools.ant.types.Path s)
Set the classpath to be used when running the Java class- Parameters:
s
- an Ant Path object containing the classpath.
-
setClasspathRef
public void setClasspathRef(org.apache.tools.ant.types.Reference r)
Classpath to use, by reference.- Parameters:
r
- a reference to an existing classpath
-
addXmlfileset
public void addXmlfileset(org.apache.tools.ant.types.FileSet fs)
-
setXmlfilesetRef
public void setXmlfilesetRef(org.apache.tools.ant.types.Reference ref)
-
addClassfileset
public void addClassfileset(org.apache.tools.ant.types.FileSet fs)
-
setClassfilesetRef
public void setClassfilesetRef(org.apache.tools.ant.types.Reference ref)
-
setTestNames
public void setTestNames(java.lang.String testNames)
-
setIgnoreMissedTestNames
public void setIgnoreMissedTestNames(boolean ignoreMissedTestNames)
-
setSuiteRunnerClass
public void setSuiteRunnerClass(java.lang.String s)
Sets the suite runner class to invoke- Parameters:
s
- the name of the suite runner class
-
setSuiteName
public void setSuiteName(java.lang.String s)
Sets the suite name- Parameters:
s
- the name of the suite
-
setTestName
public void setTestName(java.lang.String s)
Sets the test name- Parameters:
s
- the name of the test
-
setJUnit
public void setJUnit(boolean value)
-
setMode
public void setMode(TestNGAntTask.Mode mode)
-
setForkJvm
public void setForkJvm(boolean forkJvm)
-
setOutputDir
public void setOutputDir(java.io.File dir)
Sets the test output directory- Parameters:
dir
- the name of directory
-
setTestJar
public void setTestJar(java.io.File s)
Sets the test jar- Parameters:
s
- the name of test jar
-
setGroups
public void setGroups(java.lang.String groups)
-
setExcludedGroups
public void setExcludedGroups(java.lang.String groups)
-
setVerbose
public void setVerbose(java.lang.Integer verbose)
-
setReporter
public void setReporter(java.lang.String listener)
-
setObjectFactory
public void setObjectFactory(java.lang.String className)
-
setTestRunnerFactory
public void setTestRunnerFactory(java.lang.String testRunnerFactory)
-
setSuiteThreadPoolSize
public void setSuiteThreadPoolSize(java.lang.Integer n)
-
setListeners
public void setListeners(java.lang.String listeners)
-
setMethodSelectors
public void setMethodSelectors(java.lang.String methodSelectors)
-
setConfigFailurePolicy
public void setConfigFailurePolicy(java.lang.String failurePolicy)
-
setRandomizeSuites
public void setRandomizeSuites(java.lang.Boolean randomizeSuites)
-
setMethods
public void setMethods(java.lang.String methods)
-
execute
public void execute() throws org.apache.tools.ant.BuildException
Launches TestNG in a new JVM.- Overrides:
execute
in classorg.apache.tools.ant.Task
- Throws:
org.apache.tools.ant.BuildException
-
createArguments
protected java.util.List<java.lang.String> createArguments()
-
addDefaultListeners
private void addDefaultListeners(java.util.List<java.lang.String> argv)
-
addOutputDir
private void addOutputDir(java.util.List<java.lang.String> argv)
-
addReporterConfigs
private void addReporterConfigs(java.util.List<java.lang.String> argv)
-
addFilesOfRCollection
private void addFilesOfRCollection(java.util.List<java.lang.String> argv, java.lang.String name, java.util.List<org.apache.tools.ant.types.ResourceCollection> resources)
-
addListOfStringIfNotEmpty
private void addListOfStringIfNotEmpty(java.util.List<java.lang.String> argv, java.lang.String name, java.util.List<java.lang.String> arguments)
-
addArgumentsIfNotEmpty
private void addArgumentsIfNotEmpty(java.util.List<java.lang.String> argv, java.lang.String name, java.util.List<java.lang.String> arguments, java.lang.String separator)
-
addFileIfFile
private void addFileIfFile(java.util.List<java.lang.String> argv, java.lang.String name, java.io.File file)
-
addBooleanIfTrue
private void addBooleanIfTrue(java.util.List<java.lang.String> argv, java.lang.String name, java.lang.Boolean value)
-
addIntegerIfNotNull
private void addIntegerIfNotNull(java.util.List<java.lang.String> argv, java.lang.String name, java.lang.Integer value)
-
addStringIfNotNull
private void addStringIfNotNull(java.util.List<java.lang.String> argv, java.lang.String name, java.lang.String value)
-
addStringIfNotBlank
private void addStringIfNotBlank(java.util.List<java.lang.String> argv, java.lang.String name, java.lang.String value)
-
addXmlFiles
private void addXmlFiles(java.util.List<java.lang.String> argv)
-
getSuiteFileNames
protected java.util.List<java.lang.String> getSuiteFileNames()
- Returns:
- the list of the XML file names. This method can be overridden by subclasses.
-
delegateCommandSystemProperties
private void delegateCommandSystemProperties()
-
printDebugInfo
private void printDebugInfo(java.lang.String fileName)
-
debug
private void debug(java.lang.String message)
-
actOnResult
protected void actOnResult(int exitValue, boolean wasKilled)
-
executeHaltTarget
private void executeHaltTarget(int exitValue)
Executes the target, if any, that user designates executing before failing the test
-
executeAsForked
protected int executeAsForked(org.apache.tools.ant.types.CommandlineJava cmd, org.apache.tools.ant.taskdefs.ExecuteWatchdog watchdog)
Executes the command line as a new process.- Parameters:
cmd
- the command to executewatchdog
- - AExecuteWatchdog
object.- Returns:
- the exit status of the subprocess or INVALID.
-
getJavaCommand
protected org.apache.tools.ant.types.CommandlineJava getJavaCommand()
- Returns:
- the created (or create) the
CommandlineJava
.
-
createWatchdog
protected org.apache.tools.ant.taskdefs.ExecuteWatchdog createWatchdog()
- Returns:
null
if there is no timeout value, otherwise the watchdog instance.- Throws:
org.apache.tools.ant.BuildException
- under unspecified circumstances- Since:
- Ant 1.2
-
validateOptions
protected void validateOptions() throws org.apache.tools.ant.BuildException
- Throws:
org.apache.tools.ant.BuildException
-
createResourceCollection
private org.apache.tools.ant.types.ResourceCollection createResourceCollection(org.apache.tools.ant.types.Reference ref)
-
appendClassSelector
private org.apache.tools.ant.types.FileSet appendClassSelector(org.apache.tools.ant.types.FileSet fs)
-
findJar
private java.io.File findJar()
-
fromURI
private java.lang.String fromURI(java.lang.String uri)
-
getFiles
private java.util.List<java.lang.String> getFiles(java.util.List<org.apache.tools.ant.types.ResourceCollection> resources) throws org.apache.tools.ant.BuildException
Returns the list of files corresponding to the resource collection- Parameters:
resources
- - A list ofResourceCollection
- Returns:
- the list of files corresponding to the resource collection
- Throws:
org.apache.tools.ant.BuildException
-
dumpCommand
private void dumpCommand(java.lang.String fileName)
-
readAndPrintFile
private void readAndPrintFile(java.lang.String fileName)
-
addConfiguredReporter
public void addConfiguredReporter(AntReporterConfig reporterConfig)
-
setSkipFailedInvocationCounts
public void setSkipFailedInvocationCounts(boolean skip)
-
setXmlPathInJar
public void setXmlPathInJar(java.lang.String path)
-
addConfiguredPropertySet
public void addConfiguredPropertySet(org.apache.tools.ant.types.PropertySet sysPropertySet)
Add the referenced property set as system properties for the TestNG JVM.- Parameters:
sysPropertySet
- A PropertySet of system properties.
-
handleOutput
protected void handleOutput(java.lang.String output)
- Overrides:
handleOutput
in classorg.apache.tools.ant.Task
-
-