public class TestCase extends AbstractActionContainer implements org.springframework.beans.factory.BeanNameAware
TestAction
in sequence.actions
description
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.
|
String[] |
getGroups()
Gets the groups.
|
TestCaseMetaInfo |
getMetaInfo()
Get the test case meta information.
|
String |
getPackageName()
Get the package name
|
Map<String,Object> |
getParameters()
Gets the test parameters.
|
Class<?> |
getTestClass()
Gets the value of the testClass property.
|
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 |
setGroups(String[] groups)
Sets the groups.
|
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 |
setTestClass(Class<?> type)
Set the test class type.
|
void |
setTestResult(TestResult testResult)
Sets the test result from outside.
|
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, setLastExecutedAction
execute, getActor, getDescription, getName, isDisabled, setActor, setDescription, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
execute, getActor, getDescription, getName, isDisabled, setDescription, setName
public void start(TestContext context)
context
- public void doExecute(TestContext context)
doExecute
in class AbstractTestAction
public 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.BeanNameAware
BeanNameAware.setBeanName(java.lang.String)
public void setPackageName(String packageName)
packageName
- the packageName to setpublic String getPackageName()
public void setTestClass(Class<?> type)
type
- public Class<?> getTestClass()
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()
public void setTestResult(TestResult testResult)
testResult
- public String[] getGroups()
public void setGroups(String[] groups)
groups
- Copyright © 2008–2017 ConSol Software GmbH. All rights reserved.