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 |
---|---|
private XmlSuite |
SuiteResult.m_suite |
private XmlSuite |
SuiteRunner.xmlSuite |
Modifier and Type | Field and Description |
---|---|
private java.util.List<XmlSuite> |
TestNG.m_cmdlineSuites |
protected java.util.List<XmlSuite> |
TestNG.m_suites |
private java.util.List<XmlSuite> |
JarFileUtils.suites |
Modifier and Type | Method and Description |
---|---|
XmlSuite |
SuiteResult.getSuite() |
XmlSuite |
ISuite.getXmlSuite() |
XmlSuite |
SuiteRunner.getXmlSuite() |
Modifier and Type | Method and Description |
---|---|
private java.util.List<XmlSuite> |
TestNG.createCommandLineSuitesForClasses(java.lang.Class[] classes) |
private java.util.List<XmlSuite> |
TestNG.createCommandLineSuitesForMethods(java.util.List<java.lang.String> commandLineMethods) |
(package private) java.util.List<XmlSuite> |
JarFileUtils.extractSuitesFrom(java.io.File jarFile) |
Modifier and Type | Method and Description |
---|---|
private void |
TestNG.addListeners(XmlSuite s) |
void |
SuiteResultCounts.calculateResultCounts(XmlSuite xmlSuite,
SuiteRunnerMap suiteRunnerMap) |
private SuiteRunner |
TestNG.createSuiteRunner(XmlSuite xmlSuite)
Creates a suite runner and configures its initial state
|
private void |
TestNG.createSuiteRunners(SuiteRunnerMap suiteRunnerMap,
XmlSuite xmlSuite)
Creates the
SuiteRunner s and populates the suite runner map with this information |
private int |
TestNG.getVerbose(XmlSuite xmlSuite) |
private void |
SuiteRunner.init(IConfiguration configuration,
XmlSuite suite,
java.lang.String outputDir,
ITestRunnerFactory runnerFactory,
boolean useDefaultListeners,
java.util.List<IMethodInterceptor> methodInterceptors,
java.util.Collection<IInvokedMethodListener> invokedMethodListener,
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) |
private static void |
TestNG.initializeCommandLineSuitesGroups(XmlSuite s,
boolean hasIncludedGroups,
java.lang.String[] m_includedGroups,
boolean hasExcludedGroups,
java.lang.String[] m_excludedGroups) |
private void |
TestNG.populateSuiteGraph(IDynamicGraph<ISuite> suiteGraph,
SuiteRunnerMap suiteRunnerMap,
XmlSuite xmlSuite)
Populates the dynamic graph with the reverse hierarchy of suites.
|
private void |
SuiteRunnerWorker.runSuite(SuiteRunnerMap suiteRunnerMap,
XmlSuite xmlSuite)
Runs a suite
|
private void |
TestNG.runSuitesSequentially(XmlSuite xmlSuite,
SuiteRunnerMap suiteRunnerMap,
int verbose,
java.lang.String defaultSuiteName)
Recursively runs suites.
|
void |
TestNG.setCommandLineSuite(XmlSuite suite) |
Modifier and Type | Method and Description |
---|---|
default void |
IAlterSuiteListener.alter(java.util.List<XmlSuite> suites) |
default 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 and Description |
---|
SuiteResult(XmlSuite suite,
ITestContext tr) |
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,
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,
java.util.Comparator<ITestNGMethod> comparator) |
Modifier and Type | Field and Description |
---|---|
private XmlSuite |
GroupConfigMethodArguments.suite |
private XmlSuite |
GroupConfigMethodArguments.Builder.suite |
private XmlSuite |
ConfigMethodArguments.suite |
private XmlSuite |
ConfigMethodArguments.Builder.suite |
Modifier and Type | Method and Description |
---|---|
XmlSuite |
GroupConfigMethodArguments.getSuite() |
XmlSuite |
ConfigMethodArguments.getSuite() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<XmlSuite> |
OverrideProcessor.process(java.util.Collection<XmlSuite> suites) |
Modifier and Type | Method and 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.
|
private static java.lang.Object[] |
Parameters.createParameters(ConstructorOrMethod m,
Parameters.MethodParameters params,
IAnnotationFinder finder,
XmlSuite xmlSuite,
java.lang.String atName) |
private static java.lang.Object[] |
Parameters.createParametersForConstructor(java.lang.reflect.Constructor constructor,
java.lang.Class<?>[] parameterTypes,
java.lang.String[] optionalValues,
java.lang.String methodAnnotation,
java.lang.String[] parameterNames,
Parameters.MethodParameters params,
XmlSuite xmlSuite) |
private static java.lang.Object[] |
Parameters.createParametersForMethod(ConstructorOrMethod method,
java.lang.Class<?>[] parameterTypes,
java.lang.String[] optionalValues,
java.lang.String methodAnnotation,
java.lang.String[] parameterNames,
Parameters.MethodParameters params,
XmlSuite xmlSuite) |
private static java.util.List<java.lang.Object> |
Parameters.createParams(java.lang.String name,
java.lang.String prefix,
java.lang.String methodAnnotation,
java.lang.Class<?>[] parameterTypes,
java.lang.String[] optionalValues,
java.lang.String[] parameterNames,
Parameters.MethodParameters params,
XmlSuite xmlSuite) |
static XmlClass[] |
ClassHelper.findClassesInSameTest(java.lang.Class<?> cls,
XmlSuite suite) |
GroupConfigMethodArguments.Builder |
GroupConfigMethodArguments.Builder.forSuite(XmlSuite suite) |
ConfigMethodArguments.Builder |
ConfigMethodArguments.Builder.forSuite(XmlSuite suite) |
ISuite |
SuiteRunnerMap.get(XmlSuite xmlSuite) |
private void |
ConfigInvoker.handleConfigurationFailure(java.lang.Throwable ite,
ITestNGMethod tm,
ITestResult testResult,
IConfigurationAnnotation annotation,
ITestNGMethod currentTestMethod,
java.lang.Object instance,
XmlSuite suite) |
private void |
ConfigInvoker.handleConfigurationSkip(ITestNGMethod tm,
ITestResult testResult,
IConfigurationAnnotation annotation,
ITestNGMethod currentTestMethod,
java.lang.Object instance,
XmlSuite suite)
Marks the current
TestResult as skipped and invokes the listeners. |
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.
|
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,
java.lang.String annotationName)
If the method has parameters, fill them in.
|
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..
|
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)
Deprecated.
- This method stands deprecated as of TestNG 7.0.0
|
private ITestResult |
TestInvoker.invokeMethod(TestMethodArguments arguments,
XmlSuite suite,
ITestInvoker.FailureContext failureContext) |
private java.util.List<ITestResult> |
TestInvoker.invokePooledTestMethods(ITestNGMethod testMethod,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> parameters,
ConfigurationGroupMethods groupMethods,
ITestContext testContext)
Invokes a method that has a specified threadPoolSize.
|
ITestResult |
TestInvoker.invokeTestMethod(TestMethodArguments arguments,
XmlSuite suite,
ITestInvoker.FailureContext failureContext)
invokeTestMethods() eventually converge here to invoke a single @Test method.
|
ITestResult |
ITestInvoker.invokeTestMethod(TestMethodArguments arguments,
XmlSuite suite,
ITestInvoker.FailureContext failureContext) |
void |
SuiteRunnerMap.put(XmlSuite xmlSuite,
ISuite suite) |
private void |
ConfigInvoker.recordConfigurationInvocationFailed(ITestNGMethod tm,
IClass testClass,
IConfigurationAnnotation annotation,
ITestNGMethod currentTestMethod,
java.lang.Object instance,
XmlSuite suite)
Record internally the failure of a Configuration, so that we can determine later if @Test
should be skipped.
|
private void |
TestInvoker.runAfterGroupsConfigurations(TestMethodArguments arguments,
XmlSuite suite,
TestResult testResult) |
private void |
TestInvoker.runConfigMethods(TestMethodArguments arguments,
XmlSuite suite,
TestResult testResult,
ITestNGMethod[] teardownConfigMethods) |
private java.util.List<ITestResult> |
TestInvoker.runWorkers(ITestNGMethod testMethod,
java.util.List<IWorker<ITestNGMethod>> workers,
int threadPoolSize,
ConfigurationGroupMethods groupMethods,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> parameters)
To reduce thread contention and also to correctly handle thread-confinement this method invokes
the @BeforeGroups and @AfterGroups corresponding to the current @Test method.
|
Modifier and Type | Method and 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 and Description |
---|
ConfigMethodArguments(IClass testClass,
ITestNGMethod currentTestMethod,
ITestNGMethod[] allMethods,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.Object[] parameterValues,
java.lang.Object instance,
ITestResult testMethodResult) |
GroupConfigMethodArguments(ITestNGMethod testMethod,
ConfigurationGroupMethods groupMethods,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.Object instance) |
Modifier and Type | Field and Description |
---|---|
private XmlSuite |
FailedReporter.m_xmlSuite |
Modifier and Type | Method and Description |
---|---|
private void |
SuiteHTMLReporter.generateClasses(XmlSuite xmlSuite) |
private void |
SuiteHTMLReporter.generateExcludedMethodsReport(XmlSuite xmlSuite,
ISuite suite) |
protected void |
FailedReporter.generateFailureSuite(XmlSuite xmlSuite,
ISuite suite,
java.lang.String outputDir) |
private void |
SuiteHTMLReporter.generateIndex(XmlSuite xmlSuite,
ISuite sr) |
private void |
SuiteHTMLReporter.generateMain(XmlSuite xmlSuite,
ISuite sr) |
private void |
SuiteHTMLReporter.generateMethodsAndGroups(XmlSuite xmlSuite,
ISuite suite)
Generate information about methods and groups
|
private void |
SuiteHTMLReporter.generateMethodsChronologically(XmlSuite xmlSuite,
ISuite suite,
java.lang.String outputFileName,
boolean alphabetical) |
private void |
SuiteHTMLReporter.generateReporterOutput(XmlSuite xmlSuite) |
private void |
SuiteHTMLReporter.generateSuites(XmlSuite xmlSuite,
ISuite suite)
Writes a property file for each suite result.
|
private void |
SuiteHTMLReporter.generateTableOfContents(XmlSuite xmlSuite,
ISuite suite) |
private void |
SuiteHTMLReporter.generateXmlFile(XmlSuite xmlSuite) |
private java.lang.String |
SuiteHTMLReporter.getOutputDirectory(XmlSuite xmlSuite) |
Modifier and Type | Method and Description |
---|---|
void |
SuiteHTMLReporter.generateReport(java.util.List<XmlSuite> xmlSuites,
java.util.List<ISuite> suites,
java.lang.String outputDirectory) |
void |
EmailableReporter.generateReport(java.util.List<XmlSuite> xml,
java.util.List<ISuite> suites,
java.lang.String outdir)
Creates summary of the run
|
void |
JUnitReportReporter.generateReport(java.util.List<XmlSuite> xmlSuites,
java.util.List<ISuite> suites,
java.lang.String defaultOutputDirectory) |
void |
XMLReporter.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 |
EmailableReporter2.generateReport(java.util.List<XmlSuite> xmlSuites,
java.util.List<ISuite> suites,
java.lang.String outputDirectory) |
Constructor and Description |
---|
FailedReporter(XmlSuite xmlSuite) |
Modifier and Type | Method and Description |
---|---|
void |
Main.generateReport(java.util.List<XmlSuite> xmlSuites,
java.util.List<ISuite> suites,
java.lang.String outputDirectory) |
Modifier and Type | Field and Description |
---|---|
private XmlSuite |
TestNGContentHandler.m_currentSuite |
private XmlSuite |
XmlSuite.m_parentSuite
Parent XML suite if this suite was specified in another suite using
|
private XmlSuite |
XmlTest.m_suite |
Modifier and Type | Field and Description |
---|---|
private java.util.List<XmlSuite> |
XmlSuite.m_childSuites
List of child XML suites specified using
|
private java.util.List<XmlSuite> |
TestNGContentHandler.m_suites |
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(java.lang.String currentFile,
java.io.InputStream inputStream,
boolean loadClasses) |
XmlSuite |
XmlSuite.shallowCopy()
This method returns a shallow cloned version.
|
Modifier and Type | Method and 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 and Description |
---|---|
java.lang.String |
IWeaveXml.asXml(XmlSuite xmlSuite)
Helps represent the contents of
XmlSuite as a String. |
java.lang.String |
DefaultXmlWeaver.asXml(XmlSuite xmlSuite) |
(package private) static java.lang.String |
XmlWeaver.asXml(XmlSuite suite)
Helps represent the contents of
XmlSuite as a String. |
private void |
XmlTest.init(XmlSuite suite,
int index) |
void |
XmlSuite.setParentSuite(XmlSuite parentSuite) |
void |
XmlTest.setSuite(XmlSuite result) |
void |
XmlTest.setXmlSuite(XmlSuite suite) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<XmlSuite> |
IPostProcessor.process(java.util.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(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 and Description |
---|---|
void |
DomUtil.populate(XmlSuite xmlSuite) |
Modifier and Type | Field and Description |
---|---|
private java.util.List<XmlSuite> |
TestNamesMatcher.cloneSuites |
Modifier and Type | Method and Description |
---|---|
private static XmlSuite |
TestNamesMatcher.cleanClone(XmlSuite xmlSuite,
java.util.List<XmlTest> tests) |
private XmlSuite |
TestNamesMatcher.cloneIfSuiteContainTestsWithNamesMatchingAny(XmlSuite suite) |
static XmlSuite |
XmlSuiteUtils.newXmlSuiteUsing(java.util.List<java.lang.String> classes) |
Modifier and Type | Method and Description |
---|---|
java.util.List<XmlSuite> |
TestNamesMatcher.getSuitesMatchingTestNames() |
Modifier and Type | Method and Description |
---|---|
private void |
TestNamesMatcher.addIfNotNull(XmlSuite xmlSuite) |
private static XmlSuite |
TestNamesMatcher.cleanClone(XmlSuite xmlSuite,
java.util.List<XmlTest> tests) |
private void |
TestNamesMatcher.cloneIfContainsTestsWithNamesMatchingAny(XmlSuite xmlSuite,
java.util.List<java.lang.String> testNames)
Recursive search the given testNames from the current
XmlSuite and its child suites. |
private XmlSuite |
TestNamesMatcher.cloneIfSuiteContainTestsWithNamesMatchingAny(XmlSuite suite) |
(package private) static void |
XmlSuiteUtils.ensureNoDuplicateTestsArePresent(XmlSuite xmlSuite)
Ensures that the current suite doesn't contain any duplicate
XmlTest instances. |
Modifier and Type | Method and Description |
---|---|
static void |
XmlSuiteUtils.adjustSuiteNamesToEnsureUniqueness(java.util.List<XmlSuite> suites)
Ensure that two XmlSuite don't have the same name
|
private static void |
XmlSuiteUtils.adjustSuiteNamesToEnsureUniqueness(java.util.List<XmlSuite> suites,
java.util.Set<java.lang.String> names) |
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 and Description |
---|
TestNamesMatcher(XmlSuite xmlSuite,
java.util.List<java.lang.String> testNames) |