org.specrunner.plugins.core.text
Class PluginReplacer
java.lang.Object
org.specrunner.parameters.core.ParameterHolder
org.specrunner.plugins.core.AbstractPlugin
org.specrunner.plugins.core.text.PluginReplacer
- All Implemented Interfaces:
- IParameterHolder, IActionType, IParalelPlugin, IPlugin, ISleepPlugin, ITestPlugin, ITimedPlugin, IWaitPlugin
public class PluginReplacer
- extends AbstractPlugin
Replace text elements by their evaluated expressions.
Example:
Current time in miliseconds is ${System.currentTimeMilis()}.
Will be evaluated as: Current time in miliseconds
is 90999384384747.
- Author:
- Thiago Santos
| Methods inherited from class org.specrunner.plugins.core.AbstractPlugin |
copy, doEnd, getCondition, getConditionModel, getNormalized, getNormalized, getParent, getSleep, getSleepModel, getThreadsafe, getTimeout, getTimeoutModel, getWait, getWaitModel, initialize, setCondition, setConditionModel, setNormalized, setParent, setSleep, setSleepModel, setThreadsafe, setTimeout, setTimeoutModel, setWait, setWaitModel, toString |
PluginReplacer
public PluginReplacer()
getActionType
public ActionType getActionType()
- Description copied from interface:
IActionType
- Get the plugin type.
- Returns:
- The type.
doStart
public ENext doStart(IContext context,
IResultSet result)
throws PluginException
- Description copied from interface:
IPlugin
- Performs the start action. i.e. create a database schema. Performed after
initialization.
- Specified by:
doStart in interface IPlugin- Overrides:
doStart in class AbstractPlugin
- Parameters:
context - The context.result - The result set.
- Returns:
- SKIP, to skip node, DEEP, to go deep into the node.
- Throws:
PluginException - On execution errors.
Copyright © 2014. All rights reserved.