Normal Scenarios must reset Example Context

Description

Normal scenarios must reset example context objects, this prevents re-usage from steps with default retention level (example) when using normal scenarios.

How to reproduce:

Create a feature with two normal scenarios. Store something in context using default retention level (example).

Feature:
As a user
I want to perform an action
So that I can achieve a business goal

Scenario: scenario description
Given a system state
When I do something
And store something in context
Then system is in a different state

Scenario: Second scenario description
Given a system state
When I do something
And store something in context
Then system is in a different state

This is related to https://jbehave.atlassian.net/browse/JBEHAVE-1172#icft=JBEHAVE-1172

Activity

Show:

Mauro Talevi December 12, 2016 at 4:32 PM

Pulled with thanks!

RafaelJ December 12, 2016 at 4:13 PM

PR https://github.com/jbehave/jbehave-core/pull/133 has been created, sorry for the inconveniences.

Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created December 12, 2016 at 4:03 PM
Updated May 25, 2017 at 6:07 PM
Resolved December 12, 2016 at 4:32 PM

Flag notifications