Binil Thomas wrote:
Hi Mauro,

Thanks for replying, but I am afraid I did not understand your response.

My aim is to have one Scenario class, which can pick up every *.scenario file from a directory, run them against a Step class I have. This would let me add more .scenario files, expanding on the behavior (after development, but lets ignore that for now) of the system. My intention is to use the .scenario files as an "executable specification" of the system.

Please post a skeleton example of the Scenario class if this can be done.


Hi Binil,

ATM there is a one-to-one mapping between scenario classes and textual scenario files, but I think yours may be a valid interesting use case.

I've been thinking about it myself in the context of providing a web-based (or wiki-based) scenario runner, in which with a single Scenario class (and hence a single Steps class), a user could run multiple textual scenarios (all involving steps defined in the Steps instance, of course).

The refactor needed to address this is to enhance ScenarioNameResolver to map a single scenario class to a list of resource paths.

I've created a new issue to track this feature:

http://jira.codehaus.org/browse/JBEHAVE-156

Liz, Dan:  thoughts on this?

Cheers


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to