| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final DataProviderHolder | |
| private static final AutoCloseableLock | |
| private final ConfigInvoker | |
| private final List | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | TestInvoker(ITestResultNotifier m_notifier, ITestContext m_testContext, SuiteRunState m_suiteState, IConfiguration m_configuration, Collection<IInvokedMethodListener> m_invokedMethodListeners, DataProviderHolder holder, List<IClassListener> m_classListeners, boolean m_skipFailedInvocationCounts, ConfigInvoker invoker, ISuiteRunnerListener suiteRunner)
|
| Modifier and Type | Method and Description |
|---|---|
| private DataProviderHolder | |
| private String | Returns: error message or null if dependencies have been run successfullytest method being checked for testMethod)Checks to see of the test method has certain dependencies that prevents TestNG from executing it |
| private static void | |
| private void | |
| private TestInvoker. | considerExceptions(ITestNGMethod tm, ITestResult testResult, ExpectedExceptionsHolder exceptionsHolder, ITestInvoker.
|
| private TestInvoker. | considerExceptionsInternal(ITestNGMethod tm, ITestResult testResult, ExpectedExceptionsHolder exceptionsHolder, ITestInvoker.
|
| private Collection | |
| private boolean | |
| public ITestResultNotifier | |
| private void | handleInvocationResult(ITestNGMethod testMethod, ITestResult testResult, ITestInvoker.
|
| public void | |
| private ITestResult | invokeMethod(TestMethodArguments arguments, XmlSuite suite, ITestInvoker.
|
| private List | invokePooledTestMethods(ITestNGMethod testMethod, Map<String, String> parameters, ConfigurationGroupMethods groupMethods, ITestContext testContext)
Invokes a method that has a specified threadPoolSize. |
| public ITestResult | invokeTestMethod(TestMethodArguments arguments, XmlSuite suite, ITestInvoker.
Implements org. |
| public List | invokeTestMethods(ITestNGMethod testMethod, ConfigurationGroupMethods groupMethods, Object instance, ITestContext context)
Implements org. |
| private Set | Returns: the test results that apply to one of the instances of the testMethod.
|
| public ITestResult | registerSkippedTestResult(ITestNGMethod testMethod, long start, Throwable throwable, ITestResult source)
Implements org. |
| public ITestInvoker. | retryFailed(TestMethodArguments arguments, List<ITestResult> result, int failureCount, ITestContext testContext)
Implements org. |
| private void | |
| private void | |
| private void | runConfigMethods(TestMethodArguments arguments, XmlSuite suite, ITestResult testResult, ITestNGMethod[] teardownConfigMethods)
|
| public void | |
| private List | runWorkers(ITestNGMethod testMethod, List<IWorker<ITestNGMethod>> workers, int threadPoolSize, ConfigurationGroupMethods groupMethods, 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. |
| private static void | |
| private boolean | shouldRetryTestMethod(ITestNGMethod testMethod, ITestResult testResult, ITestInvoker.
|
| private static void |
| holder | back to summary |
|---|---|
| private final DataProviderHolder holder | |
| internalLock | back to summary |
|---|---|
| private static final AutoCloseableLock internalLock | |
| invoker | back to summary |
|---|---|
| private final ConfigInvoker invoker | |
| m_classListeners | back to summary |
|---|---|
| private final List<IClassListener> m_classListeners | |
| m_skipFailedInvocationCounts | back to summary |
|---|---|
| private final boolean m_skipFailedInvocationCounts | |
| TestInvoker | back to summary |
|---|---|
| public TestInvoker(ITestResultNotifier m_notifier, ITestContext m_testContext, SuiteRunState m_suiteState, IConfiguration m_configuration, Collection<IInvokedMethodListener> m_invokedMethodListeners, DataProviderHolder holder, List<IClassListener> m_classListeners, boolean m_skipFailedInvocationCounts, ConfigInvoker invoker, ISuiteRunnerListener suiteRunner) | |
| buildDataProviderHolder | back to summary |
|---|---|
| private DataProviderHolder buildDataProviderHolder() | |
| checkDependencies | back to summary |
|---|---|
| private String checkDependencies(ITestNGMethod testMethod) Checks to see of the test method has certain dependencies that prevents TestNG from executing it
| |
| cleanInterruptStatus | back to summary |
|---|---|
| private static void cleanInterruptStatus() | |
| collectResults | back to summary |
|---|---|
| private void collectResults(ITestNGMethod testMethod, ITestResult result) | |
| considerExceptions | back to summary |
|---|---|
| private TestInvoker. | |
| considerExceptionsInternal | back to summary |
|---|---|
| private TestInvoker. | |
| dataProviderListeners | back to summary |
|---|---|
| private Collection | |
| failuresPresentInUpstreamDependency | back to summary |
|---|---|
| private boolean failuresPresentInUpstreamDependency(ITestNGMethod testMethod, ITestNGMethod[] methods) | |
| getNotifier | back to summary |
|---|---|
| public ITestResultNotifier getNotifier() Implements org.
| |
| handleInvocationResult | back to summary |
|---|---|
| private void handleInvocationResult(ITestNGMethod testMethod, ITestResult testResult, ITestInvoker. | |
| invokeListenersForSkippedTestResult | back to summary |
|---|---|
| public void invokeListenersForSkippedTestResult(ITestResult r, IInvokedMethod invokedMethod) Implements org. | |
| invokeMethod | back to summary |
|---|---|
| private ITestResult invokeMethod(TestMethodArguments arguments, XmlSuite suite, ITestInvoker. | |
| invokePooledTestMethods | back to summary |
|---|---|
| private List Invokes a method that has a specified threadPoolSize. | |
| invokeTestMethod | back to summary |
|---|---|
| public ITestResult invokeTestMethod(TestMethodArguments arguments, XmlSuite suite, ITestInvoker. Implements org. invokeTestMethods() eventually converge here to invoke a single @Test method. This method is responsible for actually invoking the method. It decides if the invocation must be done:
This method is also responsible for invoking @BeforeGroup, @BeforeMethod, @AfterMethod, @AfterGroup if it is the case for the passed in @Test method. | |
| invokeTestMethods | back to summary |
|---|---|
| public List Implements org. | |
| keepSameInstances | back to summary |
|---|---|
private Set
| |
| registerSkippedTestResult | back to summary |
|---|---|
| public ITestResult registerSkippedTestResult(ITestNGMethod testMethod, long start, Throwable throwable, ITestResult source) Implements org.
| |
| retryFailed | back to summary |
|---|---|
| public ITestInvoker. Implements org. | |
| runAfterConfigurations | back to summary |
|---|---|
| private void runAfterConfigurations(TestMethodArguments arguments, XmlSuite suite, ITestResult testResult) | |
| runAfterGroupsConfigurations | back to summary |
|---|---|
| private void runAfterGroupsConfigurations(TestMethodArguments arguments) | |
| runConfigMethods | back to summary |
|---|---|
| private void runConfigMethods(TestMethodArguments arguments, XmlSuite suite, ITestResult testResult, ITestNGMethod[] teardownConfigMethods) | |
| runTestResultListener | back to summary |
|---|---|
| public void runTestResultListener(ITestResult tr) Implements org. | |
| runWorkers | back to summary |
|---|---|
| private List To reduce thread contention and also to correctly handle thread-confinement this method invokes the @BeforeGroups and @AfterGroups corresponding to the current @Test method. | |
| setTestStatus | back to summary |
|---|---|
| private static void setTestStatus(ITestResult result, int status) | |
| shouldRetryTestMethod | back to summary |
|---|---|
| private boolean shouldRetryTestMethod(ITestNGMethod testMethod, ITestResult testResult, ITestInvoker. | |
| updateStatusHolderAccordingToTestResult | back to summary |
|---|---|
| private static void updateStatusHolderAccordingToTestResult(ITestResult testResult, TestInvoker. | |
| Modifier and Type | Field and Description |
|---|---|
| private final TestMethodArguments | |
| private final ITestContext | |
| private final ITestInvoker. | |
| private final ITestInvoker | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public List | |
| public int |
| arguments | back to summary |
|---|---|
| private final TestMethodArguments arguments | |
| context | back to summary |
|---|---|
| private final ITestContext context | |
| failure | back to summary |
|---|---|
| private final ITestInvoker. | |
| invoker | back to summary |
|---|---|
| private final ITestInvoker invoker | |
| result | back to summary |
|---|---|
| private final List<ITestResult> result | |
| MethodInvocationAgent | back to summary |
|---|---|
| public MethodInvocationAgent(TestMethodArguments arguments, ITestInvoker invoker, ITestContext context) | |
| getResult | back to summary |
|---|---|
| public List | |
| invoke | back to summary |
|---|---|
| public int invoke(int invCount) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| private |
| handled | back to summary |
|---|---|
| pack-priv boolean handled | |
| originalStatus | back to summary |
|---|---|
| pack-priv int originalStatus | |
| status | back to summary |
|---|---|
| pack-priv int status | |
| StatusHolder | back to summary |
|---|---|
| private StatusHolder() | |