Tutorials

Creating test case using Web Recorder utility

 

Katalon recorder is a utility to capture all of user’s actions such as clicking and typing performed on the application under test and generate test cases automatically. This is a useful feature for quickly generating test cases, especially for users who are new to Katalon Studio. 

If you are a beginner, the test cases generated by Katalon recorder can be used as a reference to understand how Katalon Studio works and what its test cases look like. If you are an experienced user, you can use this feature to quickly create test steps to verify whether they can execute correctly.

This tutorial walks you through the steps needed to use Katalon recorder. This guide assumes that you already create and configure a test project. If needed, refer to this tutorial for more details.  

1.  Click on the New Test Case button on the main toolbar. Provide a name for your test case and click OK. An empty test case will be created.

Katalon Studio New Test Case

Where:

Field Description
Name The name of the test case
Description Your description for the test case
Tag The tag you want to mark for the test case, which can be used for searching later.

2. Click on Record Web from the main toolbar

Katalon Studio Record Web

3. The Record dialog is shown as below:

Katalon Studio Web Recorder Dialog

Where:

Section Description
Captured Objects Display all captured objects during recording
Object Properties Display the details of the selected object from the Captured Objects section above
Recorded Actions Display all captured actions that users have conducted during recording

4. Click on Record to start recording the test case in your desired browser.

Record button

Where:

Type Description
New Browsers Launch a new browser and start recording actions from that browser.
Active Browsers Focus on the current active Chrome browser and start recording actions from it. You will be asked for installation of Katalon Utility:

Katalon Studio Utility

Refer to Katalon Addon for Chrome for more details.

5. Perform your test steps on the browser. All of your actions performed on the browser will be recorded by Katalon Studio. (Let’s record the test case on demoaut.katalon.com as an example. Click on the Make Appointment button, then click on the Login button.)

Execute test steps on the browser

6. You can Stop or Pause recording if needed. When you are done with recording, click OK to save recorded actions into Katalon Studio. You can edit or delete the recorded actions here if needed.

Save recoreded action to Katalon Studio

7. You will be prompted to save captured objects into  Katalon Studio’s Object Repository. Click OK to continue.

Save captured object

8. Captured objects will be saved into Object Repository and captured actions will be saved into the test case as shown below.

Katalon Studio Object Repository

9. Click on Run on the main Toolbar to execute the test case’s script. You can specify the target browser to run by selecting it from the drop-down list.

Execute test case in Katalon Studio

Congratulations! You have automated your first test case using the recording feature of Katalon Studio. For advanced features such as branching, looping or validation, you can refer to following articles:

thumb_up (8) thumb_down (0)

Quick Start

    A quick guide to set up and start your first automation test with Katalon Studio, a complete test…

Automation testing of Shadow DOM elements with Katalon Studio


What is Shadow DOM? Shadow DOM is a technique to help web developers to better encapsulate their code. Shadow DOM…

Katalon Studio Integration with Jira Overview


JIRA is a popular bug tracking system, an integral part of any automation team. Katalon Studio allows users to integrate…
Scroll up