Consider following cucumber scenario:
Scenario Outline: Execute a template
Given I have a <template>
when I execute the template
Then the result should be successful.
Examples:
| template |
| templateA |
| templateB |
So this will run above scenario outline with values mentioned in the table. But this requires me to know all the templates I need to execute in advance and fill them in the table. Is there a way to dynamically load list of templates and then execute the scenario for each of those templates?
Advantage of that approach will be, whenever I add a new template, I wouldn't need to update the feature tests.
Thanks