org.specrunner.listeners
Interface IScenarioListener

All Known Implementing Classes:
AbstractScenarioWrapperAfterListener, AbstractScenarioWrapperBeforeListener, AbstractScenarioWrapperListener, ScenarioCleanerListener

public interface IScenarioListener

Listeners for scenarios.

Author:
Thiago Santos.

Method Summary
 void afterScenario(String title, nu.xom.Node node, IContext context, IResultSet result, Object instance)
          Perform something after each scenario.
 void beforeScenario(String title, nu.xom.Node node, IContext context, IResultSet result, Object instance)
          Perform something before each scenario.
 

Method Detail

beforeScenario

void beforeScenario(String title,
                    nu.xom.Node node,
                    IContext context,
                    IResultSet result,
                    Object instance)
                    throws SpecRunnerException
Perform something before each scenario.

Parameters:
title - The scenario title.
node - The scenario node.
context - The test context.
result - The result set.
instance - The fixture object, if it exists, null, otherwise.
Throws:
SpecRunnerException - Exception for scenarios.

afterScenario

void afterScenario(String title,
                   nu.xom.Node node,
                   IContext context,
                   IResultSet result,
                   Object instance)
                   throws SpecRunnerException
Perform something after each scenario.

Parameters:
title - The scenario title.
node - The scenario node.
context - The test context.
result - The result set.
instance - The fixture object, if it exists, null, otherwise.
Throws:
SpecRunnerException - Exception for scenarios.


Copyright © 2015. All rights reserved.