I've user @AfterScenario to remove objects that I persisted to a database. It works like a charm.
On Sat, Feb 6, 2010 at 9:28 PM, James Carr <[email protected]> wrote: > Hi Peter! > > For number 1, maybe @BeforeScenario and @AfterScenario would be helpful? > > http://jbehave.org/reference/latest/annotations.html#highlighter_44132 > > Thanks, > James > > On Sat, Feb 6, 2010 at 8:10 PM, Peter P <[email protected]> wrote: >> Hello, >> I had a couple of feature requests. >> (1) Some kind of "before" and "after" mechanism for a scenario file, e.g. >> something like the "Background" feature in Cucumber. >> (2) Ability to use a table example for #1. >> The use case I have is that I want to run a set of scenarios using a table >> of users that should be logged into the site when the scenarios run. I want >> to avoid logging in and out in after each individual scenario. >> >> >> > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
