Learning path

Leveling up from a manual tester to an automation beginner (with Katalon Studio) enroll now

Katalon Studio for Beginners: Create Automated Tests with Record and Playback

Course Level

Beginner

Duration

20m

Total Chapters

3

Free

About Course

Record and Playback is one of the many quickest and easiest ways to create automated tests.

During the 3 chapters, you will learn how to use Record and Playback in Katalon Studio to:

  • Create a new test case from scratch
  • Reuse test objects from an existing test case to create new tests
  • Record a test case from a specific AUT state on an active browser

In the first chapter, we will quickly walk through Katalon Studio – a free testing tool with Record and Playback. Then, you will learn how to use it for recording tests while performing manual actions on web pages.

In the second chapter, you will know how to reuse the previous test case to form a new one. To do this, you will add new recorded steps to the existing ones, which can also be the way to update any test case when the UI or workflow changes.

And in the final chapter, we show you how to do test recording right on your active browser where you’re working. This will help you save time and avoid duplication of test assets since you don’t need to record all the precondition steps to reach the current state of your UAT.

Note: You can download and use the sample project we used in this course here: https://github.com/katalon-studio/record-and-playback-sample-project

Chapter Overview

Automate Your First Test Using Record & Playback

00:05-00:24

In this first chapter, I will show you how to create a new simple test case from scratch, using Record & Playback in Katalon Studio. So, what I got here is a brand new project. If you haven't downloaded the tool yet, just pause this video, hop over to katalon.com/download, install and you'll be good to go.

00:25-00:44

When Studio is ready, open it, go to 'File' >> 'New project' and this box will appear. Give your project a name. Choose the type. Let's go for 'Web'. There are other options below where you can connect to sample projects or other platforms. But just leave them for now.

00:45-01:20

On the left, you can see there are many folders under the Tab 'Test Explorer.' Let's go over each of them briefly. 'Test Profile' is where to input and control the different environments that you want to run your tests on, like Staging or Production. 'Test Cases,' like its name, is where all of your test cases are stored. 'Object Repository' contains all of your test objects that you're going to interact with. 'Test Suites' is where you gather test cases according to different groups, like regression tests, smoke tests, or one particular feature.

01:21-01:59

'Data Files' is where you save all the files for data-driven testing, which we'll talk about in another course. 'Checkpoint' is for implementing certain features to verify specific test steps. 'Keyword' is where you add your customized keywords (you can find the available ones in Studio by clicking on this icon on the left here). 'Test Listeners' is where you can create the scripts to interfere with the test steps when needed. For complex projects, you'd definitely need this. 'Reports' is simply the place containing all the reports for your test suite executions.

02:00-02:29

Here we have 'TestOps,' Studio's built-in reporting and test orchestration platform. You can connect Studio to TestOps to store and analyse all of your results with advanced analytics and charts. 'Include' is where you can use other functionalities like Behavior-Driven Development or BDD Testing and scripting. 'Plugins' is where you can connect the Studio to other applications and platforms. You can go on Store dot Katalon dot com to see all the available plugins there.

02:30-02:56

Now you have created a project and understand the basic structure of Katalon Studio. Let's go ahead and create a new test case. Right-click on the 'Test cases' folder > 'New'. There are 2 options here. If you want to put your test case in a new folder, you could choose 'Folder'. But for now, let's click on 'Test Case'. Then, give it a name. Here, I'll name it 'Login' since we're going to record a test case for this function.

02:57-03:32

To start recording, on the top menu, click on the 'Record Web' button and this window will appear. Now, type in the URL that you want to test here. I'll use Katalon's demo website, CURA Healthcare Service. Here's a quick explanation of the different sections you see here. On the left, the Recorded Actions will capture all the steps you take on a webpage. And over on the right, the Captured Objects/Object Properties/Selected Locators will let you see more of a detailed look on all the captured objects you've interacted with during the whole recording session.

03:33-04:11

Next, when clicking on the 'Record' button, the CURA Healthcare website will immediately open. This results in the first two actions being recorded on the screen, which are 'Open Browser' and 'Navigate to URL'. The same applies for every action you take and every object you interact with on your AUT. Now, I will go ahead and perform all the manual steps to login to an account. Alright, click on this 'Make appointment' button. Type in the user name and the password. Then 'Login' last and we're done!

04:12-04:47

Now, what we need is an element to verify this login step. I'll use this 'Logout' text in this expanded menu for verification. Right-click on the text, point to 'Katalon Studio' and choose 'Verify Element Present'. Having created all the steps for our test case, close this window then we're going to run, or playback this test case to make sure all the steps work properly. Click on the 'Playback' button to go through each step again.

04:48-05:16

Looks like everything is good. The final status here is 'Passed' so we can go ahead and click on 'Save script' on the bottom here. This dialog box will appear, asking if you want to add these new test objects to the Repository in a new folder. We'll discuss this section, test objects and repository, in another course. For now, just click 'OK'.

05:17-05:46

Alright, let's have a look at our result. You can see all the recorded steps have been saved in our 'Login' test case. And all of the objects are saved in the repository as well. Now, let's run this test for the last time, just to make sure it won't fail. While that is going, you can switch to this Log Viewer to see all the details. The green tick indicates success while the red X means the step failed.

05:47-06:10

Let's wait for a few seconds. And it's done! All green! And there you have it, how to create a simple test case using Record & Playback. Easy right? No code needed, just perform all the steps manually and let Katalon take care of the scripting. In the next chapter, we are going to create another test case by adding additional steps to this one.

VA
EF
AK
AB
AV
FM
SY
L
AM
DR
MM
A

good 👍

RP
CS
L
HP
MV
KS
RT
AJ
V
G
JA
NN
RR
DM
LG
R
KP
CE
GA
A
NN
PG
PR

Good

TR
LI

Good

AG
RR
PR
HP
IP
VM
GR
VV
BS
A
CD
PA

Good

VK
PL
YN
NF
AK
BP
MS
VA
VM
PR
SD
AB
NK
S
S
N
AA
V
CK
SS
EB
N

it was benefit for me to learn something new

S

Excellent

LL
BK
S
KM
TT
MS
TN
KK
MS
SS
GK
M
JD
DR
ML
AA

Super

RS
M
SW
S
DD
SA
NA
DN
DE
RK
MR
NN
JA
SK
GR
NM
DB

5

RA
VM
BM
M
RV
PM
T
SP
PG
MB
SK
RP
PM
EM
DN
RR
A
NR

More Quiz would be better

EG
VF
KA

cool

ML
SU
SM
SA
R
PB
SL
AL
SV
RA
MR
AL
KR
AV
IO
VV
KG
RM
AJ
AS
RP
NS
NL
SK
Katalon Studio Free
Katalon Studio Enterprise

Katalon Studio Free

Basic test automation for individuals and small teams.
Easily create and execute automated tests for web, mobile, desktop, and API.
Advanced features for debugging, data-driven testing, and reporting.
AI-powered test authoring and test data.

30-DAY PREMIUM TRIAL

Katalon Studio Enterprise

All-in-one test automation IDE for professional teams.
Easily create and execute automated tests for web, mobile, desktop, and API.
Simple for beginners, and powerful for pros. Create tests with no-code, full-code, or AI.
Advanced features for debugging, data-driven testing, execution, and reporting.
Easily import selenium projects.
Free

Materials include

  • 20-minute on-demand course

  • Lifetime access

  • Sample project

  • Certificate of completion

    Coming soon

Share