The Record Feature in Katalon

19/12/2022

1.98k

Are you a coder who wants to recreate a test scenario as quickly as possible? Or are you a tester who is new to programming and finds it difficult to get started with automation testing?

In this article, I want to introduce a very useful feature in Katalon: Record. This feature helps you record Katalon test scenarios by capturing your actions directly on the browser, making it easier to create test cases without writing everything manually from scratch.

Let’s skip the long introduction and go straight into the setup.

Step 1:
First, to use this feature, download and install Katalon from the link below:
https://www.katalon.com/download/

Step 2:
Once the installation is complete, open Katalon and adjust a few basic settings.

Go to Project > Settings.

  1. A new window will appear. Select Execution from the left-hand menu. Under Default execution, choose the browser that Katalon will launch by default when you run your test cases. In this example, we’ll use Google Chrome, but you can also select Firefox, Internet Explorer, Safari, or another supported browser depending on your testing requirements. Once you’ve chosen your preferred browser, click Apply to save the changes.

Create Project

First, create a new project. In Katalon Studio, go to File > New > Project to create a new project where you’ll build and manage your automated tests.

The New Project window will appear, as shown below.

Enter your project name in the Name field. Since this tutorial focuses on web automation, select Web as the project type.

Next, specify the Location where you want to save the project. You can keep the default directory or click Browse… to choose a different folder.

Once you’ve completed these settings, click OK to create your new Katalon project.

After the project is created, another welcome window may appear, as shown below. You can simply close it and continue with the tutorial.

Once the project has been created successfully, Katalon will automatically generate several folders, as shown below. For this tutorial, you only need to focus on the two folders highlighted in red: Test Cases and Object Repository.

Record Web

Now let’s see how to use the Record feature. It’s very simple. When you use Record in Katalon, the tool captures every action you perform on the website, such as clicking buttons, entering text, and navigating between pages. You can then save the recorded steps and reuse them later instead of recreating the same test manually.

To start recording, click the Record Web icon, as shown above. Katalon will then open the Web Recorder window, where you can configure the recording session before capturing your actions on the website.

The main sections of the Web Recorder window are highlighted in red in the image above:

  • URL: Enter the URL of the website you want to record.
  • Browser: Click the drop-down arrow to choose the browser you want to use, such as Google Chrome, Firefox, Internet Explorer, or Safari.
  • Recorded Steps: The large highlighted area is where Katalon records every action you perform on the website, such as clicks, text input, and page navigation.
  • Run All Steps: After you’ve finished recording, click Run All Steps to replay the recorded actions and verify that your test works as expected.

Once you’re satisfied with the recorded test case, click Save Script to save it.

The screenshot below shows the result after recording a few sample actions on the SupremeTech website: https://www.supremetech.vn/.

The key sections of the Web Recorder window are highlighted in red in the image above:

  • URL: Enter the URL of the website you want to record.
  • Browser: Select the browser you want to use for recording, such as Google Chrome, Firefox, Internet Explorer, or Safari.
  • Recorded Steps: This is the largest highlighted area, where Katalon captures every action you perform on the website, including clicks, text input, and page navigation.
  • Run All Steps: Once you’ve finished recording, click Run All Steps to replay the recorded test and verify that it behaves as expected.

After you’re satisfied with the test case, click Save Script to save it for future use.

The screenshot below shows the result after I recorded a few sample actions on the SupremeTech website: https://www.supremetech.vn/.

I created a new folder named test1, and it now appears in the panel on the right. I’ll save the test case in the test1 folder. Once you’ve selected the folder, simply click OK to finish.

Another dialog box will appear, prompting you to enter a name for the test case. You can name it anything you like, as long as it’s easy to identify later.

In this example, I’ll name it Test Case 1, then click OK to save it.

Verify and Run the Recorded Test

Your test case has now been created successfully!

  • Under the Test Cases folder, you’ll see a new test case named Test Case 1, which is the name we assigned in the previous step.
  • In the Object Repository, Katalon has automatically saved all the recorded web elements inside the test1 folder that we created earlier.
  • The highlighted panel on the right displays the contents of Test Case 1 when you open it.
  • To run the recorded test case, click the Run button indicated by the red arrow. You can either click the drop-down arrow to choose a different browser or click the Run button directly to launch the test using the default browser you configured earlier in Project Settings.

For a more detailed walkthrough, you can also watch the video, where I demonstrate how to create a test case using the Record feature in Katalon.

Conclusion

The Record feature is one of the fastest ways to begin automating web tests in Katalon. Whether you’re a developer looking to prototype test scenarios quickly or a manual tester taking your first steps into automation, record Katalon provides an easy way to capture browser interactions and convert them into reusable test cases.

As your automation skills grow, you can build on these recorded tests by adding assertions, custom logic, and reusable test objects. While recording is an excellent starting point, combining it with Katalon’s scripting capabilities will help you create more flexible and maintainable automation projects.

If you’re just getting started with Katalon Studio, the Record feature is the perfect place to begin. Experiment with different scenarios, refine your test cases, and gradually explore the more advanced automation features Katalon has to offer.

FAQs Section

What is the Record feature in Katalon?

The Record feature in Katalon allows you to create automated test cases by recording your actions on a website. Instead of writing scripts manually, Katalon captures clicks, text input, and navigation, then converts them into reusable test steps.

Is record Katalon suitable for beginners?

Yes. Record Katalon is one of the easiest ways to get started with test automation. It requires little to no programming knowledge, making it a great option for manual testers who want to learn automation gradually.

Can I edit a recorded test case after recording?

Absolutely. After recording a test case, you can modify the generated steps, update object locators, add validations, or insert additional actions. This makes it easy to customize the recorded test to match your testing requirements.

Where are recorded objects stored in Katalon?

When you save a recorded test case, Katalon automatically stores the captured web elements in the Object Repository. These objects can be reused across multiple test cases, making your automation scripts easier to maintain.

Solid circle

Sign me up
for the latest news!

Customize software background

Want to customize a software for your business?

Meet with us! Schedule a meeting with us!