How to get variable value in groovy script


#1

ResponseObject response = WS.sendRequestAndVerify(findTestObject(‘Operations/Addition’, [(‘variableA’) : variableAA, (‘variableB’) : variableBB]))
KeywordUtil.logInfo(response.getBodyContent())

image

using direct variable name is not working, any help would be appreciable.

Thanks.


#2

What, exactly, isn’t working? What error are you getting, if any? What is the expected behavior vs. the actual behavior of your script?


#3

I was getting underline variable. So i thought its not resolved. But actually its retrieving the data.
Thanks !