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

Is it possible to intersect examples #1390

Closed
vvval opened this issue Jun 1, 2022 · 1 comment
Closed

Is it possible to intersect examples #1390

vvval opened this issue Jun 1, 2022 · 1 comment

Comments

@vvval
Copy link

vvval commented Jun 1, 2022

Let's say I have a dozen of param_1 and a dozen of param_2 values and I want to check the scenario against all of the combinations. I have to seed examples with each pair of values.

Examples:
| param_1          | param_2          |
| param_1_value_1  | param_2_value_1  |
#..
| param_1_value_12 | param_2_value_1  |
| param_1_value_1  | param_2_value_2  |
#..
| param_1_value_12 | param_2_value_2  |
#..
| param_1_value_12 | param_2_value_12 |

Is it possible to make this definition simpler like this?

Examples:
| param_1          |
| param_1_value_1  |
#..
| param_1_value_12 |
Examples:
| param_2          |
| param_2_value_1  |
#..
| param_2_value_12 |

So that in each scenario iteration I will have 2 values of param_ and param_2

@stof
Copy link
Member

stof commented Jun 1, 2022

No, there is no such thing in the Gherkin language, and Behat won't invent a custom feature deviating from the gherkin syntax (the work is rather on becoming more compliant with the official Gherkin syntax)

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

No branches or pull requests

3 participants