I create variable in testcase with value type **List **and one of list are linked to global variable with type value **List **as well.
How to get value “0337507” in global variable??
I create variable in testcase with value type **List **and one of list are linked to global variable with type value **List **as well.
How to get value “0337507” in global variable??
Try
List<String> globalData = GlobalVariable.dataFilterHemo
String value = globalData.get(0)
Jan Zinserling said:
Try
List<String> globalData = GlobalVariable.dataFilterHemo
String value = globalData.get(0)
I think that script direct call the global variable.
But, what i mean is how to get value in globalVariable that is connected to varible in testcase.
if i’am usually use dataFilter[0] to get value of typeData String in that list.
But if the typeData in that list is globalVariable, how i can get the value.
I had try dataFilter[0,0] but get error:
groovy.lang.MissingMethodException: No signature of method: Script1535683025054.filter() is applicable for argument types: (java.util.ArrayList)