public abstract class AbstractTestAction extends Object implements TestAction
Modifier and Type | Field and Description |
---|---|
protected String |
description
Describing the test action
|
Constructor and Description |
---|
AbstractTestAction() |
Modifier and Type | Method and Description |
---|---|
abstract void |
doExecute(TestContext context)
Subclasses may add custom execution logic here.
|
void |
execute(TestContext context)
Do basic logging and delegate execution to subclass.
|
TestActor |
getActor()
Gets the actor.
|
String |
getDescription()
Description of this test action
|
String |
getName()
Name of test action injected as Spring bean name
|
boolean |
isDisabled(TestContext context)
Checks if this test action is disabled.
|
AbstractTestAction |
setActor(TestActor actor)
Sets the actor.
|
AbstractTestAction |
setDescription(String description)
Description setter.
|
AbstractTestAction |
setName(String name)
(non-Javadoc)
|
protected String description
public void execute(TestContext context)
execute
in interface TestAction
public boolean isDisabled(TestContext context)
isDisabled
in interface TestAction
context
- the current test context.public abstract void doExecute(TestContext context)
public String getDescription()
TestAction
getDescription
in interface TestAction
public AbstractTestAction setDescription(String description)
TestAction
setDescription
in interface TestAction
description
- the description to setpublic String getName()
TestAction
getName
in interface TestAction
public AbstractTestAction setName(String name)
setName
in interface TestAction
TestAction.setName(java.lang.String)
public TestActor getActor()
getActor
in interface TestAction
public AbstractTestAction setActor(TestActor actor)
actor
- the actor to setCopyright © 2008–2017 ConSol Software GmbH. All rights reserved.