Ask a Question

Data Source - Fetch all configuration data of a given property

mparmentier
Occasional Visitor

Data Source - Fetch all configuration data of a given property

Hi,

I have added a Data Source object in one of my test case combined with a Data Source Loop to iterate through the data in a grid.

However, at one point, I would like to retrieve all the data from the grid in a groovy script (and not only the current row).

How can I achieve this? I have already tried to use the 'Get Data' context menu from within the groovy script but I only managed to get the current iteration row and not the entire grid.

mparmentier_0-1663830421146.png

mparmentier_1-1663830476848.png

 

 

1 REPLY 1
Terkon
Contributor

Hi,

 

I never did this, but this guy shows how to get the data out of the grid.

 

https://community.smartbear.com/t5/ReadyAPI-Questions/Groovy-reading-from-Data-Source-Grid/td-p/1522...

 

I would then read all rows into an array with a loop and work from there

cancel
Showing results for 
Search instead for 
Did you mean: