|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.listeners.core.ScenarioFrameListener
public class ScenarioFrameListener
Monitor for scenarios frames.
| Field Summary | |
|---|---|
protected int |
checkpoint
A checkpoint where in the general result the scenario starts. |
static String |
CSS_SCENARIO
Expected style for scenarios. |
static String |
CSS_SCENARIO_FAILURE
Expected style for failure scenarios. |
static String |
CSS_SCENARIO_PENDING
Expected style for pending scenarios. |
static String |
CSS_SCENARIO_SUCCESS
Expected style for success scenarios. |
static String |
CSS_TITLE
Expected style for scenario titles. |
protected INodeHolder |
holder
An auxiliary node holder. |
protected IScenarioListener[] |
listeners
Scenario listeners. |
protected String |
name
The listener name. |
protected boolean |
pending
Indicate if scenario is pending. |
protected nu.xom.Node |
scenario
The node which holds the scenario. |
protected IResultSet |
subset
The subset of general result for this scenario. |
| Constructor Summary | |
|---|---|
ScenarioFrameListener(String name,
IScenarioListener... listeners)
Creates a names scenario listener. |
|
| Method Summary | |
|---|---|
protected void |
fireAfter(String title,
nu.xom.Node node,
IContext context,
IResultSet result)
Fire listeners after scenarios. |
protected void |
fireBefore(String title,
nu.xom.Node node,
IContext context,
IResultSet result)
Fire listeners before scenarios. |
String |
getName()
The listener name. |
IResultSet |
getResult()
Get the result subset specific to this scenario. |
boolean |
isPending()
Answer if the scenario is pending. |
void |
onAfter(nu.xom.Node node,
IContext context,
IResultSet result)
Perform some action after plugin execution for a given node. |
ENext |
onBefore(nu.xom.Node node,
IContext context,
IResultSet result)
Perform some action before building plugin for a given node. |
void |
reset()
Reset listener state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CSS_SCENARIO
public static final String CSS_SCENARIO_SUCCESS
public static final String CSS_SCENARIO_FAILURE
public static final String CSS_SCENARIO_PENDING
public static final String CSS_TITLE
protected String name
protected IScenarioListener[] listeners
protected INodeHolder holder
protected nu.xom.Node scenario
protected int checkpoint
protected boolean pending
protected IResultSet subset
| Constructor Detail |
|---|
public ScenarioFrameListener(String name,
IScenarioListener... listeners)
name - The scenario.listeners - List of scenario listeners.| Method Detail |
|---|
public void reset()
ISpecRunnerListener
reset in interface ISpecRunnerListenerpublic String getName()
ISpecRunnerListener
getName in interface ISpecRunnerListener
public ENext onBefore(nu.xom.Node node,
IContext context,
IResultSet result)
INodeListener
onBefore in interface INodeListenernode - The node.context - The context.result - The result.
ENext.DEEP,
the execution should go deeper.
protected void fireBefore(String title,
nu.xom.Node node,
IContext context,
IResultSet result)
title - The scenario title.node - The scenario node.context - The test context.result - The result set.
public void onAfter(nu.xom.Node node,
IContext context,
IResultSet result)
INodeListener
onAfter in interface INodeListenernode - The node.context - The context.result - The result.
protected void fireAfter(String title,
nu.xom.Node node,
IContext context,
IResultSet result)
title - The scenario title.node - The scenario node.context - The test context.result - The result set.public boolean isPending()
public IResultSet getResult()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||