Wish to use Table Parameters in GAUGE Steps but no clue #1919
firos-mailbox
started this conversation in
General
Replies: 1 comment
-
hi Firos, both assumptions are possible depending on how you use the table. If you run
In this case the step syntax is
If however the scenario were rewritten as :
Gauge will read the table, parse and extract each column value as a variable, iterate over the rows and pass these variables to all steps that refer to it in the scenario. Hope this helps |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
I wish to use Table Parameters in GAUGE Steps.
i.e. "Table parameters are used when a step is executed for multiple values in a table. For a step with an inline table parameter, the entire table becomes the parameter value."
The first line (in the above quoted text) makes me think that the step will be executed as many times as the number of entries in the table passing each column's value as argument to the glue language by the GAUGE framework.
But the second line makes me think that the step will be executed once with the entire table passed as argument and thus it is the job of the step implementation to fetch each entries from the table and use it.
My first assumption is more justified given that GAUGE is a framework and thus that will do the iterative thing i.e. taking each entries in the table and invoking the step. I'm less clear on this front.
The difficulty is I'm seeing nowhere examples even in the official documentation.
In the official documentation, we could see this:
but nowhere could be seen how it is implemented in the step file.
Note: I'm using Python as my glue language.
Could someone who have more insight into this shed some light? Any help is much appreciated. Thanks.
Firos
Beta Was this translation helpful? Give feedback.
All reactions