Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

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: 801 admin
    Options

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