|
|||||||||
| 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.
| Field Summary | |
|---|---|
protected XmlTest |
m_xmlTest
|
| Constructor Summary | |
|---|---|
TestRunner(ISuite suite,
XmlTest test,
boolean skipFailedInvocationCounts,
java.util.List<IInvokedMethodListener> listeners)
|
|
TestRunner(ISuite suite,
XmlTest test,
IAnnotationFinder finder,
boolean skipFailedInvocationCounts)
|
|
TestRunner(ISuite suite,
XmlTest test,
java.lang.String outputDirectory,
IAnnotationFinder finder,
boolean skipFailedInvocationCounts,
java.util.List<IInvokedMethodListener> invokedMethodListeners)
|
|
| Method Summary | |
|---|---|
void |
addConfigurationListener(IConfigurationListener icl)
|
void |
addFailedButWithinSuccessPercentageTest(ITestNGMethod testMethod,
ITestResult result)
|
void |
addFailedTest(ITestNGMethod testMethod,
ITestResult result)
|
void |
addInvokedMethod(InvokedMethod im)
|
void |
addListener(java.lang.Object listener)
|
void |
addPassedTest(ITestNGMethod tm,
ITestResult tr)
|
void |
addSkippedTest(ITestNGMethod tm,
ITestResult tr)
|
void |
addTestListener(ITestListener il)
|
java.util.List<IMethodWorker> |
createWorkers(XmlTest xmlTest,
java.util.Set<ITestNGMethod> methods)
Create a list of workers to run the methods passed in parameter. |
ITestNGMethod[] |
getAfterSuiteMethods()
|
ITestNGMethod[] |
getAfterTestConfigurationMethods()
|
ITestNGMethod[] |
getAllTestMethods()
|
java.lang.Object |
getAttribute(java.lang.String name)
|
ITestNGMethod[] |
getBeforeSuiteMethods()
|
ITestNGMethod[] |
getBeforeTestConfigurationMethods()
|
java.util.List<IConfigurationListener> |
getConfigurationListeners()
|
XmlTest |
getCurrentXmlTest()
|
java.util.Date |
getEndDate()
When this test stopped running. |
java.lang.String[] |
getExcludedGroups()
|
java.util.Collection<ITestNGMethod> |
getExcludedMethods()
|
IResultMap |
getFailedButWithinSuccessPercentageTests()
|
IResultMap |
getFailedConfigurations()
Retrieves information about the failed configuration method invocations. |
IResultMap |
getFailedTests()
|
java.lang.String |
getHost()
|
java.util.Collection<ITestClass> |
getIClass()
|
java.lang.String[] |
getIncludedGroups()
|
java.util.List<ITestNGMethod> |
getInvokedMethods()
|
IInvoker |
getInvoker()
|
java.lang.String |
getName()
The name of this test. |
java.lang.String |
getOutputDirectory()
|
IResultMap |
getPassedConfigurations()
Retrieves information about the successful configuration method invocations. |
IResultMap |
getPassedTests()
|
java.util.Set<ITestResult> |
getPassedTests(ITestNGMethod tm)
|
IResultMap |
getSkippedConfigurations()
Retrieves information about the skipped configuration method invocations. |
IResultMap |
getSkippedTests()
|
java.util.Date |
getStartDate()
When this test started running. |
ISuite |
getSuite()
|
XmlTest |
getTest()
|
java.util.List<ITestListener> |
getTestListeners()
|
TestPlan |
getTestPlan()
|
static int |
getVerbose()
|
void |
privateRun(XmlTest xmlTest)
|
void |
run()
The main entry method for TestRunner. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Set a custom attribute. |
void |
setMethodInterceptor(IMethodInterceptor methodInterceptor)
|
void |
setOutputDirectory(java.lang.String od)
|
void |
setTestName(java.lang.String name)
|
void |
setVerbose(int n)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected XmlTest m_xmlTest
| Constructor Detail |
|---|
public TestRunner(ISuite suite,
XmlTest test,
java.lang.String outputDirectory,
IAnnotationFinder finder,
boolean skipFailedInvocationCounts,
java.util.List<IInvokedMethodListener> invokedMethodListeners)
public TestRunner(ISuite suite,
XmlTest test,
IAnnotationFinder finder,
boolean skipFailedInvocationCounts)
public TestRunner(ISuite suite,
XmlTest test,
boolean skipFailedInvocationCounts,
java.util.List<IInvokedMethodListener> listeners)
| Method Detail |
|---|
public IInvoker getInvoker()
public ITestNGMethod[] getBeforeSuiteMethods()
public ITestNGMethod[] getAfterSuiteMethods()
public ITestNGMethod[] getBeforeTestConfigurationMethods()
public ITestNGMethod[] getAfterTestConfigurationMethods()
public java.lang.Object getAttribute(java.lang.String name)
getAttribute in interface IAttributesname - The name of the attribute to return
public void setAttribute(java.lang.String name,
java.lang.Object value)
IAttributes
setAttribute in interface IAttributespublic java.util.Collection<ITestClass> getIClass()
public void setTestName(java.lang.String name)
public void setOutputDirectory(java.lang.String od)
public void run()
public void privateRun(XmlTest xmlTest)
public java.util.List<IMethodWorker> createWorkers(XmlTest xmlTest,
java.util.Set<ITestNGMethod> methods)
public TestPlan getTestPlan()
public java.lang.String getName()
ITestContext
getName in interface ITestContextpublic java.util.Date getStartDate()
ITestContext
getStartDate in interface ITestContextpublic java.util.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 java.lang.String[] getIncludedGroups()
getIncludedGroups in interface ITestContextpublic java.lang.String[] getExcludedGroups()
getExcludedGroups in interface ITestContextpublic java.lang.String getOutputDirectory()
getOutputDirectory in interface ITestContextpublic ISuite getSuite()
getSuite in interface ITestContextpublic ITestNGMethod[] getAllTestMethods()
getAllTestMethods in interface ITestContextpublic java.lang.String getHost()
getHost in interface ITestContextpublic java.util.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)
public java.util.Set<ITestResult> getPassedTests(ITestNGMethod tm)
public void addSkippedTest(ITestNGMethod tm,
ITestResult tr)
public void addInvokedMethod(InvokedMethod im)
public void addFailedTest(ITestNGMethod testMethod,
ITestResult result)
public void addFailedButWithinSuccessPercentageTest(ITestNGMethod testMethod,
ITestResult result)
public XmlTest getTest()
public java.util.List<ITestListener> getTestListeners()
public java.util.List<IConfigurationListener> getConfigurationListeners()
public static int getVerbose()
public void setVerbose(int n)
public void addListener(java.lang.Object listener)
public void addTestListener(ITestListener il)
public void addConfigurationListener(IConfigurationListener icl)
public java.util.List<ITestNGMethod> getInvokedMethods()
public void setMethodInterceptor(IMethodInterceptor methodInterceptor)
public XmlTest getCurrentXmlTest()
getCurrentXmlTest in interface ITestContext
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||