Uses of Class
org.testng.xml.XmlSuite
Packages that use XmlSuite
Package
Description
-
Uses of XmlSuite in org.testng
Fields in org.testng declared as XmlSuiteModifier and TypeFieldDescriptionprivate final XmlSuite
SuiteResult.m_suite
private XmlSuite
SuiteRunner.xmlSuite
Fields in org.testng with type parameters of type XmlSuiteMethods in org.testng that return XmlSuiteModifier and TypeMethodDescriptionSuiteResult.getSuite()
ISuite.getXmlSuite()
SuiteRunner.getXmlSuite()
Methods in org.testng that return types with arguments of type XmlSuiteModifier and TypeMethodDescriptionTestNG.createCommandLineSuitesForClasses
(Class[] classes) TestNG.createCommandLineSuitesForMethods
(List<String> commandLineMethods) JarFileUtils.extractSuitesFrom
(File jarFile) Methods in org.testng with parameters of type XmlSuiteModifier and TypeMethodDescriptionprivate 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 stateprivate void
TestNG.createSuiteRunners
(SuiteRunnerMap suiteRunnerMap, XmlSuite xmlSuite) Creates theSuiteRunner
s and populates the suite runner map with this informationprivate int
TestNG.getVerbose
(XmlSuite xmlSuite) private void
SuiteRunner.init
(IConfiguration configuration, XmlSuite suite, String outputDir, ITestRunnerFactory runnerFactory, boolean useDefaultListeners, List<IMethodInterceptor> methodInterceptors, Collection<IInvokedMethodListener> invokedMethodListener, Collection<ITestListener> testListeners, Collection<IClassListener> classListeners, DataProviderHolder attribs, Comparator<ITestNGMethod> comparator) private static void
TestNG.initializeCommandLineSuitesGroups
(XmlSuite s, boolean hasIncludedGroups, String[] m_includedGroups, boolean hasExcludedGroups, 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 suiteprivate void
TestNG.runSuitesSequentially
(XmlSuite xmlSuite, SuiteRunnerMap suiteRunnerMap, int verbose, String defaultSuiteName) Recursively runs suites.void
TestNG.setCommandLineSuite
(XmlSuite suite) Method parameters in org.testng with type arguments of type XmlSuiteModifier and TypeMethodDescriptiondefault void
default void
Generate a report for the given suites into the specified output directory.void
TestNG.setXmlSuites
(List<XmlSuite> suites) Specifies the XmlSuite objects to run.Constructors in org.testng with parameters of type XmlSuiteModifierConstructorDescriptionprotected
SuiteResult
(XmlSuite suite, ITestContext tr) SuiteRunner
(IConfiguration configuration, XmlSuite suite, String outputDir, ITestRunnerFactory runnerFactory, boolean useDefaultListeners, Comparator<ITestNGMethod> comparator) protected
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) -
Uses of XmlSuite in org.testng.internal
Fields in org.testng.internal declared as XmlSuiteModifier and TypeFieldDescriptionprivate XmlSuite
ConfigMethodArguments.Builder.suite
private final XmlSuite
ConfigMethodArguments.suite
Methods in org.testng.internal that return XmlSuiteModifier and TypeMethodDescriptionConfigMethodArguments.getSuite()
GroupConfigMethodArguments.getSuite()
Methods in org.testng.internal that return types with arguments of type XmlSuiteMethods in org.testng.internal with parameters of type XmlSuiteModifier and TypeMethodDescriptionstatic 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.private static Object[]
Parameters.createParameters
(ConstructorOrMethod m, Parameters.MethodParameters params, IAnnotationFinder finder, XmlSuite xmlSuite, String atName) private static Object[]
Parameters.createParametersForConstructor
(Constructor<?> constructor, Class<?>[] parameterTypes, String[] optionalValues, String methodAnnotation, String[] parameterNames, Parameters.MethodParameters params, XmlSuite xmlSuite) private static Object[]
Parameters.createParametersForMethod
(ConstructorOrMethod method, Class<?>[] parameterTypes, String[] optionalValues, String methodAnnotation, String[] parameterNames, Parameters.MethodParameters params, XmlSuite xmlSuite) Parameters.createParams
(String name, String prefix, String methodAnnotation, Class<?>[] parameterTypes, String[] optionalValues, String[] parameterNames, Parameters.MethodParameters params, XmlSuite xmlSuite) static XmlClass[]
ClassHelper.findClassesInSameTest
(Class<?> cls, XmlSuite suite) private void
ConfigInvoker.handleConfigurationFailure
(Throwable ite, ITestNGMethod tm, ITestResult testResult, IConfigurationAnnotation annotation, ITestNGMethod currentTestMethod, Object instance, XmlSuite suite) private void
ConfigInvoker.handleConfigurationSkip
(ITestNGMethod tm, ITestResult testResult, IConfigurationAnnotation annotation, ITestNGMethod currentTestMethod, Object instance, XmlSuite suite) Marks the currentTestResult
as skipped and invokes the listeners.static ParameterHolder
Parameters.handleParameters
(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
(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.private ITestResult
TestInvoker.invokeMethod
(TestMethodArguments arguments, XmlSuite suite, ITestInvoker.FailureContext failureContext) private List<ITestResult>
TestInvoker.invokePooledTestMethods
(ITestNGMethod testMethod, XmlSuite suite, Map<String, String> parameters, ConfigurationGroupMethods groupMethods, ITestContext testContext) Invokes a method that has a specified threadPoolSize.ITestInvoker.invokeTestMethod
(TestMethodArguments arguments, XmlSuite suite, ITestInvoker.FailureContext failureContext) TestInvoker.invokeTestMethod
(TestMethodArguments arguments, XmlSuite suite, ITestInvoker.FailureContext failureContext) invokeTestMethods() eventually converge here to invoke a single @Test method.void
private void
ConfigInvoker.recordConfigurationInvocationFailed
(ITestNGMethod tm, IClass testClass, IConfigurationAnnotation annotation, ITestNGMethod currentTestMethod, 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 List<ITestResult>
TestInvoker.runWorkers
(ITestNGMethod testMethod, List<IWorker<ITestNGMethod>> workers, int threadPoolSize, ConfigurationGroupMethods groupMethods, XmlSuite suite, Map<String, 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.Method parameters in org.testng.internal with type arguments of type XmlSuiteModifier and TypeMethodDescriptionvoid
ExitCodeListener.generateReport
(List<XmlSuite> xmlSuites, List<ISuite> suites, String outputDirectory) OverrideProcessor.process
(Collection<XmlSuite> suites) Constructors in org.testng.internal with parameters of type XmlSuiteModifierConstructorDescriptionprivate
ConfigMethodArguments
(IClass testClass, ITestNGMethod currentTestMethod, ITestNGMethod[] allMethods, XmlSuite suite, Map<String, String> params, Object[] parameterValues, Object instance, ITestResult testMethodResult) -
Uses of XmlSuite in org.testng.reporters
Fields in org.testng.reporters declared as XmlSuiteMethods in org.testng.reporters with parameters of type XmlSuiteModifier and TypeMethodDescriptionprivate void
SuiteHTMLReporter.generateClasses
(XmlSuite xmlSuite) private void
SuiteHTMLReporter.generateExcludedMethodsReport
(XmlSuite xmlSuite, ISuite suite) protected void
FailedReporter.generateFailureSuite
(XmlSuite xmlSuite, ISuite suite, 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 groupsprivate void
SuiteHTMLReporter.generateMethodsChronologically
(XmlSuite xmlSuite, ISuite suite, 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 String
SuiteHTMLReporter.getOutputDirectory
(XmlSuite xmlSuite) Method parameters in org.testng.reporters with type arguments of type XmlSuiteModifier and TypeMethodDescriptionvoid
Creates summary of the runvoid
EmailableReporter2.generateReport
(List<XmlSuite> xmlSuites, List<ISuite> suites, String outputDirectory) void
FailedReporter.generateReport
(List<XmlSuite> xmlSuites, List<ISuite> suites, String outputDirectory) void
JUnitReportReporter.generateReport
(List<XmlSuite> xmlSuites, List<ISuite> suites, String defaultOutputDirectory) void
SuiteHTMLReporter.generateReport
(List<XmlSuite> xmlSuites, List<ISuite> suites, String outputDirectory) void
Constructors in org.testng.reporters with parameters of type XmlSuite -
Uses of XmlSuite in org.testng.reporters.jq
Method parameters in org.testng.reporters.jq with type arguments of type XmlSuite -
Uses of XmlSuite in org.testng.xml
Fields in org.testng.xml declared as XmlSuiteModifier and TypeFieldDescriptionprivate XmlSuite
TestNGContentHandler.m_currentSuite
private XmlSuite
XmlSuite.m_parentSuite
Parent XML suite if this suite was specified in another suite using <suite-file> tag.private XmlSuite
XmlTest.m_suite
Fields in org.testng.xml with type parameters of type XmlSuiteModifier and TypeFieldDescriptionXmlSuite.m_childSuites
List of child XML suites specified using <suite-file> tags.TestNGContentHandler.m_suites
Methods in org.testng.xml that return XmlSuiteModifier and TypeMethodDescriptionXmlSuite.getParentSuite()
TestNGContentHandler.getSuite()
final XmlSuite
XmlTest.getSuite()
Returns the suite this test is part of.SuiteXmlParser.parse
(String currentFile, InputStream inputStream, boolean loadClasses) XmlSuite.shallowCopy()
This method returns a shallow cloned version.Methods in org.testng.xml that return types with arguments of type XmlSuiteModifier and TypeMethodDescriptionXmlSuite.getChildSuites()
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) Parser.parseToList()
IPostProcessor.process
(Collection<XmlSuite> suites) Methods in org.testng.xml with parameters of type XmlSuiteModifier and TypeMethodDescriptionHelps represent the contents ofXmlSuite
as a String.(package private) static String
Helps represent the contents ofXmlSuite
as a String.private void
void
XmlSuite.setParentSuite
(XmlSuite parentSuite) void
void
XmlTest.setXmlSuite
(XmlSuite suite) Method parameters in org.testng.xml with type arguments of type XmlSuiteConstructors in org.testng.xml with parameters of type XmlSuite -
Uses of XmlSuite in org.testng.xml.internal
Fields in org.testng.xml.internal with type parameters of type XmlSuiteMethods in org.testng.xml.internal that return XmlSuiteModifier and TypeMethodDescriptionprivate static XmlSuite
TestNamesMatcher.cleanClone
(XmlSuite xmlSuite, List<XmlTest> tests) private XmlSuite
TestNamesMatcher.cloneIfSuiteContainTestsWithNamesMatchingAny
(XmlSuite suite) static XmlSuite
XmlSuiteUtils.newXmlSuiteUsing
(List<String> classes) Methods in org.testng.xml.internal that return types with arguments of type XmlSuiteMethods in org.testng.xml.internal with parameters of type XmlSuiteModifier and TypeMethodDescriptionprivate void
TestNamesMatcher.addIfNotNull
(XmlSuite xmlSuite) private static XmlSuite
TestNamesMatcher.cleanClone
(XmlSuite xmlSuite, List<XmlTest> tests) private void
TestNamesMatcher.cloneIfContainsTestsWithNamesMatchingAny
(XmlSuite xmlSuite, List<String> testNames) Recursive search the given testNames from the currentXmlSuite
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 duplicateXmlTest
instances.Method parameters in org.testng.xml.internal with type arguments of type XmlSuiteModifier and TypeMethodDescriptionstatic void
XmlSuiteUtils.adjustSuiteNamesToEnsureUniqueness
(List<XmlSuite> suites) Ensure that two XmlSuite don't have the same nameprivate static void
XmlSuiteUtils.adjustSuiteNamesToEnsureUniqueness
(List<XmlSuite> suites, Set<String> names) static void
XmlSuiteUtils.validateIfSuitesContainDuplicateTests
(List<XmlSuite> suites) A validator that runs through the list of suites and checks if each of the suites contains anyXmlTest
with the same name.Constructors in org.testng.xml.internal with parameters of type XmlSuite