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.
Table of Contents:
Katalon Studio
=> 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)
You will need a valid email to activate your Katalon account. My personal email works – I registered with my Gmail.
#2) Choose the download version that you need
#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:
#5) Enter your account info that you used to sign up:
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:
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:
You will now see your project open up and you will see the following items available in 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.
The below Object Spy window opens up. Enter the start URL and choose what browser it should open up in.
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 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:
When you have all the objects available, click on “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:
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:
- Launch the site
- Search for DVD
- Click on “A bug’s life” DVD
- 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.
A brand new tabular format opens up:
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.
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:
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:
This is how your test will 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:
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.
Once done, your test results will show below:
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.
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.
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.
Supports the following 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.
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:
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
Check out accelQ. it’s a natural english language automation. very powerful engine, integrated data modelling and scenario design.
@ bouchra: I believe Katalon Studio can only support web, api and mobile testing for now, not exe file.
Cool, very easy to use and solved almost my demands. Let’s see testcase/testsuite management how great it is 🙂
Hi,
I need to upload a document in manual mode.Couldn’t upload it.Can anyone help me?
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
Hi Everyone.
Does the tool support cucumber test framework?
Thanks you
@ #24 NM Alt+~ and also give mouse left click at a time. it will capture
Can it be used for desktop application automation?
Is it possible to automate iPad applications on windows?
Thank you Sean.
@Lakshmi: Do you have any sample page of ‘flex application’? I don’t understand what ‘flex application’ is
@Harsha: Katalon Studio is built on the top of Appium, which does not have support for testing iOS on Windows yet
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.
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.
@Arun Kumar G + Rajesh
Right now, Katalon Studio can be used for testing Mobile App and Web.
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.
Great Tool!! Thanks for sharing it with tutorial..
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
Hi,
I’m unable to capture object by clicking ALT+~ using chrome
Try to change hotkey setting of Object Spy from Window–>Katalon Studio Preferences. Then it will capture objects.
I believe it is similar to the robot framework that we have.
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.
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.
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
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.
@jerald: The app is completely free. Just go ahead with the commercial products 🙂
@usha: Hi usha, can you show me the test object details view in Katalon Studio?
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
A good choice for who want to learn or apply automation test
need help for solve a math captcha, like 32+ 123 =
please help me.
I would also like to know what type of application it can cover like desktop, mobile, sharepoint etc.
Sounds interesting!
Will check out the tool now (Y)
Nice article! I’m definitely going to check out Katalon Studio after reading this.
@Broto Winarno: I think you should go to Katalon Studio forum at http://forum.katalon.com/ to post your question to get better help with your problem. Remember to post the full error message so it’d be clearer.
If its free then it always good to try out. Can i use it for commercial product?
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.
@zero: Adobe flex is action script and XML based applications. It is based on flash player.
@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 ..
Hi ,
Is it possible to recover object repository in katalon?
Unknowingly it got deleted..Can someone helpme
very good i was easily understand every point how to use this it is very helpful to me