Accessing Test Case Variable with type map

I created a Test Case in Katalon Studio 8.2.5 and I’d like to pass a lot of variables into it using a map.


I am calling the TestCase as follows:

Map<String, String> config = [
  ('addressPickupPlace'): 'AUTOFILL',
  ('contactPickupPlace'): 'REQUIRED'
Map<String, String> data = [:]
    [('fieldConfig') : config, ('fieldData') : data], FailureHandling.STOP_ON_FAILURE)

However, I have no idea on how to access that map or rather the values inside it.
I looked on the documentation, but have only found guides on how to access String TC variables.

I have tried to access addressPickupPlace using:


This results in:

groovy.lang.MissingPropertyException: No such property: addressPickupPlace for class: org.codehaus.groovy.runtime.GStringImpl

I have also tried:


This results in: groovy.lang.MissingPropertyException: No such property: $fieldConfig for class: Script1676977203533

I am now out of ideas. Can anyone help me?

Okay, I have found the solution, by accidentially clicking on the correct spot in the manual Test Case Configuration, so that Katalon generated the correct expression for me, lol.
The solution is to simply not use the $ and treat the Test Case variable like any other variable that was defined in the code.
And as per Groovy-Syntax I’d access the addressPickupPlace property with either dot . or brackets [], as follows:



$ is usually used with string interpolation, see:

not needed in your case as you already figured it out, since you need to access the variable directly.