public class TestCase extends AbstractActionContainer implements org.springframework.beans.factory.BeanNameAware
TestAction in sequence.actionsdescription| Constructor and Description |
|---|
TestCase() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFinalAction(TestAction testAction)
Adds action to finally action chain.
|
void |
afterTest(TestContext context)
Sequence of test actions after test case.
|
void |
beforeTest(TestContext context)
Sequence of test actions before the test case.
|
void |
doExecute(TestContext context)
Method executes the test case and all its actions.
|
void |
executeAction(TestAction action,
TestContext context)
Executes a single test action with given test context.
|
void |
finish(TestContext context)
Method that will be executed in any case of test case result (success, error)
Usually used for clean up tasks.
|
List<TestAction> |
getFinalActions()
Get all actions in the finally chain.
|
TestCaseMetaInfo |
getMetaInfo()
Get the test case meta information.
|
String |
getPackageName()
Get the package name
|
Map<String,Object> |
getParameters()
Gets the test parameters.
|
Map<String,Object> |
getVariableDefinitions()
Gets the variable definitions.
|
boolean |
isTestRunner()
Gets the test runner flag.
|
void |
setAfterTest(List<SequenceAfterTest> afterTest)
Sets the after test action sequence.
|
void |
setBeanName(String name) |
void |
setBeforeTest(List<SequenceBeforeTest> beforeTest)
Sets the before test action sequence.
|
void |
setFinalActions(List<TestAction> finalActions)
Setter for finally chain.
|
void |
setMetaInfo(TestCaseMetaInfo metaInfo)
Set the test case meta information.
|
void |
setPackageName(String packageName)
Set the package name
|
void |
setParameters(String[] parameterNames,
Object[] parameterValues)
Sets the parameters.
|
void |
setTestActionListeners(TestActionListeners testActionListeners)
Sets the list of test action listeners.
|
void |
setTestRunner(boolean testRunner)
Sets the test runner flag.
|
void |
setVariableDefinitions(Map<String,Object> variableDefinitions)
Setter for variables.
|
void |
start(TestContext context)
Starts the test case.
|
String |
toString() |
addTestAction, getActionCount, getActionIndex, getActions, getLastExecutedAction, getTestAction, setActions, setLastExecutedActionexecute, getActor, getDescription, getName, isDisabled, setActor, setDescription, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexecute, getActor, getDescription, getName, isDisabled, setDescription, setNamepublic void start(TestContext context)
context - public void doExecute(TestContext context)
doExecute in class AbstractTestActionpublic void beforeTest(TestContext context)
context - public void afterTest(TestContext context)
context - public void executeAction(TestAction action, TestContext context)
action - context - public void finish(TestContext context)
public void setVariableDefinitions(Map<String,Object> variableDefinitions)
variableDefinitions - public Map<String,Object> getVariableDefinitions()
public void setFinalActions(List<TestAction> finalActions)
finalActions - public void addFinalAction(TestAction testAction)
testAction - public TestCaseMetaInfo getMetaInfo()
public void setMetaInfo(TestCaseMetaInfo metaInfo)
metaInfo - the metaInfo to setpublic List<TestAction> getFinalActions()
public void setBeanName(String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwareBeanNameAware.setBeanName(java.lang.String)public void setPackageName(String packageName)
packageName - the packageName to setpublic String getPackageName()
public void setParameters(String[] parameterNames, Object[] parameterValues)
parameterNames - the parameter names to setparameterValues - the parameters to setpublic Map<String,Object> getParameters()
public void setTestActionListeners(TestActionListeners testActionListeners)
testActionListeners - public void setBeforeTest(List<SequenceBeforeTest> beforeTest)
beforeTest - public void setAfterTest(List<SequenceAfterTest> afterTest)
afterTest - public void setTestRunner(boolean testRunner)
testRunner - public boolean isTestRunner()
Copyright © 2008–2015 ConSol* Consulting&Solutions GmbH. All rights reserved.