Closed montsamu closed 3 years ago
We use this approach at SAS Institute Inc. instead of creating a "trivial" CSV file like:
Test Cases ,${file_name} a_test,a_test.json b_test,b_test.json c_test,c_test.json
(An earlier implementation of our use here actually did generate a temporary .csv file like this using config_keyword, before we moved to using the DataReader approach directly.)
included in DataDriver 1.1.0!
Thanks @montsamu
This module implements a robotframework-datadriver DataReader to turn a glob pattern of files into a csv interface.
Future improvements may include additional flexibility for additional test template arguments drawn from the files, whether JSON key, YAML key, etc. and allowing a custom function to generate test case names from the files instead of simply using the file base name.