Forum Discussion
Manoj
13 years agoContributor
Hi,
Similar fashion , I have a scenario where I was to get the XPATH values from properties then pass on to the groovy to find the node values. But I am getting no response... Please guide
Property contains value aa = *.CelciusToFahrenheitResult
------------------------------ below is the groovy where I am trying to fetch the value from the response----------------
def props=testRunner.testCase.getTestStepByName("Properties")
value = props.getPropertyValue("aa")
log.info ("This is value" + "$value" ) // This displays the correct value in log ( *.CelciusToFahrenheitResult)
globalAuthTransfer =context.expand('${CelciusToFahrenheit#Response#value}')
log.info ("This is response" + globalAuthTransfer) // This gives a blank response insted it should give the value from the result.
Note;- I have also tried using $value as well in the above step but no luck. Please guide.
Thanks,
manoj
Similar fashion , I have a scenario where I was to get the XPATH values from properties then pass on to the groovy to find the node values. But I am getting no response... Please guide
Property contains value aa = *.CelciusToFahrenheitResult
------------------------------ below is the groovy where I am trying to fetch the value from the response----------------
def props=testRunner.testCase.getTestStepByName("Properties")
value = props.getPropertyValue("aa")
log.info ("This is value" + "$value" ) // This displays the correct value in log ( *.CelciusToFahrenheitResult)
globalAuthTransfer =context.expand('${CelciusToFahrenheit#Response#value}')
log.info ("This is response" + globalAuthTransfer) // This gives a blank response insted it should give the value from the result.
Note;- I have also tried using $value as well in the above step but no luck. Please guide.
Thanks,
manoj