Katalon Studio should automatically sort the list of Global Variables

Katalon Studio ver.5.3.1.1 displays the list of Global Variables in the order as each variables were added.
I would rather like the list automatically sorted in alphanumerical order. Sorted list is obviously easy to understand.
Otherwise I would request feature to move each variable up/down in the list.

want_to_reorder_global_variables.PNG

11 Likes

Hi @4280-kazurayam,

Thank you for your feedback. It’s a great suggestion. I have logged a ticket for the development team to further discuss and consider.

Regards,
Liam

3 Likes

HI,

+1. I think it’s a great suggestion as well.

+1 for this.

+1

1 Like

Please!!! Sort da vars!!!

Poorman’s resolution is to edit the code manually by text editor. Here I would show you how. Here I am using Katalon Studio 5.4.2

(1) Stop your Katalon Studio, or close the Project
(2) In Windows Explorer or Mac Finder, locate the project folder
(3) In the project folder, locate Profiles folder
(4) In the Profiles folder, you will find one or more *.glbl file(s). For example, default.glbl

(5) Open the default.glbl file with your favorite Text editor. The file is a xml text like this:

<?xml version="1.0" encoding="UTF-8"?>
<GlobalVariableEntities>
   <description></description>
   <name>default</name>
   <tag></tag>
   <defaultProfile>true</defaultProfile>
   <GlobalVariableEntity>
      <description></description>
      <initValue>'John Doe'</initValue>
      <name>Username</name>
   </GlobalVariableEntity>
   <GlobalVariableEntity>
      <description></description>
      <initValue>'ThisIsNotAPassword'</initValue>
      <name>Password</name>
   </GlobalVariableEntity>
   <GlobalVariableEntity>
      <description></description>
      <initValue>'demoaut.katalon.com'</initValue>
      <name>Hostname</name>
   </GlobalVariableEntity>
</GlobalVariableEntities>

(6) The order of GlobalVariables in UI is (seems to be) determined by the order of <GlobalVariableEntity> nodes in the *.glbl file.

(7) Carefully edit the *.glbl file to sort them as you want. For example

   <!-- moved up -->   <GlobalVariableEntity>
      <description></description>
      <initValue>'demoaut.katalon.com'</initValue>
      <name>Hostname</name>
   </GlobalVariableEntity>
   <!-- also moved up -->   <GlobalVariableEntity>
      <description></description>
      <initValue>'ThisIsNotAPassword'</initValue>
      <name>Password</name>
   </GlobalVariableEntity>
   <!-- down -->
   <GlobalVariableEntity>
      <description></description>
      <initValue>'John Doe'</initValue>
      <name>Username</name>
   </GlobalVariableEntity>

(8) restart Katalon Studio and open the project.

how_to_sort_GlobalVariables_manually.PNG

3 Likes

I also concur on that request

+1 from me too :slight_smile:

Another +1 here, after being clever and raising it as my own thing without first looking to see if someone else had already mentioned it :stuck_out_tongue:

v6.3.0 has

  • Support Move up and Move down items in the default profile
3 Likes