Ludo15101966
6 years agoContributor
Groovy and File datasource
Hello,
I'm using Ready Api 2.6 to test REST web services
I'm trying to access to a File Datasource (CSV) with groovy script
I have created a File datasource in my testcase, the list of items seems ok, good columns name and data
Im creating a groovy script to generate a POST json to include in a REST web service step
I'm looking for sample groovy script to access to the datasource infos
- number of data lines
- loop through rows
- get columns values for a specific row
I've found some expand example but i didnt succeed to user them correctly
Do you have some example that i can use and adapt
Thank you
Best regards
Ludovic