Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
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
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