Katalon Automation setup and How to create a simple Test suite.

Shravani Radhakrishna
5 min readOct 6, 2021

Katalon

Katalon Studio is an all-in-one test automation solution for Web, API, mobile, and desktop built for both beginners and expert testers.

Web UI

In this session we are going to concentrate on the Web UI. Some Supported framework as React,Angular and Vue etc

System Requirements:

Os : Windows 7,8,9,10 , MacOS 10.11+, Linux

CPU : Minimum: 2 GHz or faster 32-bit (x86) or 64-bit (x64) processor

Memory : Recommended: 4 GB RAM (32-bit) or 8 GB RAM (64-bit).

Hard Drive : At least 1 GB. Extra space is required depending on project source codes.

Installations:

  1. Register in this site https://www.katalon.com/ free edition
  2. Download the application and install it.

Advantages:

  1. It is freeware tool.
  2. We can provide different modes for writing automation tools.
  3. You can run tests in different browsers.
  4. We can easily integrate with CI tools.

Test suite:

We can write test cases in different modes

  1. Manual mode.
  2. Record and playback mode.
  3. Script mode.

Manual Mode:

This mode is mainly for non testers.We will create a simple Test suite.

Ex: open google site and search for Automation and pick the definition of it

  1. Open the Katalon application.
  2. Click on File > new > project

3 . Enter the project name and by default Web UI is default, leave it the options as it is and click ok.

4 . Right Click on the Test case > New > Test case

5 . Enter the test name and description click ok button.

6 . Click on the side icon > Keywords Browser > select Built-in Keywords > Web UI keywords > Drag and Drop required keyword as per your requirement.

7 . You can add keywords from here

8 . In this Item is the action you want to perform,Object means elements in the browser,Input is text that we want to verify/navigate etc,output is the expected text.

9 . Before this click on the web spy icon at the top to get the Objects of the browser.

10 . After clicking on the web spy icon and giving the url and clicking on the start button at right hand side will find a dropdown with all browsers select one and start.

11 . Later Browser will open and place the mouse on a particular element and ALT + ` symbol to capture the html element obj.

12 . After Selecting the required objects(UI elements) click on save icon and save under the Object repository.

13 . Now we will write the code below is the example code

  • Add the OpenBrowser key by clicking on the Add button at the top.
  • Next add the NavigateToURl key and we have specified the rawURl so clicking on the Input cell will open a popup to get the URL and click ok.
  • Next add the Set Text keyword because after we navigate to the google page we need to type the text in the input bar.Click on the object cell then the object window will open select the input obj.
  • Next add a click event and select the object of the image to avoid the drop down option.
  • Next add the click event and and select the object of the search button.
  • Next add Get Text to get the time taken to fetch the results and specify the object there.
  • Next add Get Text to get the div of the search results and time taken and select the Respective object.
  • Next event is Add Verify element text of the search time and mention the object element and specify the sample input “(0.71 seconds)”.
  • After this add a close event to close the browser.

14. Now after coding please save the file by CTRL + S.

15 . Click on run button at the top.

16 . See it will open a browser window and start executing the test suite.

17 . If the test case is successful, ok otherwise you will see all the steps at the bottom and the reason why it failed also will display at bottom right side.

18 . Successfully we have completed the Manual test case.

This is how we can create a simple automated test case using Katalon tool using Manual Mode in next blog we will see how to create a test case using Record & playback , and script mode.

Thanks for reading the blog please follow and share Keep tuned for more tech blog like this.

Sign up to discover human stories that deepen your understanding of the world.

Shravani Radhakrishna
Shravani Radhakrishna

No responses yet

Write a response