Getting error when I provide the table at the scenario & step level
balaji2711 opened this issue · comments
Getting error when I provide the table at the scenario & step level
Gauge version: 1.4.3
IDE: VS code
- Create a spec file.
- Provide the table at the scenario & step level
- Observe the spec file.
Actual result: Getting the message as 'Dynamic parameter could not be resolved' and Dynamic parameter could not be resolved. PFA for the screen-shot
Expected result: It should not be thrown any error message.
The same works fine when I provide the table at the feature level.
for table driven scenario see https://docs.gauge.org/writing-specifications.html?os=linux&language=javascript&ide=vscode
you need to set allow_scenario_datatable=true
in your properties file or via environment vars. Steps can only take table as parameters.
can you share a sample project for us to investigate?
I reinstalled the gauge extension in VS code and now I can provide the table at the scenario level not at the step level.
One more issue, have observed in the generated gauge report -
The total executed scenarios are 3 and passed are 3 but in the report, passed count shows as 2 -
Spec file for your reference -
Login Specification
- When I navigated to Login Page
Login to the demo application
tags: sanity
- When I login as "standard_user" using "secret_sauce"
- Then login should be successful
Login to the demo application with examples
tags: sanity
username | password |
---|---|
standard_user | secret_sauce |
performance_glitch_user | secret_sauce |
- When I login as using
- Then login should be successful
possibly because of getgauge/gauge#1299
Ok, Thanks for the update.
Hi @sriv, I'm getting an error message when I provide the table at the step level. Already the below flag is enabled in default.properties file -
Enable scenario datatable
allow_scenario_datatable = true
Scenario is the H2 header starting with ##
. Scenario datatable has to be under it. You seem to have placed it as a step parameter
Ok, Got it, Thanks.