How to take key which defined in json data bank's custom column name box in the groovy script?
I want to use variable in groovy script which I have defined in json data bank's custom column name section.
Tagged:
0
Best Answer
-
jakubiak Posts: 717 admin
Do something like the following, where you call the "getValue()" method in the ScriptingContext object, passing "Generated Data Source" as the data source name and the name of the custom column:
import com.parasoft.api.*; import soaptest.api.*; String doSomething(ExtensionToolContext context) { String value = context.getValue("Generated Data Source", "value1"); }
5
Answers
Thanks @jakubiak this is very helpful and it is working as expected.