bgoh29
3 years agoOccasional Contributor
how do I access value from query in Groovy script
How do I get value from the query in the Groovy script?
I can get the values from the Response by using for example:
def driverId = context.expand('${userInfo#Response#$id}')
However, if I want to get the value of the query parameter to-date, in this example, what do I put in ${ }
?
Thank you, KarelHusa,
I tried the #testcase#todate solution, didn't quite work for me. However, I discovered a custom properties tab where I can access the values I was looking for without adding too much work for myself. My Groovy script will use the line of code context.expand to access those values using #testStep#propertyname. Thank you for pointing me in the direction of looking for information.