Uses of Interface
org.testng.ITestResult
-
Packages that use ITestResult 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 -
-
Uses of ITestResult in org.testng
Methods in org.testng that return ITestResult Modifier and Type Method Description static ITestResult
Reporter. getCurrentTestResult()
ITestResult
IInvokedMethod. getTestResult()
Methods in org.testng that return types with arguments of type ITestResult Modifier and Type Method 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()
Methods in org.testng with parameters of type ITestResult Modifier and Type Method 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
IResultMap. addResult(ITestResult result, ITestNGMethod method)
Deprecated.- This method stands deprecated as of 7.4.0void
TestRunner. addSkippedTest(ITestNGMethod tm, ITestResult tr)
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
SuiteRunner. afterInvocation(IInvokedMethod method, ITestResult testResult)
default void
IConfigurationListener. beforeConfiguration(ITestResult tr)
Invoked before a configuration method is invoked.default void
IConfigurationListener. beforeConfiguration(ITestResult tr, ITestNGMethod tm)
Invoked before a configuration method is invoked.void
TestListenerAdapter. beforeConfiguration(ITestResult tr)
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.void
SuiteRunner. beforeInvocation(IInvokedMethod method, ITestResult testResult)
static java.util.List<java.lang.String>
Reporter. getOutput(ITestResult tr)
IRetryAnalyzer
ITestNGMethod. getRetryAnalyzer(ITestResult result)
default void
IConfigurationListener. onConfigurationFailure(ITestResult tr)
Invoked whenever a configuration method failed.default void
IConfigurationListener. onConfigurationFailure(ITestResult tr, ITestNGMethod tm)
Invoked whenever a configuration method failed.void
TestListenerAdapter. onConfigurationFailure(ITestResult itr)
default void
IConfigurationListener. onConfigurationSkip(ITestResult tr)
Invoked whenever a configuration method was skipped.default void
IConfigurationListener. onConfigurationSkip(ITestResult tr, ITestNGMethod tm)
Invoked whenever a configuration method was skipped.void
TestListenerAdapter. onConfigurationSkip(ITestResult itr)
default void
IConfigurationListener. onConfigurationSuccess(ITestResult tr)
Invoked whenever a configuration method succeeded.default void
IConfigurationListener. onConfigurationSuccess(ITestResult tr, ITestNGMethod tm)
Invoked whenever a configuration method succeeded.void
TestListenerAdapter. 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)
Method parameters in org.testng with type arguments of type ITestResult Modifier and Type Method 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)
-
Uses of ITestResult in org.testng.internal
Classes in org.testng.internal that implement ITestResult Modifier and Type Class Description class
TestResult
This class represents the result of a test.Methods in org.testng.internal that return ITestResult Modifier and Type Method 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, java.lang.Throwable throwable)
ITestResult
ITestInvoker. registerSkippedTestResult(ITestNGMethod testMethod, long start, java.lang.Throwable throwable, ITestResult source)
Methods in org.testng.internal that return types with arguments of type ITestResult Modifier and Type Method 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.Set<ITestResult>
ResultMap. getResults(ITestNGMethod method)
java.util.Set<ITestResult>
ITestResultNotifier. getSkippedTests(ITestNGMethod tm)
java.util.List<ITestResult>
TestMethodWorker. getTestResults()
java.util.List<ITestResult>
ITestInvoker. invokeTestMethods(ITestNGMethod testMethod, ConfigurationGroupMethods groupMethods, java.lang.Object instance, ITestContext context)
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>
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)
Methods in org.testng.internal with parameters of type ITestResult Modifier and Type Method 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
ResultMap. addResult(ITestResult result, ITestNGMethod method)
void
ITestResultNotifier. addSkippedTest(ITestNGMethod tm, ITestResult tr)
int
TestResult. compareTo(ITestResult comparison)
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
.IRetryAnalyzer
BaseTestMethod. getRetryAnalyzer(ITestResult result)
IRetryAnalyzer
ClonedMethod. getRetryAnalyzer(ITestResult result)
IRetryAnalyzer
LiteWeightTestNGMethod. getRetryAnalyzer(ITestResult result)
IRetryAnalyzer
WrappedTestNGMethod. getRetryAnalyzer(ITestResult result)
protected static void
MethodInvocationHelper. invokeConfigurable(java.lang.Object instance, java.lang.Object[] parameters, IConfigurable configurableInstance, java.lang.reflect.Method thisMethod, ITestResult testResult)
protected static void
MethodInvocationHelper. invokeHookable(java.lang.Object testInstance, java.lang.Object[] parameters, IHookable hookable, java.lang.reflect.Method thisMethod, ITestResult testResult)
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)
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)
ITestResult
ITestInvoker. registerSkippedTestResult(ITestNGMethod testMethod, long start, java.lang.Throwable throwable, ITestResult source)
void
ResultMap. removeResult(ITestResult r)
static void
TestListenerHelper. runTestListeners(ITestResult tr, java.util.List<ITestListener> listeners)
Iterates through a bunch of listeners and invokes them.void
ITestInvoker. runTestResultListener(ITestResult tr)
ConfigMethodArguments.Builder
ConfigMethodArguments.Builder. withResult(ITestResult testMethodResult)
Method parameters in org.testng.internal with type arguments of type ITestResult Modifier and Type Method Description ITestInvoker.FailureContext
ITestInvoker. retryFailed(TestMethodArguments arguments, java.util.List<ITestResult> result, int failureCount, ITestContext testContext)
Constructors in org.testng.internal with parameters of type ITestResult Constructor Description InvokedMethod(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)
-
Uses of ITestResult in org.testng.internal.annotations
Methods in org.testng.internal.annotations with parameters of type ITestResult Modifier and Type Method Description boolean
DisabledRetryAnalyzer. retry(ITestResult result)
-
Uses of ITestResult in org.testng.internal.invokers
Constructors in org.testng.internal.invokers with parameters of type ITestResult Constructor Description InvokedMethodListenerInvoker(InvokedMethodListenerMethod listenerMethod, ITestResult testResult, ITestContext testContext)
Creates a new invoker instance which can be used to call the specifiedlistenerMethod
on any number ofIInvokedMethodListener
s. -
Uses of ITestResult in org.testng.internal.reflect
Methods in org.testng.internal.reflect that return ITestResult Modifier and Type Method Description ITestResult
MethodMatcherContext. getTestResult()
Methods in org.testng.internal.reflect with parameters of type ITestResult Modifier and Type Method 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.Constructors in org.testng.internal.reflect with parameters of type ITestResult Constructor Description MethodMatcherContext(java.lang.reflect.Method method, java.lang.Object[] arguments, ITestContext testContext, ITestResult testResult)
Constructs a context for MethodMatchers. -
Uses of ITestResult in org.testng.reporters
Fields in org.testng.reporters with type parameters of type ITestResult Modifier and Type Field Description protected static java.util.Comparator<ITestResult>
EmailableReporter2.TestResult. RESULT_COMPARATOR
Orders test results by class name and then by method name (in lexicographic order).Methods in org.testng.reporters that return types with arguments of type ITestResult Modifier and Type Method Description java.util.List<ITestResult>
EmailableReporter2.MethodResult. getResults()
Methods in org.testng.reporters with parameters of type ITestResult Modifier and Type Method Description void
ICustomizeXmlReport. addCustomTagsFor(XMLStringBuffer xmlBuffer, ITestResult testResult)
void
XMLReporter. addCustomTagsFor(XMLStringBuffer xmlBuffer, ITestResult testResult)
void
XMLSuiteResultWriter. addTestMethodParams(XMLStringBuffer xmlBuffer, ITestResult testResult)
void
ExitCodeListener. beforeConfiguration(ITestResult tr)
void
JUnitXMLReporter. beforeConfiguration(ITestResult tr)
void
VerboseReporter. beforeConfiguration(ITestResult tr)
protected java.lang.String
JUnitReportReporter. getTestName(ITestResult tr)
void
ExitCodeListener. onConfigurationFailure(ITestResult itr)
void
JUnitXMLReporter. onConfigurationFailure(ITestResult itr)
void
VerboseReporter. onConfigurationFailure(ITestResult tr)
void
ExitCodeListener. onConfigurationSkip(ITestResult itr)
void
JUnitXMLReporter. onConfigurationSkip(ITestResult itr)
void
VerboseReporter. onConfigurationSkip(ITestResult tr)
void
ExitCodeListener. onConfigurationSuccess(ITestResult itr)
void
JUnitXMLReporter. onConfigurationSuccess(ITestResult itr)
void
VerboseReporter. onConfigurationSuccess(ITestResult tr)
void
ExitCodeListener. onTestFailedButWithinSuccessPercentage(ITestResult result)
void
JUnitXMLReporter. onTestFailedButWithinSuccessPercentage(ITestResult tr)
void
VerboseReporter. onTestFailedButWithinSuccessPercentage(ITestResult tr)
void
DotTestListener. onTestFailure(ITestResult tr)
void
ExitCodeListener. onTestFailure(ITestResult result)
void
JUnitXMLReporter. onTestFailure(ITestResult tr)
Invoked each time a test fails.void
VerboseReporter. onTestFailure(ITestResult tr)
void
DotTestListener. onTestSkipped(ITestResult tr)
void
ExitCodeListener. onTestSkipped(ITestResult result)
void
JUnitXMLReporter. onTestSkipped(ITestResult tr)
Invoked each time a test is skipped.void
VerboseReporter. onTestSkipped(ITestResult tr)
void
ExitCodeListener. onTestStart(ITestResult result)
void
JUnitXMLReporter. onTestStart(ITestResult result)
void
VerboseReporter. onTestStart(ITestResult tr)
void
DotTestListener. onTestSuccess(ITestResult tr)
void
ExitCodeListener. onTestSuccess(ITestResult result)
void
JUnitXMLReporter. onTestSuccess(ITestResult tr)
Invoked each time a test succeeds.void
VerboseReporter. onTestSuccess(ITestResult tr)
Method parameters in org.testng.reporters with type arguments of type ITestResult Modifier and Type Method Description 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)
protected java.util.List<EmailableReporter2.ClassResult>
EmailableReporter2.TestResult. groupResults(java.util.Set<ITestResult> results)
Groups test results by method and then by class.Constructor parameters in org.testng.reporters with type arguments of type ITestResult Constructor Description MethodResult(java.util.List<ITestResult> results)
-
Uses of ITestResult in org.testng.reporters.jq
Fields in org.testng.reporters.jq with type parameters of type ITestResult Modifier and Type Field Description static java.util.Comparator<ITestResult>
ResultsByClass. METHOD_NAME_COMPARATOR
Methods in org.testng.reporters.jq that return types with arguments of type ITestResult Modifier and Type Method 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)
java.util.List<ITestResult>
ResultsByClass. getResults(java.lang.Class<?> c)
java.util.List<ITestResult>
Model. getTestResults(ISuite suite)
Methods in org.testng.reporters.jq with parameters of type ITestResult Modifier and Type Method Description void
ResultsByClass. addResult(java.lang.Class<?> c, ITestResult tr)
java.lang.String
Model. getTag(ITestResult tr)
static java.lang.String
Model. getTestResultName(ITestResult tr)
-
Uses of ITestResult in org.testng.util
Methods in org.testng.util with parameters of type ITestResult Modifier and Type Method 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.
-