| Package | Description |
|---|---|
| org.testng | |
| org.testng.internal | |
| org.testng.internal.invokers | |
| org.testng.internal.invokers.objects | |
| org.testng.reporters | |
| org.testng.reporters.jq | |
| org.testng.xml | |
| org.testng.xml.internal |
| Modifier and Type | Field and Description |
|---|---|
protected List<XmlSuite> |
TestNG.m_suites |
| Modifier and Type | Method and Description |
|---|---|
XmlSuite |
ISuite.getXmlSuite() |
XmlSuite |
SuiteRunner.getXmlSuite() |
| Modifier and Type | Method and Description |
|---|---|
void |
TestNG.setCommandLineSuite(XmlSuite suite) |
| Modifier and Type | Method and Description |
|---|---|
default void |
IAlterSuiteListener.alter(List<XmlSuite> suites) |
default void |
IReporter.generateReport(List<XmlSuite> xmlSuites,
List<ISuite> suites,
String outputDirectory)
Generate a report for the given suites into the specified output directory.
|
void |
TestNG.setXmlSuites(List<XmlSuite> suites)
Specifies the XmlSuite objects to run.
|
| Constructor and Description |
|---|
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
String outputDir,
ITestRunnerFactory runnerFactory,
boolean useDefaultListeners,
Comparator<ITestNGMethod> comparator) |
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
String outputDir,
ITestRunnerFactory runnerFactory,
boolean useDefaultListeners,
List<IMethodInterceptor> methodInterceptors,
Collection<IInvokedMethodListener> invokedMethodListeners,
Collection<ITestListener> testListeners,
Collection<IClassListener> classListeners,
DataProviderHolder holder,
Comparator<ITestNGMethod> comparator) |
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
String outputDir,
ITestRunnerFactory runnerFactory,
Comparator<ITestNGMethod> comparator) |
| Modifier and Type | Method and Description |
|---|---|
XmlSuite |
YamlParser.parse(String filePath,
InputStream is,
boolean loadClasses) |
static XmlSuite |
Yaml.parse(String filePath,
InputStream is,
boolean loadClasses) |
| Modifier and Type | Method and Description |
|---|---|
Collection<XmlSuite> |
OverrideProcessor.process(Collection<XmlSuite> suites) |
| Modifier and Type | Method and Description |
|---|---|
static Object[] |
Parameters.createConfigurationParameters(Method m,
Map<String,String> params,
Object[] parameterValues,
ITestNGMethod currentTestMethod,
IAnnotationFinder finder,
XmlSuite xmlSuite,
ITestContext ctx,
ITestResult testResult)
Creates the parameters needed for the specified
@Configuration Method
. |
static Object[] |
Parameters.createInstantiationParameters(Constructor<?> ctor,
String methodAnnotation,
IAnnotationFinder finder,
String[] parameterNames,
Map<String,String> params,
XmlSuite xmlSuite)
Creates the parameters needed for constructing a test class instance.
|
static XmlClass[] |
ClassHelper.findClassesInSameTest(Class<?> cls,
XmlSuite suite) |
static ParameterHolder |
Parameters.handleParameters(ITestObjectFactory objectFactory,
ITestNGMethod testMethod,
Map<String,String> allParameterNames,
Object instance,
Parameters.MethodParameters methodParams,
XmlSuite xmlSuite,
IAnnotationFinder annotationFinder,
Object fedInstance,
DataProviderHolder holder)
If the method has parameters, fill them in.
|
static ParameterHolder |
Parameters.handleParameters(ITestObjectFactory objectFactory,
ITestNGMethod testMethod,
Map<String,String> allParameterNames,
Object instance,
Parameters.MethodParameters methodParams,
XmlSuite xmlSuite,
IAnnotationFinder annotationFinder,
Object fedInstance,
DataProviderHolder holder,
String annotationName)
If the method has parameters, fill them in.
|
static StringBuilder |
Yaml.toYaml(XmlSuite suite) |
| Modifier and Type | Method and Description |
|---|---|
void |
ExitCodeListener.generateReport(List<XmlSuite> xmlSuites,
List<ISuite> suites,
String outputDirectory) |
Collection<XmlSuite> |
OverrideProcessor.process(Collection<XmlSuite> suites) |
| Modifier and Type | Method and Description |
|---|---|
XmlSuite |
GroupConfigMethodArguments.getSuite() |
XmlSuite |
ConfigMethodArguments.getSuite() |
| Modifier and Type | Method and Description |
|---|---|
ConfigMethodArguments.Builder |
ConfigMethodArguments.Builder.forSuite(XmlSuite suite) |
ISuite |
SuiteRunnerMap.get(XmlSuite xmlSuite) |
ITestResult |
ITestInvoker.invokeTestMethod(TestMethodArguments arguments,
XmlSuite suite,
ITestInvoker.FailureContext failureContext) |
void |
SuiteRunnerMap.put(XmlSuite xmlSuite,
ISuite suite) |
| Constructor and Description |
|---|
GuiceContext(XmlSuite s,
IConfiguration cfg) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
FailedReporter.generateFailureSuite(XmlSuite xmlSuite,
ISuite suite,
String outputDir) |
| Modifier and Type | Method and Description |
|---|---|
void |
XMLReporter.generateReport(List<XmlSuite> xmlSuites,
List<ISuite> suites,
String outputDirectory) |
void |
SuiteHTMLReporter.generateReport(List<XmlSuite> xmlSuites,
List<ISuite> suites,
String outputDirectory) |
void |
JUnitReportReporter.generateReport(List<XmlSuite> xmlSuites,
List<ISuite> suites,
String defaultOutputDirectory) |
void |
FailedReporter.generateReport(List<XmlSuite> xmlSuites,
List<ISuite> suites,
String outputDirectory) |
void |
EmailableReporter2.generateReport(List<XmlSuite> xmlSuites,
List<ISuite> suites,
String outputDirectory) |
void |
EmailableReporter.generateReport(List<XmlSuite> xml,
List<ISuite> suites,
String outdir)
Creates summary of the run
|
| Constructor and Description |
|---|
FailedReporter(XmlSuite xmlSuite) |
| Modifier and Type | Method and Description |
|---|---|
void |
Main.generateReport(List<XmlSuite> xmlSuites,
List<ISuite> suites,
String outputDirectory) |
| Modifier and Type | Method and Description |
|---|---|
XmlSuite |
XmlSuite.getParentSuite() |
XmlSuite |
XmlTest.getSuite()
Returns the suite this test is part of.
|
XmlSuite |
TestNGContentHandler.getSuite() |
XmlSuite |
SuiteXmlParser.parse(String currentFile,
InputStream inputStream,
boolean loadClasses) |
XmlSuite |
XmlSuite.shallowCopy()
This method returns a shallow cloned version.
|
| Modifier and Type | Method and Description |
|---|---|
List<XmlSuite> |
XmlSuite.getChildSuites() |
Collection<XmlSuite> |
IPostProcessor.process(Collection<XmlSuite> suites) |
| Modifier and Type | Method and Description |
|---|---|
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 and Description |
|---|---|
Collection<XmlSuite> |
IPostProcessor.process(Collection<XmlSuite> suites) |
| Constructor and 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 and Description |
|---|---|
static XmlSuite |
XmlSuiteUtils.newXmlSuiteUsing(List<String> classes) |
| Modifier and Type | Method and Description |
|---|---|
List<XmlSuite> |
TestNamesMatcher.getSuitesMatchingTestNames() |
Collection<XmlSuite> |
Parser.parse()
Parses the TestNG test suite and returns the corresponding XmlSuite, and possibly, other
XmlSuite that are pointed to by
<suite-files> tags. |
static Collection<XmlSuite> |
Parser.parse(InputStream is,
IPostProcessor processor) |
static Collection<XmlSuite> |
Parser.parse(String suite,
IPostProcessor processor) |
List<XmlSuite> |
Parser.parseToList() |
| Modifier and Type | Method and Description |
|---|---|
static void |
XmlSuiteUtils.adjustSuiteNamesToEnsureUniqueness(List<XmlSuite> suites)
Ensure that two XmlSuite don't have the same name
|
static void |
XmlSuiteUtils.validateIfSuitesContainDuplicateTests(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 and Description |
|---|
TestNamesMatcher(XmlSuite xmlSuite,
List<String> testNames) |
Copyright © 2025. All rights reserved.