Forum Discussion

bgoh29's avatar
bgoh29
Occasional Contributor
3 years ago

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,...
  • bgoh29's avatar
    bgoh29
    3 years ago

     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.