public class TestRunner extends Object implements ITestContext, org.testng.internal.ITestResultNotifier, org.testng.internal.thread.graph.IThreadWorkerFactory<ITestNGMethod>
| Modifier | Constructor and Description |
|---|---|
|
TestRunner(org.testng.internal.IConfiguration configuration,
ISuite suite,
XmlTest test,
boolean skipFailedInvocationCounts,
List<IInvokedMethodListener> listeners) |
protected |
TestRunner(org.testng.internal.IConfiguration configuration,
ISuite suite,
XmlTest test,
String outputDirectory,
org.testng.internal.annotations.IAnnotationFinder finder,
boolean skipFailedInvocationCounts,
List<IInvokedMethodListener> invokedMethodListeners) |
protected TestRunner(org.testng.internal.IConfiguration configuration,
ISuite suite,
XmlTest test,
String outputDirectory,
org.testng.internal.annotations.IAnnotationFinder finder,
boolean skipFailedInvocationCounts,
List<IInvokedMethodListener> invokedMethodListeners)
public TestRunner(org.testng.internal.IConfiguration configuration,
ISuite suite,
XmlTest test,
boolean skipFailedInvocationCounts,
List<IInvokedMethodListener> listeners)
public org.testng.internal.IInvoker getInvoker()
public ITestNGMethod[] getBeforeSuiteMethods()
public ITestNGMethod[] getAfterSuiteMethods()
public ITestNGMethod[] getBeforeTestConfigurationMethods()
public ITestNGMethod[] getAfterTestConfigurationMethods()
public Collection<ITestClass> getTestClasses()
public void setTestName(String name)
public void setOutputDirectory(String od)
public void run()
public List<org.testng.internal.thread.graph.IWorker<ITestNGMethod>> createWorkers(List<ITestNGMethod> methods)
createWorkers in interface org.testng.internal.thread.graph.IThreadWorkerFactory<ITestNGMethod>methods - tasks that need to be executedpublic String getName()
ITestContextgetName in interface ITestContextpublic Date getStartDate()
ITestContextgetStartDate in interface ITestContextpublic Date getEndDate()
ITestContextgetEndDate in interface ITestContextpublic IResultMap getPassedTests()
getPassedTests in interface ITestContextpublic IResultMap getSkippedTests()
getSkippedTests in interface ITestContextpublic IResultMap getFailedTests()
getFailedTests in interface ITestContextITestNGMethodpublic IResultMap getFailedButWithinSuccessPercentageTests()
getFailedButWithinSuccessPercentageTests in interface ITestContextpublic String[] getIncludedGroups()
getIncludedGroups in interface ITestContextpublic String[] getExcludedGroups()
getExcludedGroups in interface ITestContextpublic String getOutputDirectory()
getOutputDirectory in interface ITestContextpublic ISuite getSuite()
getSuite in interface ITestContextpublic ITestNGMethod[] getAllTestMethods()
getAllTestMethods in interface ITestContextpublic String getHost()
getHost in interface ITestContextpublic Collection<ITestNGMethod> getExcludedMethods()
getExcludedMethods in interface ITestContextpublic IResultMap getFailedConfigurations()
ITestContextgetFailedConfigurations in interface ITestContextITestContext.getFailedConfigurations()public IResultMap getPassedConfigurations()
ITestContextgetPassedConfigurations in interface ITestContextITestContext.getPassedConfigurations()public IResultMap getSkippedConfigurations()
ITestContextgetSkippedConfigurations in interface ITestContextITestContext.getSkippedConfigurations()public void addPassedTest(ITestNGMethod tm, ITestResult tr)
addPassedTest in interface org.testng.internal.ITestResultNotifierpublic Set<ITestResult> getPassedTests(ITestNGMethod tm)
getPassedTests in interface org.testng.internal.ITestResultNotifierpublic Set<ITestResult> getFailedTests(ITestNGMethod tm)
getFailedTests in interface org.testng.internal.ITestResultNotifierpublic Set<ITestResult> getSkippedTests(ITestNGMethod tm)
getSkippedTests in interface org.testng.internal.ITestResultNotifierpublic void addSkippedTest(ITestNGMethod tm, ITestResult tr)
addSkippedTest in interface org.testng.internal.ITestResultNotifierpublic void addInvokedMethod(org.testng.internal.InvokedMethod im)
addInvokedMethod in interface org.testng.internal.ITestResultNotifierpublic void addFailedTest(ITestNGMethod testMethod, ITestResult result)
addFailedTest in interface org.testng.internal.ITestResultNotifierpublic void addFailedButWithinSuccessPercentageTest(ITestNGMethod testMethod, ITestResult result)
addFailedButWithinSuccessPercentageTest in interface org.testng.internal.ITestResultNotifierpublic XmlTest getTest()
getTest in interface org.testng.internal.ITestResultNotifierpublic List<ITestListener> getTestListeners()
getTestListeners in interface org.testng.internal.ITestResultNotifierpublic List<IConfigurationListener> getConfigurationListeners()
getConfigurationListeners in interface org.testng.internal.ITestResultNotifierpublic static int getVerbose()
public void setVerbose(int n)
public void addListener(Object listener)
public void addTestListener(ITestListener il)
public List<ITestNGMethod> getInvokedMethods()
public void setMethodInterceptor(IMethodInterceptor methodInterceptor)
public XmlTest getCurrentXmlTest()
getCurrentXmlTest in interface ITestContextpublic Object getAttribute(String name)
getAttribute in interface IAttributesname - The name of the attribute to returnpublic void setAttribute(String name, Object value)
IAttributessetAttribute in interface IAttributespublic Set<String> getAttributeNames()
getAttributeNames in interface IAttributespublic Object removeAttribute(String name)
IAttributesremoveAttribute in interface IAttributespublic List<com.google.inject.Module> getGuiceModules(Class<? extends com.google.inject.Module> cls)
getGuiceModules in interface ITestContextpublic void addGuiceModule(Class<? extends com.google.inject.Module> cls, com.google.inject.Module module)
addGuiceModule in interface ITestContextpublic com.google.inject.Injector getInjector(List<com.google.inject.Module> moduleInstances)
getInjector in interface ITestContextpublic void addInjector(List<com.google.inject.Module> moduleInstances, com.google.inject.Injector injector)
addInjector in interface ITestContextCopyright © 2015. All Rights Reserved.