subhaD
6 years agoContributor
groovy : context expand variable parametrize user defined variable
I am trying to pass variable in to context.expand to get data from response, having trouble with this, any quick response is appreciated
def aaa = context.expand( '${1st Call#Response#$[\'data\'][\'res\'][\'b\'][0][\'aaa\']}' )
def response = context.expand( '${2nd call#Response#$[\'data\'][\'res\'][\'reportDownloadUrls\'][\'547851482\']}' )
I want to pass aaa variable instead of 547851482
I am writing this in groovy script test step, help debug this