Forum Discussion
Yes, I want to create my own "table"/"data grid" with code and then use its data to make some api calls repeatedly. I do not want to use the static/fixed data grid of ReadyAPI. Thanks.
This is the kind of code I expect:
DataSource:
"Table" tab = new Table()
//Code to fill the table.
DataSourceLoop:
Table tab = DataSource.getResult();
FOR each row, iterate through columns & use column values in to make api call in REST api step.
Why not an initial Groovy step that creates the data for the test and saves it to a file. Then use plain old Data driven tests to read the data from the newly created file.
You don't have to use Ready API/Groovy to create the data, you could use whatever you want, but I suppose it would be tidier all in Ready API.
Re "FOR each row, iterate through columns & use column values in to make api call in REST api step.", are you trying to make something truly dynamic that can fit any number of rows and columns? If so, how are you going to build your payload based on the columns in the row?