Skip to content

Table in scenario not registering variables if table also in spec #2317

@Flintols

Description

@Flintols

Describe the bug
Some of our tests have a table in the scenario as well as in the spec. I tried to run one of these scenarios by running the spec via the gauge run command, and it gave me an error when it did the pre-run check, saying it did not recognize the variable in the scenario. When I run just the scenario, it works as desired.

To Reproduce
Steps (or project) to reproduce the behavior:

  1. Initialize a gauge project
  2. Run the gauge command
  3. See error

[Gauge]
Failed to execute Specification Name Of Spec : Accessing an invalid parameter (variable_name)

Expected behavior
run using the defined variable in the scenario table

Screenshots
scenario_error

Versions:
Gauge version: 1.1.7
Commit Hash: 5d86b72

Plugins

html-report (4.1.4)
python (0.3.15)
screenshot (0.1.0)
spectacle (0.1.4)

  • OS: Standard Windows10 20H2
  • Runner info: Python
  • IDE info: VS Code

Additional context

ScenarioStep
spec_table

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions