JBehave
  1. JBehave
  2. JBEHAVE-1014

Lifecycle steps: after upon outcome

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.9.3
    • Component/s: Core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      In JBehave it is possible to use lifecyle steps, which add steps before and after each scenario.

      Lifecycle:
      Before:
      Given I have a bank account
      And my balance is 100
      After:
      Then my balance is archived

      If a step of the scenario fails, then the after steps are not executed.

      This might be good in some situations, but in another situations it would be good that the after steps are executed even in case of a failure. For example one could do some cleanups there.

      Can you please improve this so that it can be specified upon which outcome type the after steps are called in the story?

        Activity

        Mauro Talevi made changes -
        Field Original Value New Value
        Affects Version/s 4.x [ 18279 ]
        Fix Version/s 3.9.3 [ 20321 ]
        Mauro Talevi made changes -
        Resolution Fixed [ 1 ]
        Assignee Mauro Talevi [ maurotalevi ]
        Status Open [ 1 ] Resolved [ 5 ]

          People

          • Assignee:
            Mauro Talevi
            Reporter:
            Otto Diesel
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: