How to update data source (grid) dynamically ?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2013
08:37 AM
06-28-2013
08:37 AM
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
3 REPLIES 3
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2013
02:18 PM
06-28-2013
02:18 PM
Hi!
This is an interesting question. However, if you want SoapUI Pro support (which you are entitled to), you have to post either in the SoapUI Pro sub forum, or use the support contact form at soapui.org.
Thanks!
Henrik O
SmartBear
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
This is an interesting question. However, if you want SoapUI Pro support (which you are entitled to), you have to post either in the SoapUI Pro sub forum, or use the support contact form at soapui.org.
Thanks!
Henrik O
SmartBear
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2013
08:54 AM
07-01-2013
08:54 AM
Hi Henrik,
Thanks for your reply. I have raised a support ticket.
Regards,
Suresh
Thanks for your reply. I have raised a support ticket.
Regards,
Suresh
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2016
08:05 AM
12-05-2016
08:05 AM
Hi, were you able to get this done ?
I have similar question that get type used in data source step in groovy.
If (getTestStep.config.type == "datasource")
As per above if condition i can validate if step is of type data source but what if i want to validate if datasource is of type jdbc ?
I have similar question that get type used in data source step in groovy.
If (getTestStep.config.type == "datasource")
As per above if condition i can validate if step is of type data source but what if i want to validate if datasource is of type jdbc ?
