|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.test.context.testng.AbstractTestNGSpringContextTests
com.consol.citrus.testng.AbstractTestNGCitrusTest
@ContextConfiguration(locations={"classpath:com/consol/citrus/spring/root-application-ctx.xml","classpath:citrus-context.xml","classpath:com/consol/citrus/functions/citrus-function-ctx.xml","classpath:com/consol/citrus/validation/citrus-validationmatcher-ctx.xml"})
public abstract class AbstractTestNGCitrusTestAbstract base test implementation for testng test cases. Providing test listener support and loading basic application context files for Citrus.
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
log
Logger |
| Fields inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests |
|---|
applicationContext, logger |
| Constructor Summary | |
|---|---|
AbstractTestNGCitrusTest()
|
|
| Method Summary | |
|---|---|
void |
afterSuite(org.testng.ITestContext testContext)
Runs tasks after test suite. |
void |
beforeSuite(org.testng.ITestContext testContext)
Runs tasks before test suite. |
void |
beforeTest(org.testng.ITestContext testContext)
Runs tasks before tests. |
protected org.springframework.context.support.ClassPathXmlApplicationContext |
createApplicationContext()
Creates the Spring application context. |
protected TestContext |
createTestContext()
Creates a new test context. |
protected void |
executeTest()
Executes the test case. |
protected void |
executeTest(org.testng.ITestContext testContext)
Executes the test case. |
protected Object[][] |
getParameterValues()
Hook for subclasses to provide individual test parameters. |
protected TestCase |
getTestCase()
Gets the test case from application context. |
protected TestContext |
prepareTestContext(TestContext testContext)
Prepares the test context. |
protected Object[][] |
provideTestParameters()
Default data provider automatically adding parameters as variables to test case. |
| Methods inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests |
|---|
run, setApplicationContext, springTestContextAfterTestClass, springTestContextAfterTestMethod, springTestContextBeforeTestClass, springTestContextBeforeTestMethod, springTestContextPrepareTestInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.slf4j.Logger log
| Constructor Detail |
|---|
public AbstractTestNGCitrusTest()
| Method Detail |
|---|
public void beforeSuite(org.testng.ITestContext testContext)
throws Exception
testContext - the test context.
Exception - on error.public void beforeTest(org.testng.ITestContext testContext)
testContext - the test context.protected void executeTest()
protected void executeTest(org.testng.ITestContext testContext)
testContext - the test context.protected TestContext prepareTestContext(TestContext testContext)
testContext - the test context.
protected TestContext createTestContext()
throws Exception
Exception - on error.protected TestCase getTestCase()
protected org.springframework.context.support.ClassPathXmlApplicationContext createApplicationContext()
public void afterSuite(org.testng.ITestContext testContext)
testContext - the test context.protected Object[][] provideTestParameters()
testContext - the current TestNG test context.
protected Object[][] getParameterValues()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||