Modifier and Type | Interface and Description |
---|---|
interface |
IAlterTestName
Deprecated.
As of release 7.0.0, replaced by
ITestResult |
Modifier and Type | Field and Description |
---|---|
private static java.lang.ThreadLocal<ITestResult> |
Reporter.m_currentTestResult |
private java.util.Collection<ITestResult> |
TestListenerAdapter.m_failedButWSPerTests |
private java.util.Collection<ITestResult> |
TestListenerAdapter.m_failedConfs |
private java.util.Collection<ITestResult> |
TestListenerAdapter.m_failedTests |
private java.util.Collection<ITestResult> |
TestListenerAdapter.m_passedConfs |
private java.util.Collection<ITestResult> |
TestListenerAdapter.m_passedTests |
private java.util.Collection<ITestResult> |
TestListenerAdapter.m_skippedConfs |
private java.util.Collection<ITestResult> |
TestListenerAdapter.m_skippedTests |
private java.util.Collection<ITestResult> |
TestListenerAdapter.m_timedOutTests |
Modifier and Type | Method and Description |
---|---|
static ITestResult |
Reporter.getCurrentTestResult() |
ITestResult |
IInvokedMethod.getTestResult() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<ITestResult> |
IResultMap.getAllResults() |
java.util.List<ITestResult> |
TestListenerAdapter.getConfigurationFailures() |
java.util.List<ITestResult> |
TestListenerAdapter.getConfigurationSkips() |
java.util.List<ITestResult> |
TestListenerAdapter.getFailedButWithinSuccessPercentageTests() |
java.util.List<ITestResult> |
TestListenerAdapter.getFailedTests() |
java.util.Set<ITestResult> |
TestRunner.getFailedTests(ITestNGMethod tm) |
java.util.List<ITestResult> |
TestListenerAdapter.getPassedTests() |
java.util.Set<ITestResult> |
TestRunner.getPassedTests(ITestNGMethod tm) |
java.util.Set<ITestResult> |
IResultMap.getResults(ITestNGMethod method) |
java.util.List<ITestResult> |
TestListenerAdapter.getSkippedTests() |
java.util.Set<ITestResult> |
TestRunner.getSkippedTests(ITestNGMethod tm) |
java.util.Collection<ITestResult> |
TestListenerAdapter.getTimedoutTests() |
Modifier and Type | Method and Description |
---|---|
void |
TestRunner.addFailedButWithinSuccessPercentageTest(ITestNGMethod testMethod,
ITestResult result) |
void |
TestRunner.addFailedTest(ITestNGMethod testMethod,
ITestResult result) |
void |
TestRunner.addPassedTest(ITestNGMethod tm,
ITestResult tr) |
void |
IResultMap.addResult(ITestResult result,
ITestNGMethod method) |
void |
TestRunner.addSkippedTest(ITestNGMethod tm,
ITestResult tr) |
void |
SuiteRunner.afterInvocation(IInvokedMethod method,
ITestResult testResult) |
default void |
IInvokedMethodListener.afterInvocation(IInvokedMethod method,
ITestResult testResult) |
default void |
IInvokedMethodListener.afterInvocation(IInvokedMethod method,
ITestResult testResult,
ITestContext context)
To be implemented if the method needs a handle to contextual information.
|
void |
TestListenerAdapter.beforeConfiguration(ITestResult tr) |
default void |
IConfigurationListener.beforeConfiguration(ITestResult tr)
Invoked before a configuration method is invoked.
|
void |
TestRunner.ConfigurationListener.beforeConfiguration(ITestResult tr) |
void |
SuiteRunner.beforeInvocation(IInvokedMethod method,
ITestResult testResult) |
default void |
IInvokedMethodListener.beforeInvocation(IInvokedMethod method,
ITestResult testResult) |
default void |
IInvokedMethodListener.beforeInvocation(IInvokedMethod method,
ITestResult testResult,
ITestContext context)
To be implemented if the method needs a handle to contextual information.
|
static java.util.List<java.lang.String> |
Reporter.getOutput(ITestResult tr) |
default IRetryAnalyzer |
ITestNGMethod.getRetryAnalyzer(ITestResult result) |
private static void |
Reporter.log(java.lang.String s,
ITestResult m) |
private void |
TestRunner.logFailedTest(ITestNGMethod method,
ITestResult tr,
boolean withinSuccessPercentage) |
void |
TestListenerAdapter.onConfigurationFailure(ITestResult itr) |
default void |
IConfigurationListener.onConfigurationFailure(ITestResult itr)
Invoked whenever a configuration method failed.
|
void |
TestRunner.ConfigurationListener.onConfigurationFailure(ITestResult itr) |
void |
TestListenerAdapter.onConfigurationSkip(ITestResult itr) |
default void |
IConfigurationListener.onConfigurationSkip(ITestResult itr)
Invoked whenever a configuration method was skipped.
|
void |
TestRunner.ConfigurationListener.onConfigurationSkip(ITestResult itr) |
void |
TestListenerAdapter.onConfigurationSuccess(ITestResult itr) |
default void |
IConfigurationListener.onConfigurationSuccess(ITestResult itr)
Invoked whenever a configuration method succeeded.
|
void |
TestRunner.ConfigurationListener.onConfigurationSuccess(ITestResult itr) |
default void |
ITestListener.onTestFailedButWithinSuccessPercentage(ITestResult result)
Invoked each time a method fails but has been annotated with successPercentage and this failure
still keeps it within the success percentage requested.
|
void |
TestListenerAdapter.onTestFailedButWithinSuccessPercentage(ITestResult tr) |
default void |
ITestListener.onTestFailedWithTimeout(ITestResult result)
Invoked each time a test fails due to a timeout.
|
void |
TestListenerAdapter.onTestFailedWithTimeout(ITestResult tr) |
default void |
ITestListener.onTestFailure(ITestResult result)
Invoked each time a test fails.
|
void |
TestListenerAdapter.onTestFailure(ITestResult tr) |
default void |
ITestListener.onTestSkipped(ITestResult result)
Invoked each time a test is skipped.
|
void |
TestListenerAdapter.onTestSkipped(ITestResult tr) |
default void |
ITestListener.onTestStart(ITestResult result)
Invoked each time before a test will be invoked.
|
void |
TestListenerAdapter.onTestStart(ITestResult result) |
default void |
ITestListener.onTestSuccess(ITestResult result)
Invoked each time a test succeeds.
|
void |
TestListenerAdapter.onTestSuccess(ITestResult tr) |
void |
IResultMap.removeResult(ITestResult r) |
boolean |
IRetryAnalyzer.retry(ITestResult result)
Returns true if the test method has to be retried, false otherwise.
|
void |
IConfigurable.run(IConfigureCallBack callBack,
ITestResult testResult) |
void |
IHookable.run(IHookCallBack callBack,
ITestResult testResult) |
void |
IConfigureCallBack.runConfigurationMethod(ITestResult testResult)
Invoke the test method currently being hijacked.
|
void |
IHookCallBack.runTestMethod(ITestResult testResult)
Invoke the test method currently being hijacked.
|
static void |
Reporter.setCurrentTestResult(ITestResult m) |
static boolean |
ITestResult.wasFailureDueToTimeout(ITestResult result) |
Modifier and Type | Method and Description |
---|---|
void |
TestListenerAdapter.setFailedButWithinSuccessPercentageTests(java.util.List<ITestResult> failedButWithinSuccessPercentageTests) |
void |
TestListenerAdapter.setFailedTests(java.util.List<ITestResult> failedTests) |
void |
TestListenerAdapter.setPassedTests(java.util.List<ITestResult> passedTests) |
void |
TestListenerAdapter.setSkippedTests(java.util.List<ITestResult> skippedTests) |
Modifier and Type | Class and Description |
---|---|
class |
TestResult
This class represents the result of a test.
|
Modifier and Type | Field and Description |
---|---|
(package private) ITestResult |
ParameterHandler.ParameterBag.errorResult |
private ITestResult |
InvokeMethodRunnable.m_testResult |
private ITestResult |
InvokedMethod.m_testResult |
private ITestResult |
ConfigMethodArguments.testMethodResult |
private ITestResult |
ConfigMethodArguments.Builder.testMethodResult |
private ITestResult |
Parameters.MethodParameters.testResult |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<ITestResult,ITestNGMethod> |
ResultMap.m_map |
private java.util.List<ITestResult> |
TestMethodWithDataProviderMethodWorker.m_testResults |
private java.util.List<ITestResult> |
TestMethodWorker.m_testResults |
private java.util.List<ITestResult> |
TestInvoker.MethodInvocationAgent.result |
Modifier and Type | Method and Description |
---|---|
ITestResult |
ConfigMethodArguments.getTestMethodResult() |
ITestResult |
InvokedMethod.getTestResult() |
private ITestResult |
TestInvoker.invokeMethod(TestMethodArguments arguments,
XmlSuite suite,
ITestInvoker.FailureContext failureContext) |
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) |
ITestResult |
TestInvoker.registerSkippedTestResult(ITestNGMethod testMethod,
long start,
java.lang.Throwable throwable) |
ITestResult |
ITestInvoker.registerSkippedTestResult(ITestNGMethod testMethod,
long start,
java.lang.Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ITestResult> |
TestMethodWithDataProviderMethodWorker.call() |
java.util.Set<ITestResult> |
ResultMap.getAllResults() |
java.util.Set<ITestResult> |
ITestResultNotifier.getFailedTests(ITestNGMethod tm) |
java.util.Set<ITestResult> |
ITestResultNotifier.getPassedTests(ITestNGMethod tm) |
java.util.List<ITestResult> |
TestInvoker.MethodInvocationAgent.getResult() |
java.util.Set<ITestResult> |
ResultMap.getResults(ITestNGMethod method) |
java.util.Set<ITestResult> |
ITestResultNotifier.getSkippedTests(ITestNGMethod tm) |
java.util.List<ITestResult> |
TestMethodWorker.getTestResults() |
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.
|
java.util.List<ITestResult> |
TestInvoker.invokeTestMethods(ITestNGMethod testMethod,
ConfigurationGroupMethods groupMethods,
java.lang.Object instance,
ITestContext context) |
java.util.List<ITestResult> |
ITestInvoker.invokeTestMethods(ITestNGMethod testMethod,
ConfigurationGroupMethods groupMethods,
java.lang.Object instance,
ITestContext context) |
java.util.List<ITestResult> |
Invoker.invokeTestMethods(ITestNGMethod testMethod,
java.util.Map<java.lang.String,java.lang.String> testParameters,
ConfigurationGroupMethods groupMethods,
java.lang.Object instance,
ITestContext testContext)
Invoke all the test methods.
|
java.util.List<ITestResult> |
IInvoker.invokeTestMethods(ITestNGMethod testMethod,
java.util.Map<java.lang.String,java.lang.String> parameters,
ConfigurationGroupMethods groupMethods,
java.lang.Object instance,
ITestContext testContext)
Deprecated.
- This method stands deprecated as of TestNG 7.0.0
|
private java.util.Set<ITestResult> |
TestInvoker.keepSameInstances(ITestNGMethod method,
java.util.Set<ITestResult> results) |
java.util.List<ITestResult> |
IMethodRunner.runInParallel(TestMethodArguments arguments,
ITestInvoker testInvoker,
ITestContext context,
java.util.concurrent.atomic.AtomicInteger invocationCount,
ITestInvoker.FailureContext failure,
java.util.Iterator<java.lang.Object[]> allParameterValues,
boolean skipFailedInvocationCounts) |
java.util.List<ITestResult> |
MethodRunner.runInParallel(TestMethodArguments arguments,
ITestInvoker testInvoker,
ITestContext context,
java.util.concurrent.atomic.AtomicInteger invocationCount,
ITestInvoker.FailureContext failure,
java.util.Iterator<java.lang.Object[]> allParamValues,
boolean skipFailedInvocationCounts) |
java.util.List<ITestResult> |
IMethodRunner.runInSequence(TestMethodArguments arguments,
ITestInvoker testInvoker,
ITestContext context,
java.util.concurrent.atomic.AtomicInteger invocationCount,
ITestInvoker.FailureContext failure,
java.util.Iterator<java.lang.Object[]> allParameterValues,
boolean skipFailedInvocationCounts) |
java.util.List<ITestResult> |
MethodRunner.runInSequence(TestMethodArguments arguments,
ITestInvoker testInvoker,
ITestContext context,
java.util.concurrent.atomic.AtomicInteger invocationCount,
ITestInvoker.FailureContext failure,
java.util.Iterator<java.lang.Object[]> allParamValues,
boolean skipFailedInvocationCounts) |
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 |
ITestResultNotifier.addFailedButWithinSuccessPercentageTest(ITestNGMethod tm,
ITestResult tr) |
void |
ITestResultNotifier.addFailedTest(ITestNGMethod tm,
ITestResult tr) |
void |
ITestResultNotifier.addPassedTest(ITestNGMethod tm,
ITestResult tr) |
void |
ResultMap.addResult(ITestResult result,
ITestNGMethod method) |
void |
ITestResultNotifier.addSkippedTest(ITestNGMethod tm,
ITestResult tr) |
private boolean |
TestResult.belongToSameGroup(ITestResult result) |
private void |
TestInvoker.collectResults(ITestNGMethod testMethod,
ITestResult result) |
int |
TestResult.compareTo(ITestResult comparison) |
private static int |
TestInvoker.computeTestStatusComparingTestResultAndStatusHolder(ITestResult testResult,
TestInvoker.StatusHolder holder,
boolean wasResultUnaltered) |
private TestInvoker.StatusHolder |
TestInvoker.considerExceptions(ITestNGMethod tm,
ITestResult testresult,
ExpectedExceptionsHolder exceptionsHolder,
ITestInvoker.FailureContext failure) |
(package private) static void |
TestResult.copyAttributes(ITestResult source,
ITestResult target) |
private static void |
ConfigInvoker.copyAttributesFromNativelyInjectedTestResult(java.lang.Object[] source,
ITestResult target) |
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.getInjectedParameter(java.lang.Class<?> c,
java.lang.reflect.Method method,
ITestContext context,
ITestResult testResult)
Deprecated.
- This method stands deprecated as of TestNG v6.11. There are no alternatives.
|
IRetryAnalyzer |
WrappedTestNGMethod.getRetryAnalyzer(ITestResult result) |
IRetryAnalyzer |
BaseTestMethod.getRetryAnalyzer(ITestResult result) |
IRetryAnalyzer |
ClonedMethod.getRetryAnalyzer(ITestResult result) |
private IRetryAnalyzer |
BaseTestMethod.getRetryAnalyzerConsideringMethodParameteters(ITestResult tr) |
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. |
protected void |
BaseInvoker.handleException(java.lang.Throwable throwable,
ITestNGMethod testMethod,
ITestResult testResult,
int failureCount)
An exception was thrown by the test, determine if this method should be marked as a failure or
as failure_but_within_successPercentage
|
private void |
TestInvoker.handleInvocationResults(ITestNGMethod testMethod,
ITestResult testResult,
ITestInvoker.FailureContext failure,
TestInvoker.StatusHolder holder,
boolean wasResultUnaltered) |
protected static void |
MethodInvocationHelper.invokeConfigurable(java.lang.Object instance,
java.lang.Object[] parameters,
IConfigurable configurableInstance,
java.lang.reflect.Method thisMethod,
ITestResult testResult) |
private void |
ConfigInvoker.invokeConfigurationMethod(java.lang.Object targetInstance,
ITestNGMethod tm,
java.lang.Object[] params,
ITestResult testResult)
Effectively invokes a configuration method on all passed in instances.
|
protected static void |
MethodInvocationHelper.invokeHookable(java.lang.Object testInstance,
java.lang.Object[] parameters,
IHookable hookable,
java.lang.reflect.Method thisMethod,
ITestResult testResult) |
void |
TestInvoker.invokeListenersForSkippedTestResult(ITestResult r,
IInvokedMethod invokedMethod) |
void |
ITestInvoker.invokeListenersForSkippedTestResult(ITestResult r,
IInvokedMethod invokedMethod) |
protected static void |
MethodInvocationHelper.invokeMethodConsideringTimeout(ITestNGMethod tm,
ConstructorOrMethod method,
java.lang.Object targetInstance,
java.lang.Object[] params,
ITestResult testResult) |
protected static void |
MethodInvocationHelper.invokeWithTimeout(ITestNGMethod tm,
java.lang.Object instance,
java.lang.Object[] parameterValues,
ITestResult testResult)
Invokes a method on a separate thread in order to allow us to timeout the invocation.
|
protected static void |
MethodInvocationHelper.invokeWithTimeout(ITestNGMethod tm,
java.lang.Object instance,
java.lang.Object[] parameterValues,
ITestResult testResult,
IHookable hookable) |
private static void |
MethodInvocationHelper.invokeWithTimeoutWithNewExecutor(ITestNGMethod tm,
java.lang.Object instance,
java.lang.Object[] parameterValues,
ITestResult testResult,
IHookable hookable) |
private static void |
MethodInvocationHelper.invokeWithTimeoutWithNoExecutor(ITestNGMethod tm,
java.lang.Object instance,
java.lang.Object[] parameterValues,
ITestResult testResult,
IHookable hookable) |
private static boolean |
TestResult.isGlobalFailure(ITestResult result) |
private boolean |
TestResult.isRelated(ITestResult result) |
void |
ExitCodeListener.onTestFailedButWithinSuccessPercentage(ITestResult result) |
void |
ExitCodeListener.onTestFailure(ITestResult result) |
void |
ExitCodeListener.onTestSkipped(ITestResult result) |
void |
ExitCodeListener.onTestStart(ITestResult result) |
void |
ExitCodeListener.onTestSuccess(ITestResult result) |
void |
ResultMap.removeResult(ITestResult r) |
private void |
ConfigInvoker.runConfigurationListeners(ITestResult tr,
boolean before) |
protected void |
BaseInvoker.runInvokedMethodListeners(InvokedMethodListenerMethod listenerMethod,
IInvokedMethod invokedMethod,
ITestResult testResult) |
(package private) static void |
TestListenerHelper.runPostConfigurationListeners(ITestResult tr,
java.util.List<IConfigurationListener> listeners) |
(package private) static void |
TestListenerHelper.runPreConfigurationListeners(ITestResult tr,
java.util.List<IConfigurationListener> listeners) |
static void |
TestListenerHelper.runTestListeners(ITestResult tr,
java.util.List<ITestListener> listeners)
Iterates through a bunch of listeners and invokes them.
|
void |
TestInvoker.runTestResultListener(ITestResult tr) |
void |
ITestInvoker.runTestResultListener(ITestResult tr) |
private static boolean |
ExceptionUtils.sameInstance(ITestResult configResult,
java.lang.Object instance) |
private static void |
TestInvoker.setTestStatus(ITestResult result,
int status) |
private void |
ConfigInvoker.throwConfigurationFailure(ITestResult testResult,
java.lang.Throwable ex) |
ConfigMethodArguments.Builder |
ConfigMethodArguments.Builder.withResult(ITestResult testMethodResult) |
Modifier and Type | Method and Description |
---|---|
private java.util.Set<ITestResult> |
TestInvoker.keepSameInstances(ITestNGMethod method,
java.util.Set<ITestResult> results) |
ITestInvoker.FailureContext |
TestInvoker.retryFailed(TestMethodArguments arguments,
java.util.List<ITestResult> result,
int failureCount,
ITestContext testContext) |
ITestInvoker.FailureContext |
ITestInvoker.retryFailed(TestMethodArguments arguments,
java.util.List<ITestResult> result,
int failureCount,
ITestContext testContext) |
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) |
InvokedMethod(java.lang.Object instance,
ITestNGMethod method,
long date,
ITestResult testResult) |
InvokeMethodRunnable(ITestNGMethod thisMethod,
java.lang.Object instance,
java.lang.Object[] parameters,
IHookable hookable,
ITestResult testResult) |
MethodParameters(java.util.Map<java.lang.String,java.lang.String> params,
java.util.Map<java.lang.String,java.lang.String> methodParams,
java.lang.Object[] pv,
java.lang.reflect.Method m,
ITestContext ctx,
ITestResult tr) |
ParameterBag(ITestResult errorResult) |
Modifier and Type | Method and Description |
---|---|
boolean |
DisabledRetryAnalyzer.retry(ITestResult result) |
Modifier and Type | Field and Description |
---|---|
private ITestResult |
InvokedMethodListenerInvoker.m_testResult |
Modifier and Type | Method and Description |
---|---|
void |
InvokedMethodListenerInvoker.InvokeBeforeInvocationWithoutContextStrategy.callMethod(IInvokedMethodListener listener,
IInvokedMethod invokedMethod,
ITestResult testResult,
ITestContext testContext) |
void |
InvokedMethodListenerInvoker.InvokeBeforeInvocationWithContextStrategy.callMethod(IInvokedMethodListener listener,
IInvokedMethod invokedMethod,
ITestResult testResult,
ITestContext testContext) |
void |
InvokedMethodListenerInvoker.InvokeAfterInvocationWithoutContextStrategy.callMethod(IInvokedMethodListener listener,
IInvokedMethod invokedMethod,
ITestResult testResult,
ITestContext testContext) |
void |
InvokedMethodListenerInvoker.InvokeAfterInvocationWithContextStrategy.callMethod(IInvokedMethodListener listener,
IInvokedMethod invokedMethod,
ITestResult testResult,
ITestContext testContext) |
void |
InvokedMethodListenerInvoker.InvocationStrategy.callMethod(LISTENER_TYPE listener,
IInvokedMethod invokedMethod,
ITestResult testResult,
ITestContext testContext) |
Constructor and Description |
---|
InvokedMethodListenerInvoker(InvokedMethodListenerMethod listenerMethod,
ITestResult testResult,
ITestContext testContext)
Creates a new invoker instance which can be used to call the specified
listenerMethod
on any number of IInvokedMethodListener s. |
Modifier and Type | Field and Description |
---|---|
private ITestResult |
MethodMatcherContext.testResult |
Modifier and Type | Method and Description |
---|---|
ITestResult |
MethodMatcherContext.getTestResult() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object[] |
ReflectionRecipes.inject(Parameter[] parameters,
java.util.Set<InjectableParameter> filters,
java.lang.Object[] args,
java.lang.reflect.Constructor constructor,
ITestContext context,
ITestResult testResult)
Injects appropriate arguments.
|
static java.lang.Object[] |
ReflectionRecipes.inject(Parameter[] parameters,
java.util.Set<InjectableParameter> filters,
java.lang.Object[] args,
java.lang.reflect.Method injectionMethod,
ITestContext context,
ITestResult testResult)
Injects appropriate arguments.
|
private static java.lang.Object[] |
ReflectionRecipes.nativelyInject(Parameter[] parameters,
java.util.Set<InjectableParameter> filters,
java.lang.Object[] args,
java.lang.Object injectionMethod,
ITestContext context,
ITestResult testResult) |
Constructor and Description |
---|
MethodMatcherContext(java.lang.reflect.Method method,
java.lang.Object[] arguments,
ITestContext testContext,
ITestResult testResult)
Constructs a context for MethodMatchers.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<org.junit.runner.Description,ITestResult> |
JUnit4TestRunner.m_findedMethods |
Modifier and Type | Method and Description |
---|---|
private ITestResult |
JUnit4TestRunner.createTestResult(org.junit.runner.Description test) |
Modifier and Type | Method and Description |
---|---|
private void |
JUnit4TestRunner.RL.runAfterInvocationListeners(ITestResult tr) |
private void |
JUnit4TestRunner.RL.validate(ITestResult tr,
org.junit.runner.Description description) |
Modifier and Type | Field and Description |
---|---|
private static java.util.Comparator<ITestResult> |
TestHTMLReporter.CONFIGURATION_COMPARATOR |
private java.util.Queue<ITestResult> |
JUnitXMLReporter.m_allTests |
private java.util.Queue<ITestResult> |
JUnitXMLReporter.m_configIssues |
private static java.util.Comparator<ITestResult> |
TestHTMLReporter.NAME_COMPARATOR |
protected static java.util.Comparator<ITestResult> |
EmailableReporter2.TestResult.RESULT_COMPARATOR
Orders test results by class name and then by method name (in lexicographic order).
|
private java.util.List<ITestResult> |
EmailableReporter2.MethodResult.results |
Modifier and Type | Method and Description |
---|---|
private java.util.Map<java.lang.String,java.util.List<ITestResult>> |
XMLSuiteResultWriter.buildTestClassGroups(java.util.Set<ITestResult> testResults) |
java.util.List<ITestResult> |
EmailableReporter2.MethodResult.getResults() |
private static java.util.Set<ITestResult> |
EmailableReporter2.TestResult.pruneRetried(java.util.Set<ITestResult> results) |
private static java.util.Set<ITestResult> |
EmailableReporter2.TestResult.pruneSkipped(java.util.Set<ITestResult> results) |
private static java.util.Collection<ITestResult> |
JUnitReportReporter.sort(java.util.Set<ITestResult> results) |
Modifier and Type | Method and Description |
---|---|
void |
XMLSuiteResultWriter.addTestMethodParams(XMLStringBuffer xmlBuffer,
ITestResult testResult) |
private void |
XMLSuiteResultWriter.addTestResult(XMLStringBuffer xmlBuffer,
ITestResult testResult) |
private void |
XMLSuiteResultWriter.addTestResultAttributes(XMLStringBuffer xmlBuffer,
ITestResult testResult) |
private void |
XMLSuiteResultWriter.addTestResultException(XMLStringBuffer xmlBuffer,
ITestResult testResult) |
private void |
XMLSuiteResultWriter.addTestResultOutput(XMLStringBuffer xmlBuffer,
ITestResult testResult) |
void |
VerboseReporter.beforeConfiguration(ITestResult tr) |
void |
ExitCodeListener.beforeConfiguration(ITestResult tr) |
void |
JUnitXMLReporter.beforeConfiguration(ITestResult tr) |
private XMLReporterConfig.StackTraceLevels |
XMLSuiteResultWriter.calculateStackTraceLevels(ITestResult testResult) |
int |
TestHTMLReporter.NameComparator.compare(ITestResult o1,
ITestResult o2) |
int |
TestHTMLReporter.ConfigurationComparator.compare(ITestResult o1,
ITestResult o2) |
private void |
JUnitXMLReporter.createElement(XMLStringBuffer doc,
ITestResult tr) |
private void |
JUnitXMLReporter.createFailureElement(XMLStringBuffer doc,
ITestResult tr) |
private JUnitReportReporter.TestTag |
JUnitReportReporter.createTestTagFor(ITestResult tr,
java.lang.Class<?> cls) |
private void |
EmailableReporter.generateForResult(ITestResult ans) |
private long |
JUnitReportReporter.getNextConfiguration(ListMultiMap<java.lang.Object,ITestResult> configurations,
ITestResult tr)
Add the time of the configuration method to this test method.
|
protected java.lang.String |
JUnitReportReporter.getTestName(ITestResult tr) |
private java.util.Properties |
XMLSuiteResultWriter.getTestResultAttributes(ITestResult testResult) |
private void |
TextReporter.logResult(java.lang.String status,
ITestResult tr,
java.lang.String stackTrace) |
private void |
VerboseReporter.logTestResult(VerboseReporter.Status st,
ITestResult itr,
boolean isConfMethod)
Log meaningful message for passed in arguments.
|
void |
VerboseReporter.onConfigurationFailure(ITestResult tr) |
void |
ExitCodeListener.onConfigurationFailure(ITestResult itr) |
void |
JUnitXMLReporter.onConfigurationFailure(ITestResult itr) |
void |
VerboseReporter.onConfigurationSkip(ITestResult tr) |
void |
ExitCodeListener.onConfigurationSkip(ITestResult itr) |
void |
JUnitXMLReporter.onConfigurationSkip(ITestResult itr) |
void |
VerboseReporter.onConfigurationSuccess(ITestResult tr) |
void |
ExitCodeListener.onConfigurationSuccess(ITestResult itr) |
void |
JUnitXMLReporter.onConfigurationSuccess(ITestResult itr) |
void |
VerboseReporter.onTestFailedButWithinSuccessPercentage(ITestResult tr) |
void |
ExitCodeListener.onTestFailedButWithinSuccessPercentage(ITestResult result) |
void |
JUnitXMLReporter.onTestFailedButWithinSuccessPercentage(ITestResult tr) |
void |
DotTestListener.onTestFailure(ITestResult tr) |
void |
VerboseReporter.onTestFailure(ITestResult tr) |
void |
ExitCodeListener.onTestFailure(ITestResult result) |
void |
JUnitXMLReporter.onTestFailure(ITestResult tr)
Invoked each time a test fails.
|
void |
DotTestListener.onTestSkipped(ITestResult tr) |
void |
VerboseReporter.onTestSkipped(ITestResult tr) |
void |
ExitCodeListener.onTestSkipped(ITestResult result) |
void |
JUnitXMLReporter.onTestSkipped(ITestResult tr)
Invoked each time a test is skipped.
|
void |
VerboseReporter.onTestStart(ITestResult tr) |
void |
ExitCodeListener.onTestStart(ITestResult result) |
void |
JUnitXMLReporter.onTestStart(ITestResult result) |
void |
DotTestListener.onTestSuccess(ITestResult tr) |
void |
VerboseReporter.onTestSuccess(ITestResult tr) |
void |
ExitCodeListener.onTestSuccess(ITestResult result) |
void |
JUnitXMLReporter.onTestSuccess(ITestResult tr)
Invoked each time a test succeeds.
|
private void |
EmailableReporter2.writeScenario(int scenarioIndex,
java.lang.String label,
ITestResult result)
Writes the details for an individual test scenario.
|
Modifier and Type | Method and Description |
---|---|
private void |
XMLSuiteResultWriter.addAllTestResults(java.util.Set<ITestResult> testResults,
IResultMap resultMap) |
private void |
JUnitReportReporter.addResults(java.util.Set<ITestResult> allResults,
java.util.Map<java.lang.Class<?>,java.util.Set<ITestResult>> out) |
private void |
JUnitReportReporter.addResults(java.util.Set<ITestResult> allResults,
java.util.Map<java.lang.Class<?>,java.util.Set<ITestResult>> out) |
private void |
XMLSuiteResultWriter.addTestResults(XMLStringBuffer xmlBuffer,
java.util.Set<ITestResult> testResults) |
private java.util.Map<java.lang.String,java.util.List<ITestResult>> |
XMLSuiteResultWriter.buildTestClassGroups(java.util.Set<ITestResult> testResults) |
private void |
JUnitXMLReporter.createElementFromTestResults(XMLStringBuffer document,
java.util.Collection<ITestResult> results) |
static void |
TestHTMLReporter.generateLog(ITestContext testContext,
java.lang.String host,
java.lang.String outputDirectory,
java.util.Collection<ITestResult> failedConfs,
java.util.Collection<ITestResult> skippedConfs,
java.util.Collection<ITestResult> passedTests,
java.util.Collection<ITestResult> failedTests,
java.util.Collection<ITestResult> skippedTests,
java.util.Collection<ITestResult> percentageTests) |
static void |
TestHTMLReporter.generateLog(ITestContext testContext,
java.lang.String host,
java.lang.String outputDirectory,
java.util.Collection<ITestResult> failedConfs,
java.util.Collection<ITestResult> skippedConfs,
java.util.Collection<ITestResult> passedTests,
java.util.Collection<ITestResult> failedTests,
java.util.Collection<ITestResult> skippedTests,
java.util.Collection<ITestResult> percentageTests) |
static void |
TestHTMLReporter.generateLog(ITestContext testContext,
java.lang.String host,
java.lang.String outputDirectory,
java.util.Collection<ITestResult> failedConfs,
java.util.Collection<ITestResult> skippedConfs,
java.util.Collection<ITestResult> passedTests,
java.util.Collection<ITestResult> failedTests,
java.util.Collection<ITestResult> skippedTests,
java.util.Collection<ITestResult> percentageTests) |
static void |
TestHTMLReporter.generateLog(ITestContext testContext,
java.lang.String host,
java.lang.String outputDirectory,
java.util.Collection<ITestResult> failedConfs,
java.util.Collection<ITestResult> skippedConfs,
java.util.Collection<ITestResult> passedTests,
java.util.Collection<ITestResult> failedTests,
java.util.Collection<ITestResult> skippedTests,
java.util.Collection<ITestResult> percentageTests) |
static void |
TestHTMLReporter.generateLog(ITestContext testContext,
java.lang.String host,
java.lang.String outputDirectory,
java.util.Collection<ITestResult> failedConfs,
java.util.Collection<ITestResult> skippedConfs,
java.util.Collection<ITestResult> passedTests,
java.util.Collection<ITestResult> failedTests,
java.util.Collection<ITestResult> skippedTests,
java.util.Collection<ITestResult> percentageTests) |
static void |
TestHTMLReporter.generateLog(ITestContext testContext,
java.lang.String host,
java.lang.String outputDirectory,
java.util.Collection<ITestResult> failedConfs,
java.util.Collection<ITestResult> skippedConfs,
java.util.Collection<ITestResult> passedTests,
java.util.Collection<ITestResult> failedTests,
java.util.Collection<ITestResult> skippedTests,
java.util.Collection<ITestResult> percentageTests) |
static void |
TestHTMLReporter.generateTable(java.io.PrintWriter pw,
java.lang.String title,
java.util.Collection<ITestResult> tests,
java.lang.String cssClass,
java.util.Comparator<ITestResult> comparator) |
static void |
TestHTMLReporter.generateTable(java.io.PrintWriter pw,
java.lang.String title,
java.util.Collection<ITestResult> tests,
java.lang.String cssClass,
java.util.Comparator<ITestResult> comparator) |
private void |
FailedReporter.generateXmlTest(XmlTest xmlTest,
ITestContext context,
java.util.Set<ITestResult> failedTests,
java.util.Set<ITestResult> skippedTests) |
private void |
FailedReporter.generateXmlTest(XmlTest xmlTest,
ITestContext context,
java.util.Set<ITestResult> failedTests,
java.util.Set<ITestResult> skippedTests) |
private long |
JUnitReportReporter.getNextConfiguration(ListMultiMap<java.lang.Object,ITestResult> configurations,
ITestResult tr)
Add the time of the configuration method to this test method.
|
protected java.util.List<EmailableReporter2.ClassResult> |
EmailableReporter2.TestResult.groupResults(java.util.Set<ITestResult> results)
Groups test results by method and then by class.
|
private void |
TextReporter.logExceptions(java.lang.String status,
java.util.List<ITestResult> results) |
private static java.util.Set<ITestResult> |
EmailableReporter2.TestResult.pruneRetried(java.util.Set<ITestResult> results) |
private static java.util.Set<ITestResult> |
EmailableReporter2.TestResult.pruneSkipped(java.util.Set<ITestResult> results) |
private ITestNGMethod[] |
VerboseReporter.resultsToMethods(java.util.List<ITestResult> results) |
private static java.util.List<ITestNGMethod> |
TextReporter.resultsToMethods(java.util.List<ITestResult> results) |
private static java.util.Collection<ITestResult> |
JUnitReportReporter.sort(java.util.Set<ITestResult> results) |
Constructor and Description |
---|
MethodResult(java.util.List<ITestResult> results) |
Modifier and Type | Field and Description |
---|---|
private java.util.function.Predicate<ITestResult> |
NavigatorPanel.ResultsByStatus.condition |
private java.util.List<ITestResult> |
Model.m_allFailedResults |
private ListMultiMap<ISuite,ITestResult> |
Model.m_model |
private ListMultiMap<java.lang.Class<?>,ITestResult> |
ResultsByClass.m_results |
private java.util.Map<ITestResult,java.lang.String> |
Model.m_testResultMap |
static java.util.Comparator<ITestResult> |
ResultsByClass.METHOD_NAME_COMPARATOR |
Modifier and Type | Method and Description |
---|---|
java.util.List<ITestResult> |
Model.getAllFailedResults() |
java.util.List<ITestResult> |
Model.getAllTestResults(ISuite suite) |
java.util.List<ITestResult> |
Model.getAllTestResults(ISuite suite,
boolean testsOnly) |
private java.util.List<ITestResult> |
NavigatorPanel.getMethodsByStatus(ISuite suite,
int status,
java.util.function.Predicate<ITestResult> condition) |
java.util.List<ITestResult> |
NavigatorPanel.IResultProvider.getResults() |
java.util.List<ITestResult> |
NavigatorPanel.ResultsByStatus.getResults() |
java.util.List<ITestResult> |
ResultsByClass.getResults(java.lang.Class<?> c) |
java.util.List<ITestResult> |
Model.getTestResults(ISuite suite) |
Modifier and Type | Method and Description |
---|---|
void |
ResultsByClass.addResult(java.lang.Class<?> c,
ITestResult tr) |
private void |
SuitePanel.generateMethod(ITestResult tr,
XMLStringBuffer xsb) |
java.lang.String |
Model.getTag(ITestResult tr) |
static java.lang.String |
Model.getTestResultName(ITestResult tr) |
private static long |
TimesPanel.time(ITestResult o1) |
private void |
Model.updateGroups(ISuite suite,
ITestResult tr) |
Modifier and Type | Method and Description |
---|---|
private void |
SuitePanel.generateClassPanel(java.lang.Class c,
java.util.List<ITestResult> results,
XMLStringBuffer xsb,
java.lang.String status,
ISuite suite) |
private java.util.List<ITestResult> |
NavigatorPanel.getMethodsByStatus(ISuite suite,
int status,
java.util.function.Predicate<ITestResult> condition) |
Constructor and Description |
---|
ResultsByStatus(ISuite suite,
java.lang.String type,
int m_status,
java.util.function.Predicate<ITestResult> condition) |
Modifier and Type | Method and Description |
---|---|
boolean |
RetryAnalyzerCount.retry(ITestResult result)
Retries the test if count is not 0.
|
abstract boolean |
RetryAnalyzerCount.retryMethod(ITestResult result)
The method implemented by the class that test if the test must be retried or not.
|