| Package | Description |
|---|---|
| org.testng | |
| org.testng.internal | |
| org.testng.internal.annotations | |
| org.testng.internal.invokers | |
| org.testng.internal.reflect | |
| org.testng.reporters | |
| org.testng.reporters.jq | |
| org.testng.util |
| Modifier and Type | Method and Description |
|---|---|
static ITestResult |
Reporter.getCurrentTestResult() |
ITestResult |
IInvokedMethod.getTestResult() |
| Modifier and Type | Method and Description |
|---|---|
Set<ITestResult> |
IResultMap.getAllResults() |
List<ITestResult> |
TestListenerAdapter.getConfigurationFailures() |
List<ITestResult> |
TestListenerAdapter.getConfigurationSkips() |
List<ITestResult> |
TestListenerAdapter.getFailedButWithinSuccessPercentageTests() |
List<ITestResult> |
TestListenerAdapter.getFailedTests() |
Set<ITestResult> |
TestRunner.getFailedTests(ITestNGMethod tm) |
List<ITestResult> |
TestListenerAdapter.getPassedTests() |
Set<ITestResult> |
TestRunner.getPassedTests(ITestNGMethod tm) |
Set<ITestResult> |
IResultMap.getResults(ITestNGMethod method) |
List<ITestResult> |
TestListenerAdapter.getSkippedTests() |
Set<ITestResult> |
TestRunner.getSkippedTests(ITestNGMethod tm) |
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) |
void |
TestRunner.addSkippedTest(ITestNGMethod tm,
ITestResult tr) |
default void |
IInvokedMethodListener.afterInvocation(IInvokedMethod method,
ITestResult testResult) |
void |
SuiteRunner.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.
|
default void |
IConfigurationListener.beforeConfiguration(ITestResult tr)
Invoked before a configuration method is invoked.
|
void |
TestListenerAdapter.beforeConfiguration(ITestResult tr) |
default void |
IConfigurationListener.beforeConfiguration(ITestResult tr,
ITestNGMethod tm)
Invoked before a configuration method is invoked.
|
default void |
IInvokedMethodListener.beforeInvocation(IInvokedMethod method,
ITestResult testResult) |
void |
SuiteRunner.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 List<String> |
Reporter.getOutput(ITestResult tr) |
IRetryAnalyzer |
ITestNGMethod.getRetryAnalyzer(ITestResult result) |
default void |
IConfigurationListener.onConfigurationFailure(ITestResult tr)
Invoked whenever a configuration method failed.
|
void |
TestListenerAdapter.onConfigurationFailure(ITestResult itr) |
default void |
IConfigurationListener.onConfigurationFailure(ITestResult tr,
ITestNGMethod tm)
Invoked whenever a configuration method failed.
|
default void |
IConfigurationListener.onConfigurationSkip(ITestResult tr)
Invoked whenever a configuration method was skipped.
|
void |
TestListenerAdapter.onConfigurationSkip(ITestResult itr) |
default void |
IConfigurationListener.onConfigurationSkip(ITestResult tr,
ITestNGMethod tm)
Invoked whenever a configuration method was skipped.
|
default void |
IConfigurationListener.onConfigurationSuccess(ITestResult tr)
Invoked whenever a configuration method succeeded.
|
void |
TestListenerAdapter.onConfigurationSuccess(ITestResult itr) |
default void |
IConfigurationListener.onConfigurationSuccess(ITestResult tr,
ITestNGMethod tm)
Invoked whenever a configuration method succeeded.
|
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(List<ITestResult> failedButWithinSuccessPercentageTests) |
void |
TestListenerAdapter.setFailedTests(List<ITestResult> failedTests) |
void |
TestListenerAdapter.setPassedTests(List<ITestResult> passedTests) |
void |
TestListenerAdapter.setSkippedTests(List<ITestResult> skippedTests) |
| Modifier and Type | Class and Description |
|---|---|
class |
TestResult
This class represents the result of a test.
|
| Modifier and Type | Method and Description |
|---|---|
Set<ITestResult> |
ResultMap.getAllResults() |
Set<ITestResult> |
ITestResultNotifier.getFailedTests(ITestNGMethod tm) |
Set<ITestResult> |
ITestResultNotifier.getPassedTests(ITestNGMethod tm) |
Set<ITestResult> |
ResultMap.getResults(ITestNGMethod method) |
Set<ITestResult> |
ITestResultNotifier.getSkippedTests(ITestNGMethod tm) |
| 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) |
void |
ITestResultNotifier.addSkippedTest(ITestNGMethod tm,
ITestResult tr) |
int |
TestResult.compareTo(ITestResult comparison) |
static void |
TestResult.copyAttributes(ITestResult source,
ITestResult target) |
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
. |
IRetryAnalyzer |
LiteWeightTestNGMethod.getRetryAnalyzer(ITestResult result) |
IRetryAnalyzer |
WrappedTestNGMethod.getRetryAnalyzer(ITestResult result) |
IRetryAnalyzer |
ClonedMethod.getRetryAnalyzer(ITestResult result) |
IRetryAnalyzer |
BaseTestMethod.getRetryAnalyzer(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) |
static void |
TestListenerHelper.runPostConfigurationListeners(ITestResult tr,
ITestNGMethod tm,
List<IConfigurationListener> listeners) |
static void |
TestListenerHelper.runPreConfigurationListeners(ITestResult tr,
ITestNGMethod tm,
List<IConfigurationListener> listeners) |
static void |
TestListenerHelper.runTestListeners(ITestResult tr,
List<ITestListener> listeners)
Iterates through a bunch of listeners and invokes them.
|
| Constructor and Description |
|---|
MethodParameters(Map<String,String> params,
Map<String,String> methodParams,
Object[] pv,
Method m,
ITestContext ctx,
ITestResult tr) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
DisabledRetryAnalyzer.retry(ITestResult result) |
| Modifier and Type | Method and Description |
|---|---|
ITestResult |
ConfigMethodArguments.getTestMethodResult() |
ITestResult |
InvokedMethod.getTestResult() |
ITestResult |
ITestInvoker.invokeTestMethod(TestMethodArguments arguments,
XmlSuite suite,
ITestInvoker.FailureContext failureContext) |
default ITestResult |
ITestInvoker.registerSkippedTestResult(ITestNGMethod testMethod,
long start,
Throwable throwable) |
ITestResult |
ITestInvoker.registerSkippedTestResult(ITestNGMethod testMethod,
long start,
Throwable throwable,
ITestResult source) |
| Modifier and Type | Method and Description |
|---|---|
List<ITestResult> |
TestMethodWithDataProviderMethodWorker.call() |
List<ITestResult> |
TestMethodWorker.getTestResults() |
List<ITestResult> |
ITestInvoker.invokeTestMethods(ITestNGMethod testMethod,
ConfigurationGroupMethods groupMethods,
Object instance,
ITestContext context) |
List<ITestResult> |
MethodRunner.runInParallel(TestMethodArguments arguments,
ITestInvoker testInvoker,
ITestContext context,
AtomicInteger invocationCount,
ITestInvoker.FailureContext failure,
Iterator<Object[]> allParamValues,
boolean skipFailedInvocationCounts) |
List<ITestResult> |
IMethodRunner.runInParallel(TestMethodArguments arguments,
ITestInvoker testInvoker,
ITestContext context,
AtomicInteger invocationCount,
ITestInvoker.FailureContext failure,
Iterator<Object[]> allParameterValues,
boolean skipFailedInvocationCounts) |
List<ITestResult> |
MethodRunner.runInSequence(TestMethodArguments arguments,
ITestInvoker testInvoker,
ITestContext context,
AtomicInteger invocationCount,
ITestInvoker.FailureContext failure,
Iterator<Object[]> allParamValues,
boolean skipFailedInvocationCounts) |
List<ITestResult> |
IMethodRunner.runInSequence(TestMethodArguments arguments,
ITestInvoker testInvoker,
ITestContext context,
AtomicInteger invocationCount,
ITestInvoker.FailureContext failure,
Iterator<Object[]> allParameterValues,
boolean skipFailedInvocationCounts) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
MethodInvocationHelper.invokeConfigurable(Object instance,
Object[] parameters,
IConfigurable configurableInstance,
Method thisMethod,
ITestResult testResult) |
protected static void |
MethodInvocationHelper.invokeHookable(Object testInstance,
Object[] parameters,
IHookable hookable,
Method thisMethod,
ITestResult testResult) |
void |
ITestInvoker.invokeListenersForSkippedTestResult(ITestResult r,
IInvokedMethod invokedMethod) |
protected static void |
MethodInvocationHelper.invokeMethodConsideringTimeout(ITestNGMethod tm,
ConstructorOrMethod method,
Object targetInstance,
Object[] params,
ITestResult testResult) |
protected static void |
MethodInvocationHelper.invokeWithTimeout(ITestNGMethod tm,
Object instance,
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,
Object instance,
Object[] parameterValues,
ITestResult testResult,
IHookable hookable) |
ITestResult |
ITestInvoker.registerSkippedTestResult(ITestNGMethod testMethod,
long start,
Throwable throwable,
ITestResult source) |
void |
ITestInvoker.runTestResultListener(ITestResult tr) |
ConfigMethodArguments.Builder |
ConfigMethodArguments.Builder.withResult(ITestResult testMethodResult) |
| Modifier and Type | Method and Description |
|---|---|
ITestInvoker.FailureContext |
ITestInvoker.retryFailed(TestMethodArguments arguments,
List<ITestResult> result,
int failureCount,
ITestContext testContext) |
| Constructor and Description |
|---|
InvokedMethod(long date,
ITestResult testResult) |
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 IInvokedMethodListeners. |
InvokeMethodRunnable(ITestNGMethod thisMethod,
Object instance,
Object[] parameters,
IHookable hookable,
ITestResult testResult) |
| Modifier and Type | Method and Description |
|---|---|
ITestResult |
MethodMatcherContext.getTestResult() |
| Modifier and Type | Method and Description |
|---|---|
static Object[] |
ReflectionRecipes.inject(Parameter[] parameters,
Set<InjectableParameter> filters,
Object[] args,
Constructor<?> constructor,
ITestContext context,
ITestResult testResult)
Injects appropriate arguments.
|
static Object[] |
ReflectionRecipes.inject(Parameter[] parameters,
Set<InjectableParameter> filters,
Object[] args,
Method injectionMethod,
ITestContext context,
ITestResult testResult)
Injects appropriate arguments.
|
| Constructor and Description |
|---|
MethodMatcherContext(Method method,
Object[] arguments,
ITestContext testContext,
ITestResult testResult)
Constructs a context for MethodMatchers.
|
| Modifier and Type | Field and Description |
|---|---|
protected static Comparator<ITestResult> |
EmailableReporter2.TestResult.RESULT_COMPARATOR
Orders test results by class name and then by method name (in lexicographic order).
|
| Modifier and Type | Method and Description |
|---|---|
List<ITestResult> |
EmailableReporter2.MethodResult.getResults() |
| Modifier and Type | Method and Description |
|---|---|
void |
XMLReporter.addCustomTagsFor(XMLStringBuffer xmlBuffer,
ITestResult testResult) |
void |
ICustomizeXmlReport.addCustomTagsFor(XMLStringBuffer xmlBuffer,
ITestResult testResult) |
void |
XMLSuiteResultWriter.addTestMethodParams(XMLStringBuffer xmlBuffer,
ITestResult testResult) |
void |
VerboseReporter.beforeConfiguration(ITestResult tr) |
void |
JUnitXMLReporter.beforeConfiguration(ITestResult tr) |
void |
ExitCodeListener.beforeConfiguration(ITestResult tr) |
protected String |
JUnitReportReporter.getTestName(ITestResult tr) |
void |
VerboseReporter.onConfigurationFailure(ITestResult tr) |
void |
JUnitXMLReporter.onConfigurationFailure(ITestResult itr) |
void |
ExitCodeListener.onConfigurationFailure(ITestResult itr) |
void |
VerboseReporter.onConfigurationSkip(ITestResult tr) |
void |
JUnitXMLReporter.onConfigurationSkip(ITestResult itr) |
void |
ExitCodeListener.onConfigurationSkip(ITestResult itr) |
void |
VerboseReporter.onConfigurationSuccess(ITestResult tr) |
void |
JUnitXMLReporter.onConfigurationSuccess(ITestResult itr) |
void |
ExitCodeListener.onConfigurationSuccess(ITestResult itr) |
void |
VerboseReporter.onTestFailedButWithinSuccessPercentage(ITestResult tr) |
void |
JUnitXMLReporter.onTestFailedButWithinSuccessPercentage(ITestResult tr) |
void |
ExitCodeListener.onTestFailedButWithinSuccessPercentage(ITestResult result) |
void |
VerboseReporter.onTestFailure(ITestResult tr) |
void |
JUnitXMLReporter.onTestFailure(ITestResult tr)
Invoked each time a test fails.
|
void |
ExitCodeListener.onTestFailure(ITestResult result) |
void |
DotTestListener.onTestFailure(ITestResult tr) |
void |
VerboseReporter.onTestSkipped(ITestResult tr) |
void |
JUnitXMLReporter.onTestSkipped(ITestResult tr)
Invoked each time a test is skipped.
|
void |
ExitCodeListener.onTestSkipped(ITestResult result) |
void |
DotTestListener.onTestSkipped(ITestResult tr) |
void |
VerboseReporter.onTestStart(ITestResult tr) |
void |
JUnitXMLReporter.onTestStart(ITestResult result) |
void |
ExitCodeListener.onTestStart(ITestResult result) |
void |
VerboseReporter.onTestSuccess(ITestResult tr) |
void |
JUnitXMLReporter.onTestSuccess(ITestResult tr)
Invoked each time a test succeeds.
|
void |
ExitCodeListener.onTestSuccess(ITestResult result) |
void |
DotTestListener.onTestSuccess(ITestResult tr) |
| Modifier and Type | Method and Description |
|---|---|
static void |
TestHTMLReporter.generateLog(ITestContext testContext,
String host,
String outputDirectory,
Collection<ITestResult> failedConfs,
Collection<ITestResult> skippedConfs,
Collection<ITestResult> passedTests,
Collection<ITestResult> failedTests,
Collection<ITestResult> skippedTests,
Collection<ITestResult> percentageTests) |
static void |
TestHTMLReporter.generateLog(ITestContext testContext,
String host,
String outputDirectory,
Collection<ITestResult> failedConfs,
Collection<ITestResult> skippedConfs,
Collection<ITestResult> passedTests,
Collection<ITestResult> failedTests,
Collection<ITestResult> skippedTests,
Collection<ITestResult> percentageTests) |
static void |
TestHTMLReporter.generateLog(ITestContext testContext,
String host,
String outputDirectory,
Collection<ITestResult> failedConfs,
Collection<ITestResult> skippedConfs,
Collection<ITestResult> passedTests,
Collection<ITestResult> failedTests,
Collection<ITestResult> skippedTests,
Collection<ITestResult> percentageTests) |
static void |
TestHTMLReporter.generateLog(ITestContext testContext,
String host,
String outputDirectory,
Collection<ITestResult> failedConfs,
Collection<ITestResult> skippedConfs,
Collection<ITestResult> passedTests,
Collection<ITestResult> failedTests,
Collection<ITestResult> skippedTests,
Collection<ITestResult> percentageTests) |
static void |
TestHTMLReporter.generateLog(ITestContext testContext,
String host,
String outputDirectory,
Collection<ITestResult> failedConfs,
Collection<ITestResult> skippedConfs,
Collection<ITestResult> passedTests,
Collection<ITestResult> failedTests,
Collection<ITestResult> skippedTests,
Collection<ITestResult> percentageTests) |
static void |
TestHTMLReporter.generateLog(ITestContext testContext,
String host,
String outputDirectory,
Collection<ITestResult> failedConfs,
Collection<ITestResult> skippedConfs,
Collection<ITestResult> passedTests,
Collection<ITestResult> failedTests,
Collection<ITestResult> skippedTests,
Collection<ITestResult> percentageTests) |
static void |
TestHTMLReporter.generateTable(PrintWriter pw,
String title,
Collection<ITestResult> tests,
String cssClass,
Comparator<ITestResult> comparator) |
static void |
TestHTMLReporter.generateTable(PrintWriter pw,
String title,
Collection<ITestResult> tests,
String cssClass,
Comparator<ITestResult> comparator) |
protected List<EmailableReporter2.ClassResult> |
EmailableReporter2.TestResult.groupResults(Set<ITestResult> results)
Groups test results by method and then by class.
|
| Constructor and Description |
|---|
MethodResult(List<ITestResult> results) |
| Modifier and Type | Field and Description |
|---|---|
static Comparator<ITestResult> |
ResultsByClass.METHOD_NAME_COMPARATOR |
| Modifier and Type | Method and Description |
|---|---|
List<ITestResult> |
Model.getAllFailedResults() |
List<ITestResult> |
Model.getAllTestResults(ISuite suite) |
List<ITestResult> |
Model.getAllTestResults(ISuite suite,
boolean testsOnly) |
List<ITestResult> |
ResultsByClass.getResults(Class<?> c) |
List<ITestResult> |
Model.getTestResults(ISuite suite) |
| Modifier and Type | Method and Description |
|---|---|
void |
ResultsByClass.addResult(Class<?> c,
ITestResult tr) |
String |
Model.getTag(ITestResult tr) |
static String |
Model.getTestResultName(ITestResult tr) |
| 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.
|
Copyright © 2025. All rights reserved.