skolli143
12 years agoNew Contributor
How to update data source (grid) dynamically ?
Hi,
I have created a project and test case with following steps..
1. Data Source ( Type Grid) - 9 input values
2. REST Request ( which takes values from data source)
3. Groovy Script ( some logical operations)
4. Data Loop
Task : At the moment I am using fixed data in data source, but I want to change the values in Data Source (Grid) from REST Service JSON response. So I can update the Data Source dynamically from JSON response.
Json response for an api returns the 9 values which I need in Data Source.
Is anyone come across this kind of scenario and any help will be appreciated ..
My Thoughts :
1. Write Script to parse the JSON Response and store values in an array/list
2. Then transfer them to Data Source by some sort of scripting.
Please help me in achieving step 2 if possible.
Regards,
Suresh
I have created a project and test case with following steps..
1. Data Source ( Type Grid) - 9 input values
2. REST Request ( which takes values from data source)
3. Groovy Script ( some logical operations)
4. Data Loop
Task : At the moment I am using fixed data in data source, but I want to change the values in Data Source (Grid) from REST Service JSON response. So I can update the Data Source dynamically from JSON response.
Json response for an api returns the 9 values which I need in Data Source.
Is anyone come across this kind of scenario and any help will be appreciated ..
My Thoughts :
1. Write Script to parse the JSON Response and store values in an array/list
2. Then transfer them to Data Source by some sort of scripting.
Please help me in achieving step 2 if possible.
Regards,
Suresh