How can I access a JSON Databank value in a Extension Tool using groovy.

Options
rickstag
rickstag Posts: 16 ✭

I get the value from a response in a JSON databank. I can use that value in a next Test Rest Client call in the Headers by accessing ${varName}. I want to access that value in an Extension Tool. Is this possible? I have tried ${varName} and context.get(varName) but always getting the error avax.script.ScriptException: groovy.lang.MissingPropertyException: No such property.

Comments

  • jakubiak
    jakubiak Posts: 833 admin
    Options

    Use getValue("Generated Data Source", "") since you reference databank values using the data source API calls.