public class DefaultTestNGContext extends Object implements org.testng.ITestContext
Constructor and Description |
---|
DefaultTestNGContext() |
Modifier and Type | Method and Description |
---|---|
void |
addGuiceModule(Class<? extends com.google.inject.Module> cls,
com.google.inject.Module module) |
void |
addInjector(List<com.google.inject.Module> moduleInstances,
com.google.inject.Injector injector) |
org.testng.ITestNGMethod[] |
getAllTestMethods() |
Object |
getAttribute(String name) |
Set<String> |
getAttributeNames() |
org.testng.xml.XmlTest |
getCurrentXmlTest() |
Date |
getEndDate() |
String[] |
getExcludedGroups() |
Collection<org.testng.ITestNGMethod> |
getExcludedMethods() |
org.testng.IResultMap |
getFailedButWithinSuccessPercentageTests() |
org.testng.IResultMap |
getFailedConfigurations() |
org.testng.IResultMap |
getFailedTests() |
List<com.google.inject.Module> |
getGuiceModules(Class<? extends com.google.inject.Module> cls) |
String |
getHost() |
String[] |
getIncludedGroups() |
com.google.inject.Injector |
getInjector(List<com.google.inject.Module> moduleInstances) |
String |
getName() |
String |
getOutputDirectory() |
org.testng.IResultMap |
getPassedConfigurations() |
org.testng.IResultMap |
getPassedTests() |
org.testng.IResultMap |
getSkippedConfigurations() |
org.testng.IResultMap |
getSkippedTests() |
Date |
getStartDate() |
org.testng.ISuite |
getSuite() |
Object |
removeAttribute(String name) |
void |
setAttribute(String name,
Object value) |
public Object getAttribute(String name)
getAttribute
in interface org.testng.IAttributes
public void setAttribute(String name, Object value)
setAttribute
in interface org.testng.IAttributes
public Set<String> getAttributeNames()
getAttributeNames
in interface org.testng.IAttributes
public Object removeAttribute(String name)
removeAttribute
in interface org.testng.IAttributes
public String getName()
getName
in interface org.testng.ITestContext
public Date getStartDate()
getStartDate
in interface org.testng.ITestContext
public Date getEndDate()
getEndDate
in interface org.testng.ITestContext
public org.testng.IResultMap getPassedTests()
getPassedTests
in interface org.testng.ITestContext
public org.testng.IResultMap getSkippedTests()
getSkippedTests
in interface org.testng.ITestContext
public org.testng.IResultMap getFailedButWithinSuccessPercentageTests()
getFailedButWithinSuccessPercentageTests
in interface org.testng.ITestContext
public org.testng.IResultMap getFailedTests()
getFailedTests
in interface org.testng.ITestContext
public String[] getIncludedGroups()
getIncludedGroups
in interface org.testng.ITestContext
public String[] getExcludedGroups()
getExcludedGroups
in interface org.testng.ITestContext
public String getOutputDirectory()
getOutputDirectory
in interface org.testng.ITestContext
public org.testng.ISuite getSuite()
getSuite
in interface org.testng.ITestContext
public org.testng.ITestNGMethod[] getAllTestMethods()
getAllTestMethods
in interface org.testng.ITestContext
public String getHost()
getHost
in interface org.testng.ITestContext
public Collection<org.testng.ITestNGMethod> getExcludedMethods()
getExcludedMethods
in interface org.testng.ITestContext
public org.testng.IResultMap getPassedConfigurations()
getPassedConfigurations
in interface org.testng.ITestContext
public org.testng.IResultMap getSkippedConfigurations()
getSkippedConfigurations
in interface org.testng.ITestContext
public org.testng.IResultMap getFailedConfigurations()
getFailedConfigurations
in interface org.testng.ITestContext
public org.testng.xml.XmlTest getCurrentXmlTest()
getCurrentXmlTest
in interface org.testng.ITestContext
public List<com.google.inject.Module> getGuiceModules(Class<? extends com.google.inject.Module> cls)
getGuiceModules
in interface org.testng.ITestContext
public void addGuiceModule(Class<? extends com.google.inject.Module> cls, com.google.inject.Module module)
addGuiceModule
in interface org.testng.ITestContext
public com.google.inject.Injector getInjector(List<com.google.inject.Module> moduleInstances)
getInjector
in interface org.testng.ITestContext
public void addInjector(List<com.google.inject.Module> moduleInstances, com.google.inject.Injector injector)
addInjector
in interface org.testng.ITestContext
Copyright © 2015. All rights reserved.