Snooz82 / robotframework-datadriver

Library to provide Data-Driven testing with CSV tables to Robot Framework
Apache License 2.0
131 stars 37 forks source link

[Enhancement] Extension Point to extend `get_data_from_source` for all readers #99

Open Noordsestern opened 3 months ago

Noordsestern commented 3 months ago

Hi,

i have a project with CSV reader (generic and specific), XLSX Reader and potentially JSON soon. As we have mass data being pumped threw RFW test cases, I would like to modify the test data on the fly, for instance limiting the number of rows processed by data driver to 10 (as example) when a specific variable is set..

Currently I implement a CustomReader for each datadriver reader inheriting the original reader:

All these reader override get_data_from_source and return only the first i.e. 10 test cases of the data source.

Now instead of asking for another attribue for DataDriver, I thought maybe, it would be more convenient to provide some kind of extension point, where users could manipulate the test data.