public abstract class AbstractScenarioWrapperListener extends Object implements IScenarioListener
| Constructor and Description |
|---|
AbstractScenarioWrapperListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterScenario(String title,
nu.xom.Node node,
IContext context,
IResultSet result,
Object instance)
Perform something after each scenario.
|
protected void |
append(nu.xom.Node node,
IContext context,
IResultSet result,
Class<? extends IPlugin> type,
String message,
boolean onStart)
Append a start and and tag to a scenario.
|
void |
beforeScenario(String title,
nu.xom.Node node,
IContext context,
IResultSet result,
Object instance)
Perform something before each scenario.
|
protected nu.xom.Element |
createElement(Class<? extends IPlugin> type,
String message)
Create element to add.
|
protected abstract Class<? extends IPlugin> |
getOnEnd()
On end plugin type.
|
protected abstract String |
getOnEndMessage()
Get on end message.
|
protected abstract Class<? extends IPlugin> |
getOnStart()
On start plugin type.
|
protected abstract String |
getOnStartMessage()
On start message.
|
public void beforeScenario(String title, nu.xom.Node node, IContext context, IResultSet result, Object instance) throws SpecRunnerException
IScenarioListenerbeforeScenario in interface IScenarioListenertitle - The scenario title.node - The scenario node.context - The test context.result - The result set.instance - The fixture object, if it exists, null, otherwise.SpecRunnerException - Exception for scenarios.protected void append(nu.xom.Node node,
IContext context,
IResultSet result,
Class<? extends IPlugin> type,
String message,
boolean onStart)
throws PluginException
node - Scenario node.context - A context.result - A result set.type - A plugin type to add.message - A message to add.onStart - true, if add on start scenario, false, otherwise.PluginException - On processing errors.protected abstract Class<? extends IPlugin> getOnStart()
protected abstract String getOnStartMessage()
protected abstract String getOnEndMessage()
protected nu.xom.Element createElement(Class<? extends IPlugin> type, String message) throws PluginException
type - Plugin type.message - A message.PluginException - O creation errors.public void afterScenario(String title, nu.xom.Node node, IContext context, IResultSet result, Object instance) throws SpecRunnerException
IScenarioListenerafterScenario in interface IScenarioListenertitle - The scenario title.node - The scenario node.context - The test context.result - The result set.instance - The fixture object, if it exists, null, otherwise.SpecRunnerException - Exception for scenarios.Copyright © 2016. All rights reserved.