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 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 |
---|---|
void |
IAlterSuiteListener.alter(List<XmlSuite> suites) |
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)
Deprecated.
|
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
String outputDir,
Comparator<ITestNGMethod> comparator) |
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
String outputDir,
ITestRunnerFactory runnerFactory)
Deprecated.
|
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
String outputDir,
ITestRunnerFactory runnerFactory,
boolean useDefaultListeners)
Deprecated.
|
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)
Deprecated.
|
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
String outputDir,
ITestRunnerFactory runnerFactory,
boolean useDefaultListeners,
List<IMethodInterceptor> methodInterceptors,
Collection<IInvokedMethodListener> invokedMethodListeners,
Collection<ITestListener> testListeners,
Collection<IClassListener> classListeners,
Comparator<ITestNGMethod> comparator)
Deprecated.
- This constructor stands deprecated as of TestNG v6.13.
|
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
String outputDir,
ITestRunnerFactory runnerFactory,
boolean useDefaultListeners,
List<IMethodInterceptor> methodInterceptors,
Collection<IInvokedMethodListener> invokedMethodListeners,
Collection<ITestListener> testListeners,
Collection<IClassListener> classListeners,
Map<Class<? extends IDataProviderListener>,IDataProviderListener> dataProviderListeners,
Comparator<ITestNGMethod> comparator) |
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
String outputDir,
ITestRunnerFactory runnerFactory,
boolean useDefaultListeners,
List<IMethodInterceptor> methodInterceptors,
List<IInvokedMethodListener> invokedMethodListeners,
List<ITestListener> testListeners,
List<IClassListener> classListeners)
Deprecated.
- This constructor stands deprecated.
|
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
String outputDir,
ITestRunnerFactory runnerFactory,
Comparator<ITestNGMethod> comparator) |
Modifier and Type | Method and Description |
---|---|
static XmlSuite |
Yaml.parse(String filePath,
InputStream is) |
XmlSuite |
YamlParser.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) |
ISuite |
SuiteRunnerMap.get(XmlSuite xmlSuite) |
static ParameterHolder |
Parameters.handleParameters(ITestNGMethod testMethod,
Map<String,String> allParameterNames,
Object instance,
Parameters.MethodParameters methodParams,
XmlSuite xmlSuite,
IAnnotationFinder annotationFinder,
Object fedInstance)
If the method has parameters, fill them in.
|
static ParameterHolder |
Parameters.handleParameters(ITestNGMethod testMethod,
Map<String,String> allParameterNames,
Object instance,
Parameters.MethodParameters methodParams,
XmlSuite xmlSuite,
IAnnotationFinder annotationFinder,
Object fedInstance,
Collection<IDataProviderListener> dataProviderListeners)
If the method has parameters, fill them in.
|
void |
IInvoker.invokeConfigurations(IClass testClass,
ITestNGMethod[] allMethods,
XmlSuite suite,
Map<String,String> parameters,
Object[] parameterValues,
Object instance)
Invoke configuration methods if they belong to the same TestClass
passed in parameter..
|
void |
Invoker.invokeConfigurations(IClass testClass,
ITestNGMethod[] allMethods,
XmlSuite suite,
Map<String,String> params,
Object[] parameterValues,
Object instance)
Invoke configuration methods if they belong to the same TestClass passed
in parameter..
|
List<ITestResult> |
IInvoker.invokeTestMethods(ITestNGMethod testMethod,
XmlSuite suite,
Map<String,String> parameters,
ConfigurationGroupMethods groupMethods,
Object instance,
ITestContext testContext)
Invoke the given method
|
List<ITestResult> |
Invoker.invokeTestMethods(ITestNGMethod testMethod,
XmlSuite suite,
Map<String,String> testParameters,
ConfigurationGroupMethods groupMethods,
Object instance,
ITestContext testContext)
Invoke all the test methods.
|
void |
SuiteRunnerMap.put(XmlSuite xmlSuite,
ISuite suite) |
static StringBuilder |
Yaml.toYaml(XmlSuite suite)
The main entry point to convert an XmlSuite into YAML.
|
Modifier and Type | Method and Description |
---|---|
void |
ExitCodeListener.generateReport(List<XmlSuite> xmlSuites,
List<ISuite> suites,
String outputDirectory) |
Collection<XmlSuite> |
OverrideProcessor.process(Collection<XmlSuite> suites) |
Constructor and Description |
---|
TestMethodWithDataProviderMethodWorker(Invoker invoker,
ITestNGMethod testMethod,
int parameterIndex,
Object[] parameterValues,
Object instance,
XmlSuite suite,
Map<String,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,
List<IMethodInstance> testMethods,
XmlSuite suite,
Map<String,String> parameters,
ConfigurationGroupMethods groupMethods,
ClassMethodMap classMethodMap,
ITestContext testContext,
List<IClassListener> listeners) |
Modifier and Type | Method and Description |
---|---|
protected void |
FailedReporter.generateFailureSuite(XmlSuite xmlSuite,
ISuite suite,
String outputDir) |
Modifier and Type | Method and Description |
---|---|
void |
JqReporter.generateReport(List<XmlSuite> xmlSuites,
List<ISuite> suites,
String outputDirectory)
Deprecated.
|
void |
FailedReporter.generateReport(List<XmlSuite> xmlSuites,
List<ISuite> suites,
String outputDirectory) |
void |
XMLReporter.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
|
void |
JUnitReportReporter.generateReport(List<XmlSuite> xmlSuites,
List<ISuite> suites,
String defaultOutputDirectory) |
void |
EmailableReporter2.generateReport(List<XmlSuite> xmlSuites,
List<ISuite> suites,
String outputDirectory) |
void |
SuiteHTMLReporter.generateReport(List<XmlSuite> xmlSuites,
List<ISuite> suites,
String outputDirectory) |
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 |
TestNGContentHandler.getSuite() |
XmlSuite |
XmlTest.getSuite()
Returns the suite this test is part of.
|
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> |
Parser.parse()
Parses the TestNG test suite and returns the corresponding XmlSuite,
and possibly, other XmlSuite that are pointed to by
|
static Collection<XmlSuite> |
Parser.parse(InputStream is,
IPostProcessor processor) |
static Collection<XmlSuite> |
Parser.parse(String suite,
IPostProcessor processor) |
List<XmlSuite> |
Parser.parseToList() |
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 |
---|---|
XmlSuite |
DomXmlParser.parse(String currentFile,
InputStream inputStream,
boolean loadClasses) |
XmlSuite |
DomXmlParser.parse2(String currentFile,
InputStream inputStream,
boolean loadClasses) |
Modifier and Type | Method and Description |
---|---|
void |
DomUtil.populate(XmlSuite xmlSuite) |
Modifier and Type | Method and Description |
---|---|
static XmlSuite |
XmlSuiteUtils.newXmlSuiteUsing(List<String> classes) |
Modifier and Type | Method and Description |
---|---|
List<XmlSuite> |
TestNamesMatcher.getSuitesMatchingTestNames() |
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 © 2018. All rights reserved.