| Package | Description |
|---|---|
| org.testng | |
| org.testng.internal | |
| org.testng.reporters | |
| org.testng.reporters.jq | |
| org.testng.xml | |
| org.testng.xml.dom | |
| org.testng.xml.internal |
| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.List<XmlSuite> |
TestNG.m_suites |
| Modifier and Type | Method | Description |
|---|---|---|
XmlSuite |
ISuite.getXmlSuite() |
|
XmlSuite |
SuiteRunner.getXmlSuite() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
TestNG.setCommandLineSuite(XmlSuite suite) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
IAlterSuiteListener.alter(java.util.List<XmlSuite> suites) |
|
void |
IReporter.generateReport(java.util.List<XmlSuite> xmlSuites,
java.util.List<ISuite> suites,
java.lang.String outputDirectory) |
Generate a report for the given suites into the specified output directory.
|
void |
TestNG.setXmlSuites(java.util.List<XmlSuite> suites) |
Specifies the XmlSuite objects to run.
|
| Constructor | Description |
|---|---|
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
java.lang.String outputDir) |
Deprecated.
|
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
java.lang.String outputDir,
java.util.Comparator<ITestNGMethod> comparator) |
|
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
java.lang.String outputDir,
ITestRunnerFactory runnerFactory) |
Deprecated.
|
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
java.lang.String outputDir,
ITestRunnerFactory runnerFactory,
boolean useDefaultListeners) |
Deprecated.
|
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
java.lang.String outputDir,
ITestRunnerFactory runnerFactory,
boolean useDefaultListeners,
java.util.Comparator<ITestNGMethod> comparator) |
|
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
java.lang.String outputDir,
ITestRunnerFactory runnerFactory,
boolean useDefaultListeners,
java.util.List<IMethodInterceptor> methodInterceptors,
java.util.Collection<IInvokedMethodListener> invokedMethodListeners,
java.util.Collection<ITestListener> testListeners,
java.util.Collection<IClassListener> classListeners) |
Deprecated.
|
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
java.lang.String outputDir,
ITestRunnerFactory runnerFactory,
boolean useDefaultListeners,
java.util.List<IMethodInterceptor> methodInterceptors,
java.util.Collection<IInvokedMethodListener> invokedMethodListeners,
java.util.Collection<ITestListener> testListeners,
java.util.Collection<IClassListener> classListeners,
java.util.Comparator<ITestNGMethod> comparator) |
Deprecated.
- This constructor stands deprecated as of TestNG v6.13.
|
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
java.lang.String outputDir,
ITestRunnerFactory runnerFactory,
boolean useDefaultListeners,
java.util.List<IMethodInterceptor> methodInterceptors,
java.util.Collection<IInvokedMethodListener> invokedMethodListeners,
java.util.Collection<ITestListener> testListeners,
java.util.Collection<IClassListener> classListeners,
java.util.Map<java.lang.Class<? extends IDataProviderListener>,IDataProviderListener> dataProviderListeners,
java.util.Comparator<ITestNGMethod> comparator) |
|
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
java.lang.String outputDir,
ITestRunnerFactory runnerFactory,
boolean useDefaultListeners,
java.util.List<IMethodInterceptor> methodInterceptors,
java.util.List<IInvokedMethodListener> invokedMethodListeners,
java.util.List<ITestListener> testListeners,
java.util.List<IClassListener> classListeners) |
Deprecated.
- This constructor stands deprecated.
|
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
java.lang.String outputDir,
ITestRunnerFactory runnerFactory,
java.util.Comparator<ITestNGMethod> comparator) |
| Modifier and Type | Method | Description |
|---|---|---|
static XmlSuite |
Yaml.parse(java.lang.String filePath,
java.io.InputStream is) |
|
XmlSuite |
YamlParser.parse(java.lang.String filePath,
java.io.InputStream is,
boolean loadClasses) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Collection<XmlSuite> |
OverrideProcessor.process(java.util.Collection<XmlSuite> suites) |
| Modifier and Type | Method | Description |
|---|---|---|
static java.lang.Object[] |
Parameters.createConfigurationParameters(java.lang.reflect.Method m,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.Object[] parameterValues,
ITestNGMethod currentTestMethod,
IAnnotationFinder finder,
XmlSuite xmlSuite,
ITestContext ctx,
ITestResult testResult) |
Creates the parameters needed for the specified @Configuration
Method. |
static java.lang.Object[] |
Parameters.createInstantiationParameters(java.lang.reflect.Constructor ctor,
java.lang.String methodAnnotation,
IAnnotationFinder finder,
java.lang.String[] parameterNames,
java.util.Map<java.lang.String,java.lang.String> params,
XmlSuite xmlSuite) |
Creates the parameters needed for constructing a test class instance.
|
static XmlClass[] |
ClassHelper.findClassesInSameTest(java.lang.Class<?> cls,
XmlSuite suite) |
|
ISuite |
SuiteRunnerMap.get(XmlSuite xmlSuite) |
|
static ParameterHolder |
Parameters.handleParameters(ITestNGMethod testMethod,
java.util.Map<java.lang.String,java.lang.String> allParameterNames,
java.lang.Object instance,
Parameters.MethodParameters methodParams,
XmlSuite xmlSuite,
IAnnotationFinder annotationFinder,
java.lang.Object fedInstance) |
If the method has parameters, fill them in.
|
static ParameterHolder |
Parameters.handleParameters(ITestNGMethod testMethod,
java.util.Map<java.lang.String,java.lang.String> allParameterNames,
java.lang.Object instance,
Parameters.MethodParameters methodParams,
XmlSuite xmlSuite,
IAnnotationFinder annotationFinder,
java.lang.Object fedInstance,
java.util.Collection<IDataProviderListener> dataProviderListeners) |
If the method has parameters, fill them in.
|
void |
IInvoker.invokeConfigurations(IClass testClass,
ITestNGMethod[] allMethods,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> parameters,
java.lang.Object[] parameterValues,
java.lang.Object instance) |
Invoke configuration methods if they belong to the same TestClass
passed in parameter..
|
void |
Invoker.invokeConfigurations(IClass testClass,
ITestNGMethod[] allMethods,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.Object[] parameterValues,
java.lang.Object instance) |
Invoke configuration methods if they belong to the same TestClass passed
in parameter..
|
java.util.List<ITestResult> |
IInvoker.invokeTestMethods(ITestNGMethod testMethod,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> parameters,
ConfigurationGroupMethods groupMethods,
java.lang.Object instance,
ITestContext testContext) |
Invoke the given method
|
java.util.List<ITestResult> |
Invoker.invokeTestMethods(ITestNGMethod testMethod,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> testParameters,
ConfigurationGroupMethods groupMethods,
java.lang.Object instance,
ITestContext testContext) |
Invoke all the test methods.
|
void |
SuiteRunnerMap.put(XmlSuite xmlSuite,
ISuite suite) |
|
static java.lang.StringBuilder |
Yaml.toYaml(XmlSuite suite) |
The main entry point to convert an XmlSuite into YAML.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
ExitCodeListener.generateReport(java.util.List<XmlSuite> xmlSuites,
java.util.List<ISuite> suites,
java.lang.String outputDirectory) |
|
java.util.Collection<XmlSuite> |
OverrideProcessor.process(java.util.Collection<XmlSuite> suites) |
| Constructor | Description |
|---|---|
TestMethodWithDataProviderMethodWorker(Invoker invoker,
ITestNGMethod testMethod,
int parameterIndex,
java.lang.Object[] parameterValues,
java.lang.Object instance,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> parameters,
ITestClass testClass,
ITestNGMethod[] beforeMethods,
ITestNGMethod[] afterMethods,
ConfigurationGroupMethods groupMethods,
ExpectedExceptionsHolder expectedExceptionHolder,
ITestContext testContext,
boolean skipFailedInvocationCounts,
int invocationCount,
int failureCount,
ITestResultNotifier notifier) |
|
TestMethodWorker(IInvoker invoker,
java.util.List<IMethodInstance> testMethods,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> parameters,
ConfigurationGroupMethods groupMethods,
ClassMethodMap classMethodMap,
ITestContext testContext,
java.util.List<IClassListener> listeners) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
FailedReporter.generateFailureSuite(XmlSuite xmlSuite,
ISuite suite,
java.lang.String outputDir) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
EmailableReporter.generateReport(java.util.List<XmlSuite> xml,
java.util.List<ISuite> suites,
java.lang.String outdir) |
Creates summary of the run
|
void |
EmailableReporter2.generateReport(java.util.List<XmlSuite> xmlSuites,
java.util.List<ISuite> suites,
java.lang.String outputDirectory) |
|
void |
FailedReporter.generateReport(java.util.List<XmlSuite> xmlSuites,
java.util.List<ISuite> suites,
java.lang.String outputDirectory) |
|
void |
JqReporter.generateReport(java.util.List<XmlSuite> xmlSuites,
java.util.List<ISuite> suites,
java.lang.String outputDirectory) |
Deprecated.
|
void |
JUnitReportReporter.generateReport(java.util.List<XmlSuite> xmlSuites,
java.util.List<ISuite> suites,
java.lang.String defaultOutputDirectory) |
|
void |
SuiteHTMLReporter.generateReport(java.util.List<XmlSuite> xmlSuites,
java.util.List<ISuite> suites,
java.lang.String outputDirectory) |
|
void |
XMLReporter.generateReport(java.util.List<XmlSuite> xmlSuites,
java.util.List<ISuite> suites,
java.lang.String outputDirectory) |
| Constructor | Description |
|---|---|
FailedReporter(XmlSuite xmlSuite) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
Main.generateReport(java.util.List<XmlSuite> xmlSuites,
java.util.List<ISuite> suites,
java.lang.String outputDirectory) |
| Modifier and Type | Method | Description |
|---|---|---|
XmlSuite |
XmlSuite.getParentSuite() |
|
XmlSuite |
TestNGContentHandler.getSuite() |
|
XmlSuite |
XmlTest.getSuite() |
Returns the suite this test is part of.
|
XmlSuite |
SuiteXmlParser.parse(java.lang.String currentFile,
java.io.InputStream inputStream,
boolean loadClasses) |
|
XmlSuite |
XmlSuite.shallowCopy() |
This method returns a shallow cloned version.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<XmlSuite> |
XmlSuite.getChildSuites() |
|
java.util.Collection<XmlSuite> |
Parser.parse() |
Parses the TestNG test suite and returns the corresponding XmlSuite,
and possibly, other XmlSuite that are pointed to by
|
static java.util.Collection<XmlSuite> |
Parser.parse(java.io.InputStream is,
IPostProcessor processor) |
|
static java.util.Collection<XmlSuite> |
Parser.parse(java.lang.String suite,
IPostProcessor processor) |
|
java.util.List<XmlSuite> |
Parser.parseToList() |
|
java.util.Collection<XmlSuite> |
IPostProcessor.process(java.util.Collection<XmlSuite> suites) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
IWeaveXml.asXml(XmlSuite xmlSuite) |
Helps represent the contents of
XmlSuite as a String. |
void |
XmlSuite.setParentSuite(XmlSuite parentSuite) |
|
void |
XmlTest.setSuite(XmlSuite result) |
|
void |
XmlTest.setXmlSuite(XmlSuite suite) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Collection<XmlSuite> |
IPostProcessor.process(java.util.Collection<XmlSuite> suites) |
| Constructor | Description |
|---|---|
XmlTest(XmlSuite suite) |
|
XmlTest(XmlSuite suite,
int index) |
Constructs a
XmlTest and adds it to suite's list of tests. |
| Modifier and Type | Method | Description |
|---|---|---|
XmlSuite |
DomXmlParser.parse(java.lang.String currentFile,
java.io.InputStream inputStream,
boolean loadClasses) |
|
XmlSuite |
DomXmlParser.parse2(java.lang.String currentFile,
java.io.InputStream inputStream,
boolean loadClasses) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
DomUtil.populate(XmlSuite xmlSuite) |
| Modifier and Type | Method | Description |
|---|---|---|
static XmlSuite |
XmlSuiteUtils.newXmlSuiteUsing(java.util.List<java.lang.String> classes) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<XmlSuite> |
TestNamesMatcher.getSuitesMatchingTestNames() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
XmlSuiteUtils.adjustSuiteNamesToEnsureUniqueness(java.util.List<XmlSuite> suites) |
Ensure that two XmlSuite don't have the same name
|
static void |
XmlSuiteUtils.validateIfSuitesContainDuplicateTests(java.util.List<XmlSuite> suites) |
A validator that runs through the list of suites and checks if each of the suites contains
any
XmlTest with the same name. |
| Constructor | Description |
|---|---|
TestNamesMatcher(XmlSuite xmlSuite,
java.util.List<java.lang.String> testNames) |