JBehave
  1. JBehave
  2. JBEHAVE-129

@BeforeScenario and @AfterScenario

    Details

    • Type: New Feature New Feature
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Component/s: Core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      As a developer, I want to be able to reset my state after each scenario in a multi-scenario story so that I can make my scenarios independent.

        Activity

        Elizabeth Keogh made changes -
        Field Original Value New Value
        Fix Version/s The Distant Future [ 13303 ]
        Fix Version/s 2.0.1 [ 14549 ]
        Assignee Elizabeth Keogh [ sirenian ]
        Hide
        Mauro Talevi added a comment -

        Liz, shouldn't this, as new feature, belong more properly to 2.1? We should keep 2.x.y versions for bugfixes and other minor fixes. New functionality should go in the next 2.x release.

        Show
        Mauro Talevi added a comment - Liz, shouldn't this, as new feature, belong more properly to 2.1? We should keep 2.x.y versions for bugfixes and other minor fixes. New functionality should go in the next 2.x release.
        Hide
        Elizabeth Keogh added a comment -

        You're right; moved to 2.1.

        Show
        Elizabeth Keogh added a comment - You're right; moved to 2.1.
        Elizabeth Keogh made changes -
        Fix Version/s 2.0.1 [ 14549 ]
        Fix Version/s 2.1 [ 14547 ]
        Hide
        Mauro Talevi added a comment -

        @AfterScenario now has method uponOutcome() that allows the developer to distinguish between scenario steps that should be invoked upon success or failure, as well as accepting any outcome.

        Show
        Mauro Talevi added a comment - @AfterScenario now has method uponOutcome() that allows the developer to distinguish between scenario steps that should be invoked upon success or failure, as well as accepting any outcome.
        Hide
        Mauro Talevi added a comment -

        Closing as completed.

        Show
        Mauro Talevi added a comment - Closing as completed.
        Mauro Talevi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Olmo Rigolo added a comment -

        The problem with @AfterScenario is, that it is described in the TestSuite and not the story description. I created a new feature request here (/Old_JBehave_Issues/831) which would extend the vocabulary of the story description, to use @AfterScenario as keyword in the story description file.

        Show
        Olmo Rigolo added a comment - The problem with @AfterScenario is, that it is described in the TestSuite and not the story description. I created a new feature request here ( /Old_JBehave_Issues/831 ) which would extend the vocabulary of the story description, to use @AfterScenario as keyword in the story description file.

          People

          • Assignee:
            Elizabeth Keogh
            Reporter:
            Elizabeth Keogh
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: