{"id":84,"date":"2025-09-06T09:44:25","date_gmt":"2025-09-06T09:44:25","guid":{"rendered":"https:\/\/blog.kerjarapi.com\/?p=84"},"modified":"2025-09-06T10:14:12","modified_gmt":"2025-09-06T10:14:12","slug":"katalon-studio-test-suites-and-profiles","status":"publish","type":"post","link":"https:\/\/blog.kerjarapi.com\/?p=84","title":{"rendered":"Katalon Studio Test Suites and Profiles"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>In Katalon Studio, a <strong>Test Suite<\/strong> is a collection of test cases grouped together to be executed sequentially. After running a Test Suite, Katalon Studio will generate a report that shows the overall result of the Test Suite and each Test Case in the Test Suite. Test Suites are suitable for regression testing or smoke testing and it allows the tester to rerun them whenever you make changes to your application.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Create a Test Suite from our Test Cases<\/h2>\n\n\n\n<p>To create a Test Suite, just right-click on the \u201cTest Suite\u201d folder and choose \u201cNew\u201d &gt; \u201cTest Suite\u201d. After naming the Test Suite, we can click on \u201cAdd\u201d and in the \u201cTest Case Browser\u201d window, check on the Test Cases to add to the Test Suite. Once that is done, we now have a Test Suite that\u2019s ready to run. On the right side of each row (or each Test Case), there\u2019s a column \u201cRun\u201d, and you can check or uncheck this to select which Test Cases we want or don\u2019t want to run. When everything\u2019s all set, click on the \u201cRun\u201d button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"155\" src=\"https:\/\/blog.kerjarapi.com\/wp-content\/uploads\/2025\/09\/image-16-1024x155.png\" alt=\"\" class=\"wp-image-85\" srcset=\"https:\/\/blog.kerjarapi.com\/wp-content\/uploads\/2025\/09\/image-16-1024x155.png 1024w, https:\/\/blog.kerjarapi.com\/wp-content\/uploads\/2025\/09\/image-16-300x46.png 300w, https:\/\/blog.kerjarapi.com\/wp-content\/uploads\/2025\/09\/image-16-768x116.png 768w, https:\/\/blog.kerjarapi.com\/wp-content\/uploads\/2025\/09\/image-16.png 1101w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Create Profiles and Global Variables<\/h2>\n\n\n\n<p>In one Test Suite, we can use the same global variables. The global variables can be set in our Profiles. To do that click on the \u201cProfile\u201d folder, click on \u201cNew\u201d > \u201cExecution File\u201d > input your profile name. Once the profile is created, double click on it to open. Here, click on \u201cAdd\u201d, then give the name of the variable, value type, and value. For example, I have created a global variable called \u201cusername\u201d with a string value type and the value of \u201cuser001\u201d.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"587\" height=\"270\" src=\"https:\/\/blog.kerjarapi.com\/wp-content\/uploads\/2025\/09\/image-17.png\" alt=\"\" class=\"wp-image-92\" srcset=\"https:\/\/blog.kerjarapi.com\/wp-content\/uploads\/2025\/09\/image-17.png 587w, https:\/\/blog.kerjarapi.com\/wp-content\/uploads\/2025\/09\/image-17-300x138.png 300w\" sizes=\"auto, (max-width: 587px) 100vw, 587px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"488\" height=\"214\" src=\"https:\/\/blog.kerjarapi.com\/wp-content\/uploads\/2025\/09\/image-18.png\" alt=\"\" class=\"wp-image-93\" srcset=\"https:\/\/blog.kerjarapi.com\/wp-content\/uploads\/2025\/09\/image-18.png 488w, https:\/\/blog.kerjarapi.com\/wp-content\/uploads\/2025\/09\/image-18-300x132.png 300w\" sizes=\"auto, (max-width: 488px) 100vw, 488px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"563\" height=\"202\" src=\"https:\/\/blog.kerjarapi.com\/wp-content\/uploads\/2025\/09\/image-1-6.png\" alt=\"\" class=\"wp-image-86\" srcset=\"https:\/\/blog.kerjarapi.com\/wp-content\/uploads\/2025\/09\/image-1-6.png 563w, https:\/\/blog.kerjarapi.com\/wp-content\/uploads\/2025\/09\/image-1-6-300x108.png 300w\" sizes=\"auto, (max-width: 563px) 100vw, 563px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Using a Global Variable in Test Case and Test Suite<\/h2>\n\n\n\n<p>This username variable (the global variable) can be used for all Test Cases inside one Test Suite. In the Test Case script view, this is how to call the global variable called \u201cusername\u201d:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>GlobalVariable.username\n<\/code><\/pre>\n\n\n\n<p>Or in the manual view, for example we want to set text to a textbox with the value of the global variable username, click on \u201cAdd\u201d &gt; \u201cWeb UI Keyword\u201d, choose \u201cSet Text\u201d, choose the object, then double click on the Input cell, and change the \u201cValue Type\u201d into \u201cGlobal Variable\u201d. Now double click on the \u201cValue\u201d cell and choose the \u201cusername\u201d variable. When all are set, click \u201cOK\u201d.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"692\" height=\"498\" src=\"https:\/\/blog.kerjarapi.com\/wp-content\/uploads\/2025\/09\/image-2-5.png\" alt=\"\" class=\"wp-image-87\" srcset=\"https:\/\/blog.kerjarapi.com\/wp-content\/uploads\/2025\/09\/image-2-5.png 692w, https:\/\/blog.kerjarapi.com\/wp-content\/uploads\/2025\/09\/image-2-5-300x216.png 300w\" sizes=\"auto, (max-width: 692px) 100vw, 692px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"692\" height=\"147\" src=\"https:\/\/blog.kerjarapi.com\/wp-content\/uploads\/2025\/09\/image-3-3.png\" alt=\"\" class=\"wp-image-88\" srcset=\"https:\/\/blog.kerjarapi.com\/wp-content\/uploads\/2025\/09\/image-3-3.png 692w, https:\/\/blog.kerjarapi.com\/wp-content\/uploads\/2025\/09\/image-3-3-300x64.png 300w\" sizes=\"auto, (max-width: 692px) 100vw, 692px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"690\" height=\"136\" src=\"https:\/\/blog.kerjarapi.com\/wp-content\/uploads\/2025\/09\/image-4-2.png\" alt=\"\" class=\"wp-image-91\" srcset=\"https:\/\/blog.kerjarapi.com\/wp-content\/uploads\/2025\/09\/image-4-2.png 690w, https:\/\/blog.kerjarapi.com\/wp-content\/uploads\/2025\/09\/image-4-2-300x59.png 300w\" sizes=\"auto, (max-width: 690px) 100vw, 690px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Before running the Test Suite, don\u2019t forget to choose the Profile we want. To do that, there\u2019s a dropdown at the top right of Katalon Studio. This dropdown will show all of the Profiles.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"741\" height=\"172\" src=\"https:\/\/blog.kerjarapi.com\/wp-content\/uploads\/2025\/09\/image-19.png\" alt=\"\" class=\"wp-image-94\" srcset=\"https:\/\/blog.kerjarapi.com\/wp-content\/uploads\/2025\/09\/image-19.png 741w, https:\/\/blog.kerjarapi.com\/wp-content\/uploads\/2025\/09\/image-19-300x70.png 300w\" sizes=\"auto, (max-width: 741px) 100vw, 741px\" \/><\/figure>\n\n\n\n<p>When the Test Suite is running, it will check on the selected Profile and get the variables\u2019 values. And this values will be used in all of the Test Cases inside the Test Suite. Make sure the Test Cases are using the same variable name as in the Profile.<\/p>\n\n\n\n<p>We can also assign the value to the global variable in a Test Case, for example in script view we can set the global variable of user name as &#8220;user002&#8221;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>GlobalVariable.username = \"user002\"\n<\/code><\/pre>\n\n\n\n<p>This will assign the global variable \u201cusername\u201d with the value of \u201cuser002\u201d. If the global variable already has a value before, it will overwrite and now has the \u201cuser002\u201d value.<\/p>\n\n\n\n<p>Global variables can also be used in Test Objects, Mobile Test Objects, and Web Service Requests by replacing the value with, for example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>${GlobalVariable.username}\n<\/code><\/pre>\n\n\n\n<p>Don\u2019t forget the double quotes\/ single quotes if it is a string. More on this in another blog, <a href=\"https:\/\/blog.kerjarapi.com\/2025\/09\/06\/how-to-parameterize-test-objects-in-katalon-studio\/\" data-type=\"post\" data-id=\"67\">click here<\/a>.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Katalon Studio, a Test Suite is a collection of test cases grouped together to be executed sequentially. After running a Test Suite, Katalon Studio will generate a report that shows the overall result of the Test Suite and each Test Case in the Test Suite. Test Suites are suitable for regression testing or smoke [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,7],"tags":[],"class_list":["post-84","post","type-post","status-publish","format-standard","hentry","category-en","category-katalon-auto"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/blog.kerjarapi.com\/index.php?rest_route=\/wp\/v2\/posts\/84","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.kerjarapi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.kerjarapi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.kerjarapi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.kerjarapi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=84"}],"version-history":[{"count":1,"href":"https:\/\/blog.kerjarapi.com\/index.php?rest_route=\/wp\/v2\/posts\/84\/revisions"}],"predecessor-version":[{"id":95,"href":"https:\/\/blog.kerjarapi.com\/index.php?rest_route=\/wp\/v2\/posts\/84\/revisions\/95"}],"wp:attachment":[{"href":"https:\/\/blog.kerjarapi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=84"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.kerjarapi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=84"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.kerjarapi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=84"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}