Debian Codegraph @

features/context.local_params.feature

raw
1 Feature: Local Context Parameters defined in Scenarios (Steps)
2
3 . SPECIFICATION:
4 . * When a step adds/modifies an attribute in the Context object,
5 . then its value is only available to other steps in this scenario.
6 . * After a scenario is executed all Context object changes are undone.
7
8 Scenario: Add Local Context parameter in Scenario/Step
9 Given the behave context does not have a parameter "local_name"
10 When I set the context parameter "local_name" to "Alice"
11 Then the behave context should have a parameter "local_name"
12 And the behave context should contain:
13 | Parameter | Value |
14 | local_name | "Alice" |
15
16 Scenario: Ensure that Local Context parameter is not available to next Scenario
17 Then the behave context should not have a parameter "local_name"