@ContextConfiguration(classes=CitrusSpringConfig.class) public abstract class AbstractTestNGCitrusTest extends org.springframework.test.context.testng.AbstractTestNGSpringContextTests
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractTestNGCitrusTest.FakeExecutionCallBack
Class faking test execution as callback.
|
| Modifier and Type | Field and Description |
|---|---|
protected Citrus |
citrus
Citrus instance
|
protected org.slf4j.Logger |
log
Logger
|
| Constructor and Description |
|---|
AbstractTestNGCitrusTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterSuite(org.testng.ITestContext testContext)
Runs tasks after test suite.
|
void |
beforeSuite(org.testng.ITestContext testContext)
Runs tasks before test suite.
|
protected TestLoader |
createTestLoader(String testName,
String packageName)
Creates new test loader which has TestNG test annotations set for test execution.
|
protected void |
executeTest()
Executes the test case.
|
protected void |
executeTest(org.testng.ITestContext testContext)
Executes the test case.
|
protected String[] |
getParameterNames(org.testng.ITestNGMethod method)
Read parameter names form method annotation.
|
protected TestCase |
getTestCase()
Constructs the test case to execute.
|
protected void |
handleTestParameters(org.testng.ITestNGMethod method,
TestCase testCase,
Object[] parameterValues)
Methods adds optional TestNG parameters as variables to the test case.
|
protected TestContext |
prepareTestContext(TestContext testContext)
Prepares the test context.
|
void |
run(org.testng.IHookCallBack callBack,
org.testng.ITestResult testResult) |
protected final org.slf4j.Logger log
protected Citrus citrus
public void run(org.testng.IHookCallBack callBack,
org.testng.ITestResult testResult)
run in interface org.testng.IHookablerun in class org.springframework.test.context.testng.AbstractTestNGSpringContextTestspublic void beforeSuite(org.testng.ITestContext testContext)
throws Exception
testContext - the test context.Exception - on error.public void afterSuite(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 TestLoader createTestLoader(String testName, String packageName)
testName - packageName - protected TestCase getTestCase()
protected void handleTestParameters(org.testng.ITestNGMethod method,
TestCase testCase,
Object[] parameterValues)
method - the testng method currently executedtestCase - the constructed Citrus test.protected String[] getParameterNames(org.testng.ITestNGMethod method)
method - Copyright © 2008–2015 ConSol* Consulting&Solutions GmbH. All rights reserved.