Hi,
You can have annotations in Java files where the step mappings are defined. So in the same java class where your @Given, @When @Then appears, you can write methods annotated with: @BeforeStories @BeforeStory @BeforeScenario and @AfterScenario @AfterStory @AfterStories. That/those methods will be executed automatically at the given time, as the annotation's name tells :). See http://jbehave.org/reference/stable/annotations.html. Regarding exclusions, you can have in a Story file: Scenario: The normal user has no Administrator menu *Meta:* *@skip* Given normal user logged in When listing menu items Then there is no Administrator item You see the @skip *after * the Meta? With that you can exclude from running some scenarios. You find a little bit detailed info at http://jbehave.org/reference/stable/meta-filtering.html. Regards, rSzabi 2015-01-09 4:31 GMT+02:00 Gnayils <gnay...@163.com>: > Hi experts, > I'm a user from GE Healthcare, we want to use Jbehave in BDD auto test. I > have a question with Jbehave statistics, In Jbehave Reports HTML page > table, > > about rows "Before Stories"and "After Stories" and columns "Excluded" in > "Stories/Scenarios/GivenStory Scenarios", i'm still not understand that > meaning for? or which API will effect number in those row or column? > > Thanks. > Gnayils > > > -- Rugina Szabolcs ruginaszabo...@gmail.com Mobile: 0771483274 Fax: 0378105445