Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Flintols opened this issue Jan 17, 2023 · 1 comment
Open

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

Flintols opened this issue Jan 17, 2023 · 1 comment

Comments

@Flintols
Copy link

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

@Flintols
Copy link
Author

to be clear: the defined parameters in the spec table are not being used in this particular scenario, the new table is defining those. It seems that if I use the firing_type (from spec) instead of firing_mode (from scenario) it allows it to run, but is not what was intended to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant