|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.testng.TestRunner
public class TestRunner
This class takes care of running one Test.
| Constructor Summary | |
|---|---|
|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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)
| Method Detail |
|---|
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(Set<ITestNGMethod> methods)
createWorkers in interface org.testng.internal.thread.graph.IThreadWorkerFactory<ITestNGMethod>public String getName()
ITestContext
getName in interface ITestContextpublic Date getStartDate()
ITestContext
getStartDate in interface ITestContextpublic Date getEndDate()
ITestContext
getEndDate 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()
ITestContext
getFailedConfigurations in interface ITestContextITestContext.getFailedConfigurations()public IResultMap getPassedConfigurations()
ITestContext
getPassedConfigurations in interface ITestContextITestContext.getPassedConfigurations()public IResultMap getSkippedConfigurations()
ITestContext
getSkippedConfigurations 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.ITestResultNotifier
public 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.ITestResultNotifier
public void addFailedTest(ITestNGMethod testMethod,
ITestResult result)
addFailedTest in interface org.testng.internal.ITestResultNotifier
public 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<org.testng.internal.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 return
public void setAttribute(String name,
Object value)
IAttributes
setAttribute in interface IAttributespublic Set<String> getAttributeNames()
getAttributeNames in interface IAttributespublic Object removeAttribute(String name)
IAttributes
removeAttribute in interface IAttributes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||