How do I extract REST query parameters and access them via a Groovy Script
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2015
06:20 AM
08-19-2015
06:20 AM
How do I extract REST query parameters and access them via a Groovy Script
Hi guys,
I have the following REST request, whereby I am submitting 2 query values. I want to use these values in a Groovy script which will be used to connect to a database later in my tests.
GET http://<host>/<path>?postcode=LS1%2000EY&ProductList=10006541
I basically want to extract the postcode and ProductList values.
Any idea on how to do this? I've not found much online around this.
Many thanks,
Mike
Solved! Go to Solution.
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2015
08:57 AM
08-19-2015
08:57 AM
Update: I was able to do this simply by entering:
context.expand(${postcode})
context.expand(${ProductList})
