If you want to describe your requirements that way, IMO Cucumber is
not the right tool for you. Cucumber is primarily a communication
tool, and you are not communicating anything. An approach that conveys
to the reader the purpose of each scenario would be something like...
(guessing a random domain)
# create the input file
Given a report with a repeated transaction
# you might want to process different types of file, so specify one
instead of using the generic "file"
When the report is processed
# read the output and check the outcome
Then the processed report should have a line with the count of those
transactions
or in a more detailed style...
Given a report with the following transactions:
| date | description |
| 1/2/2003 | payment1 |
| 2/3/2003 | payment1 |
| 3/4/2003 | payment1 |
When the report is processed
Then the processed report should have the following transactions:
| count | description |
| 3 | payment1 |
If all your logic is in the input and output files, you'd rather use
JUnit, RSpec, etc. or even a simple shell script!
Paolo