I am trying to run a set of steps for testing the processing of files in a given folder. I would like to be able to see each processed files result rather than one executing to the first failure.
Instead of having a step to populate a List for each test file in a directory and then have steps to loop through this list in order to process each file then compare output to expected results, I am hoping it is possible to use Scenario Outline to make it so I can be more specific in my tests.
For example, instead of this:
# Feature Details ...
Scenario:
Given I have some data
When I process the data
Then I expect the output to be consistent
I would like something like:
#Feature Details:
Scenario Outline:
Given I have a file <file>
When I process the data
Then I expect the output to be consistent
Example:
| file |
| ?? |
Where ?? will locate a list of files in a given directory. Is this even possible?
Aucun commentaire:
Enregistrer un commentaire