No Variables Listed When Using the List Variable

Trying to use the List variable.

I was trying to add a Value Type of Variable, but none of my variables are showing up. Why would that be?

Thank you!

We will need more information. Try following the tips in this post:

Dear Katalon teams,

i want to revive this topic, because i have the same issue. i think it should be a bug-tagged post.

So i create 2 simple variable, 1 is a map, and the other is list. I want to add the map to the list, but nothing show up in the dropdown view. i already save the file.

The screenshot of this activity and my katalon studio version is below:

katalon_version

thanks for the fast reply,

oohh i see,

in that case, i have 2 more question:

  1. what kind of Variable the list can take?

  2. about this statement “However, you can create a variable named ModuleFieldList variable as List type which contains a Map object which contains ['FieldName':'pk_id', 'FieldLabel':'Checklist', ...] .”,

the problem is, i dont see a Map type when adding list value,

I regret that I made a careless response. To tell you the truth, I rarely use the “Variables” feature of Test Cases, so that I do not have enough experience about it. I have no idea how “Varaibles” of Test Cases are implemented.

Sorry, I do not know.
When I checked the Katalon Studio GUI, I found several other mysterious types such as Property, Method call — I have no idea what these types are.

Ya, I am wondering why as well. I guess that the Katalon developer was a bit lazy.

In the official document Types of Variables, I can not find any informative description about the types such as Variable, Method call, Property.

i think Method call is when you create a function/method which return something in script, you can call the method in variable using this. i don’t know about Property.

For now, i define my list of map in Script tab.
But i want to move it to Variable tab because there is a probability in the future i need to handover this to someone who doesn’t know much about script, so it will easier for them to just play with the GUI.

I found that a Test Case Variable of List type can contain an instance of GlobalVariable. A GlobalVariable is actually an instance of java.util.Map. Therefore a Test Case Variable can indirectly/effectively contain a Map. This might be useful for you.


It would be an idea for you to use GlobalVariables instead of Test Case Variables. I always prefer GlobalVariables to Test Case Variables because GlobalVariables are implicitly shared by multiple test cases in a Test Suite, and this is useful in many cases.

Thanks for the reply,

Yes, somehow Test Case Variable List can contain GlobalVariable Map, while not for the local Map Variable itself… interesting.

Even though i prefer the local one in this case, because there are some variables that not used globally, so rather than occupying more space in GlobalVariable, which add more scrolling-effort to find the targeted variable, i separate them in the Test Case itself.

Except if there are search or alphabethical sort feature in the GUI to lessen the effort of scrolling for GUI users. Well, they can just switch to Script view, and Ctrl/Cmd + f to find and edit the targeted variable, but it become GUI-less-friendly.

Hoping in the future there will be search/alphabethical order feature and local variable List of Map, or may be not.

But for now, i think GlobalVariable is the cleanest-GUI solution.