Katalon Studio Tutorial: A Free Test Automation Tool You Have Been Waiting For

By Vijay

By Vijay

I'm Vijay, and I've been working on this blog for the past 20+ years! I’ve been in the IT industry for more than 20 years now. I completed my graduation in B.E. Computer Science from a reputed Pune university and then started my career in…

Learn about our editorial policies.
Updated March 1, 2024

Katalon Studio is a wonderful free tool for test automation. We have provided a detailed Katalon Studio tutorial for your benefit:

Test Automation is one area where there is always a constant quest for betterment, simplicity, robustness and ease of use.

Some tools can help create robust, light and maintainable scripts, but are hard to use. Others are easy but create brittle and temperamental tests. There is always a choice we have to make – we win some, we lose some.

Given this situation, when a tool comes forward with a promise to solve the pain points, it is but natural to be excited.

Over the past week, I have been working on a simple yet strong automation software, Katalon Studio.  This came with the UI capabilities that I have missed in Selenium WebDriver based automation and the flexibility that UFT eludes. And, it is totally free.

Katalon Studio

Katalon Studio Tutorial

=> If you are interested in knowing more, we have already covered one review post about this free tool here: Katalon Studio review

For today’s Katalon Studio tutorial, I put the theory to test and installed Katalon Studio 4.5.

Katalon installation and start up

First off, the installation is super simple.

Follow these steps:

#1) Go to Katalon Studio and click on “Download”.

(Note: Click on any image for an enlarged view)

katalon

You will need a valid email to activate your Katalon account. My personal email works – I registered with my Gmail.

Katalon account

#2) Choose the download version that you need

download version

#3) Once download is complete – Go to the folder on your computer and click on Katalon.exe (I am using Windows)

#4) Set up starts:

Set up starts

#5) Enter your account info that you used to sign up:

Enter your account info

Done – Katalon launches and you are ready to automate!

Katalon User Interface at a glance!

I can point you to each and every item and icon you will see in the interface, but I will be reinventing the wheel if I do so. As Katalon User guide has already done that for us.

Here is a picture from Katalon documentation that is super helpful in getting familiar with the interface:

Katalon documentation

Let’s create our first test

Now that we are in, let’s jump into it.

Step #1) Create a new project

Go to File -> New -> Create Project and enter the project name in the window below that shows up:

Create a new project

You will now see your project open up and you will see the following items available in Test Explorer:

Test Explorer

Step #2) Add objects to the repository

There are many approaches you can take to creating your test case. Record your test or generate lines of code after adding the objects first. I am following the latter approach here.

Here is what I need to do now: Spy my application and add objects. To do this, go to the Object repository tab- and since I am working on a web application I will click on “Spy Web” option.

Spy Web

The below Object Spy window opens up. Enter the start URL and choose what browser it should open up in.

starting URL

This will launch the URL in the browser selected. I am going to ‘http://carguruji.com/shop’ on chrome.

As you can see, whenever you hover over or mouse-over an object on the page, it shows a way you can capture the object:

capture the object

Capture all the objects you need for the test by pressing “Alt+~” the objects that will now show in the Object repository window under captured objects:

Object repository window

When you have all the objects available, click on “Add to Object Repository”

Add to Object Repository

At the end of it, you should have all the objects you need for your test under the Object Repository in the folder structure of your choice:

folder structure

We are now ready to add the steps to the test.

Step #3) Create test case

Here is what I want my test case to do:

  1. Launch the site
  2. Search for DVD
  3. Click on “A bug’s life” DVD
  4. Check if the price displayed is $35.99

This might not be a perfect test, but this will be done for demo purposes.

Let’s create the steps in Katalon.

Navigate to the Test Cases node in the Test Explorer. Right click and ‘New ->Test Case’. Enter the test case name and the description below. I am going to call this “ViewProductPrice” test case.

New Test Case

A brand new tabular format opens up:

tabular format

Selenium IDE users will find this instantly familiar as this has a very similar appearance to it. However, I find this closer in behavior with the HP UFT/QTP keyword view because it lets you add output variables, looping statements, etc.

looping statements

Step #4) Add test steps

To add test steps, simply click on “Add” and on the newly inserted row click on the “item” column to add a keyword/method/action that you intend to perform.

For example: The first thing I want to do is “Open Browser” and go to a certain URL.

Here is how you can do that:

Open Browser

So, click on the following things to complete the respective tasks:

  • Item: Choose what to do
  • Subject: Where-on what object
  • Input: How to supply the step
  • Output: Where to store the return value

Similarly, keep adding all the steps. It is a good idea to add some description to each step as it will make more sense when you are re-reading the test. To do so, click on the description column and enter the description below:

description column

This is how your test will appear:

your test would appear

Once done- You are ready to run.

But before that, let me quickly show you the “Script” view of this script. Click on the “Script” tab on the bottom of the page to see the script mode:

Script

Users who are much more comfortable working from this mode can use this over the manual mode.

Step #5) Run your test

To run your test, click on “Run” from the menu and alternately you can choose the browser you want this to run on.

Run your test

Run your test 1

Once done, your test results will show below:

your test results

Step #6) Improve

Now that you are done with your first test, here are a few next steps:

  • Create more tests, add them to the test suite and run them all at once
  • View test reports after test suite execution
  • Parameterize your tests
  • Includes error handling, etc.
  • Create custom keywords/packages
  • Call testing and reuse code

Katalon New Features

I used Katalon 4.5 version. This is currently the latest version of Katalon available for download. Since I have not experienced the earlier versions first hand, I cannot make a claim about knowing what has improved from before.

But when I looked at the documentation I was glad Katalon brought the following features into its ensemble because these are some of the things I have enjoyed using:

1) In-module help: When you click on the “?” in the test case module it takes you to the help documentation page that shows information about the test case manual mode. Likewise, each module has handy help for that portion of the tool in the form of an embedded help icon.

In-module help

2) Content assist in script mode: I seriously don’t know what to do when the IDEs stop prompting me to object to names and method calls/syntaxes. 🙂

3) Renaming test execution reports: Unless we have super human memory it is impossible to know which test ran at what time and what date- but imagine that is the only way to find your test results. Thankfully, with version 4.5 of Katalon, you can rename a test execution report to a more descriptive name.

For a full list of improvements, check out the Katalon 4.5 release notes here at: https://docs.katalon.com/display/KD/Version+4.5

What is good about this tool?

1) Easy to install. Works on the most common Operating systems and Browsers: https://docs.katalon.com/display/KD/System+Requirements

2) Web, Mobile, and WebService testing – All in one

3) Completely free to use

4) Works for both technical and non-technical testers

5) Eliminates the complexity of setup and framework definitions in which tools such as Selenium pose

6) Brings the robust QTP-like UI/Object recognition to a free automation tool- You can add multiple properties to recognize an object and not have to choose/guess which locator works best.

add multiple properties

7) Support data driving your tests inherently: Test data can be created in the tool itself or can be picked up externally from Excel sheets or database.

Excel sheets or database

Supports the following Databases:

Databases

8) Integrate with requirement management and test management tools JIRA and qTest respectively. The integration is easy to establish with the help of a quick set up wizard. So, technical tool administrators are not necessary to make Katalon talk to the test management counterparts.

qTest

9) Run multiple tests at once as a Test Suite

10) Git integration for source code management and sharing

11) Robust debugging and reporting

12) Built-in error handling- No more try and catch blocks, no more complex functions to gracefully exit your failed script. Define what needs to happen when your test fails in the project settings:

Built-in error handling

What could be better?

Please note that I am nitpicking here:

  • The UI is at times a little clunky.
  • If there is an error in the script mode, it does not let you navigate back to manual mode – I found this limiting at times.

Conclusion

Finally, “Does Katalon Studio live up to the promise?”- I would say, YES! Although I have not tried the web services and mobile testing part of the tool yet, I am fond of its web testing capacity.

Also read =>> Browser automation testing for Start-ups

If you need a free automation tool that does not require complex technical knowledge and setup, this might be super helpful.

Recommended reading =>> Best Tools for Automated Unit Testing 

You can also explore more and learn more about this tool with the help of video tutorials.

About the author: This hands-on tutorial is written by STH team member Swati.

Hopefully, this article has given you the basic details to get started. Please give it a try and let us know your feedback. If you are already a Katalon user, do share your experiences.

Further reading =>> Fault Tolerance Testing using Katalon Studio

Was this helpful?

Thanks for your feedback!

Recommended Reading

40 thoughts on “Katalon Studio Tutorial: A Free Test Automation Tool You Have Been Waiting For”

  1. Check out accelQ. it’s a natural english language automation. very powerful engine, integrated data modelling and scenario design.

    Reply
  2. Hi,
    Can I start my testing from a “.exe” file as oppose to web address please?
    I would greatly appreciate a quick response on how to go about that.
    Thank you kindly

    Reply
  3. Hi @Sher

    I can capture ‘User Name’ and ‘Password’ field successfully on Chrome without no issues.
    Please try to HOLD ‘Alt’ key and then press ‘~’ key to try again? I guess sometimes the combination keys you press get lagged and delayed on browser.
    Thanks.

    Reply
  4. I have checked out the tool for about three weeks and its features are cool! The tool is easy to use and suitable for testers with less programming skills. Also, the folks who support me with my issues are nice.

    Reply
  5. I have to automate flex application using Katalon studio. But I am not able to identify the objects in my application. Please give me a solution for this.

    Reply
  6. Hi,
    I try to run test script above and unfortunately get failure on step no (8) with message: FAILED because (of) Unable to click on object ‘objectRepository/ViewProductPrice/Page_SoftwareTestingHelp.com eComme(1)/img……
    How to fix this..?
    Thanks

    Reply
  7. Please use the latest version (4.6). That hotkeys can be changed from Preferences -> Object Spy settings in 4.6, so you can change it to the hotkeys you want.

    Reply
  8. hello, I tried this, but in the browser it is giving trouble to click on simple hyperlink “login” link, I have created a sample test case where it enters username and password and should login to the app, but it isn’t doing that and throwing element not found exception. It worked fine with selenium, pls help.

    Reply
  9. I want to to select all the child node of parent node in an array variable .
    liKe

    As above I need to selection all the li tags and do the operation on each li

    Reply
  10. This tool will eat many selenium automation tester job.
    Now question is why company will hire automation tester with coding skill if manual tester can do automation with this tool.

    Reply
  11. How can I use Object’s Properties to verify? For Ex: I have
    Object=span_2
    Property text=value=2
    I wanted to know during run time, if this objects property’s text value=1 or 2.

    Please guide

    Reply
  12. Alt+~ is not working for me, can someone help plz.
    ~is a combination of Alt Gr and (^¨~) key, so it means that I need to press Alt + Alt Gr + (^¨~) + space ???
    On the other hand I tried all kind of combinations it’s not working.

    Reply
    • @Laxshmi to automate flex application s we can’t use selenium/ these kind of software s .. we can go for sikuli, even that is not effective .. this on area automation guys need to focus on for better tool ..

      Reply

Leave a Comment