New Courses

Getting Started With Automated Mobile Testing Using Katalon ENROLL NOW

Test Authoring with Katalon: Using Built-in Keywords to Create Automated Tests

Course Level

Beginner

Duration

30m

Total Chapters

3

Free

About Course

Katalon supports three methods to create automated tests: Record and Playback, using keywords in the Manual Mode, and scripting in the Script Mode.

Record and Playback is a great solution to start for beginners and non-programmers. But to improve the test quality as time goes on, they should learn how to use the built-in keywords in the Manual Mode and ultimately get down to scripting to have more control over the test design.

This course will help you get started with the built-in keywords in Katalon.

In three chapters, you will learn about:

  • The concept of Keyword-driven testing and how Katalon supports this method
  • The basic steps and best practices for capturing and storing test objects
  • How to use built-in keywords and statements to create basic and more complex automated tests
  • What, why, and how to create and use custom keywords

Chapter Overview

Implementing Keyword-driven Testing with Katalon

00:05-00:28

Hi and welcome to Katalon Academy! In this first chapter, we'll introduce the concept of keyword-driven testing and how you can implement it with Katalon. Let's start with the methodology! More businesses are applying test automation solutions to ensure software quality, especially when they have frequent releases. This isn't a trend anymore; it's the best practice.

00:29-01:06

To automate tests, writing and maintaining test scripts are among the most important and challenging tasks. These are normally taken care of by automation experts with sufficient programming experience. The pressure is always on creating new scripts to build up the automation system and increase the automated test coverage. So, the experts would always be busy writing scripts. On the other hand, manual testers, even though they have deeper product knowledge, are being left behind because they cannot write scripts efficiently. So, where can we find the balance in this situation?

01:07-01:38

That's when the method of keyword-driven testing, sometimes called action word-based testing, becomes extremely helpful since it separates the coding from the test design. A keyword-driven test comprises a sequence of keywords representing a user flow on an AUT. These keywords are mapped with corresponding functions written by the engineers with programming skills. The testers with better product understanding can then use the keywords to create automated test cases or test scripts.

01:39-02:03

Keywords and test data can be stored and maintained in a separate source like a spreadsheet. When a test is triggered to run, the test scripts will refer to this resource to read all the keywords, data, and run the corresponding functions. And since the keyword functions can be implemented separately, the two groups of programmers and testers can work more independently, boosting the whole team's productivity.

02:04-02:34

Keyword-driven testing is a great solution for automated testing implementation for teams with few programmers. But, building a keyword-based testing framework from scratch is not easy and time-consuming. Teams need to have an expert who has enough knowledge to plan the framework setup, implementation, management, and maintenance. Writing the keyword functions is another major concern since programming skills are required. The reality is that not every team has enough resources for this.

02:35-02:57

A common solution is to use a ready-made automation tool that includes pre-written keywords which the functions have already been built as a part of the tool. Testers can start using these keywords immediately to create automated test cases. This removes the requirement for an expert to build everything from scratch, saving time and resources.

02:58-03:52

With Katalon, users are equipped with a significant list of built-in keywords and other components (like the Page-object-model Repository and Web Spy for capturing test objects) to help you easily design tests and minimize maintenance. You can download Katalon Studio for free and start using it immediately. No heavy setup is required. For the benefits, the keyword implementation and complexity have already been handled by Katalon. Tests can be created and modified earlier, easy to read and understand even by non-programming people. Keywords can be reused consistently across many test cases. The maintenance becomes lighter. All the developed keywords are stored in one place. When you maintain or update a new keyword, all the tests using it will be automatically updated.

03:53-04:24

Using pre-built keywords is a great low-code solution to create automated tests. But what about Record and Playback? Should beginners keep using it, or should they switch to using keywords? As you know, Katalon also supports Record and Playback. It is probably the easiest way to automate tests, requiring no coding experience. It captures manual actions on an AUT and then converts them to a list of keywords in the Manual mode and test scripts in the Script Mode.

04:25-04:53

Frankly speaking, recorded tests are ideal to start with simple tests. But in the long-term, they are fragile, easy to break, when dealing with frequently-changing UI, dynamic elements, or complex test scenarios. If you have no clue how to use keywords to at least modify tests, they can easily break, or you can end up with a lot of duplicated codes by, for example, recording a bunch of tests for the same scenarios with different data inputs.

04:54-05:20

Record and playback is great for you to start and learn. But as time goes on, you should know how to use keywords and ultimately get down to scripting to have more control over test design. As you use keywords in the Manual mode, you can switch back and forth to the Script mode to get more familiar with the code. That's it for the first chapter. You've learned about the keyword-driven testing method and got an idea of how you can apply it with Katalon.

GA
RS
NR

Add Quiz to support in learning more and getting used to it

DS
MP
WL
MM
SY
N
TY
DN
VF
WH
ST

Good

AS
SG
LS
BF
5K
VK
VM
SA
JD
DA
SI
VD
SM
SK
NS

5

KR
SU
KP
DD
LN
R
SS
NV
RB
CZ
NA
FM
AS
RS

Five Star

JC
ZS
MA
AF
FM
TV

its good

AT
SB
CK
MG
CJ
MR
KM

good

GE

great

PB
IM
RB
DP
JC
PM
VR
CS
BS

good

RW
DT
SL
PS
CP

There are three methods for test cases for created automated test in katalon studio. By using spy web we can able to capture objects from web and we use this object for further automation test cases

SL
MA

nice

CS
PM
SS
PM
ME
AA
SS
AJ
J

recommend for newbie for Automate Testing with Katalon.

GS
PV
GP
SS
AS
PK
TR
SV
SK
BL
AV
AE
SP
PK
SK

good

RV
RB
KS
KL
RP
TT
AK
SB
NT
SS
SK
NS
AL
AG
KC
M
DP
JJ
YT
SK
KR
PP
GG

3

AB
AC
PV
IO
SD
MR
SM
IA
AR
HR
SR
TT
M
VT
VP
SP
MR
SS
NL
CS
SS
ST
YT
AK
SC
TM
AR
KG
JS

Nice

JP
Free

Materials include

  • 30-minute on-demand course

  • Lifetime access

Share