Create and Execute Test Cases in Katalon Studio - Katalon Academy

Select Your Favourite
Category And Start Learning.

Create and Execute Test Cases in Katalon Studio

Course Level

Beginner

Duration

24m

Total Chapters

4

Free

Course content

4 Chapters24m
Chapter 1 goes through the steps of using Katalon Studio’s Record and Playback function to create and execute test cases. Learn a faster way to identify objects on the application under test by capturing your actions and converting them into runnable code in the back-end.
How to create test cases using Record & Playback
5:43

A codeless testing tool is the easiest way for new automation testers to start learning and experimenting with test automation or a powerful productivity boost for those with more experience.

In these 4 chapters, we will cover the topics of:

  • How to create test cases using Record & Playback
  • How to create test cases in Manual mode
  • How to create Test in Script mode
  • How to create and run Test Suites in Katalon Studio

Chapter 1 - Creating Test Cases Using Record & Playback

How to create test cases using Record & Playback

00:10-00:48

Hi, this is the Katalon team, and welcome to a tutorial. In this video, we'll show you how to create and execute test cases in Katalon using Record and Playback mode. Let's get started!

First, to create a test project, go to 'File' > 'New' > 'Project' and this new project box will appear. Give your project a name then you can either choose a specific type of test you want to create here or you can just choose generic if you want to run more than one type of test. Next, select a sample project to run your tests on or you can start with a blank project. Here allows you to integrate code stored in some outside platform like Github or Bitbucket.

00:49-01:12

Now give your project a description if you wish click 'OK' and then you have a new test project. Here before you create any test script you also have the option to integrate with Katalon TestOps, a centralized location for all of your test results and advanced reports. In this chapter, we're not going to focus on Katalon TestOps for now but watch out for a future tutorial.

01:13-02:00

Moving on, this is what your screen will look like. On the left panel, there are many tabs to explore which we'll now go over really quick.

- The 'Test cases' tab is where you store all of your automation test cases.

- 'Object repository' is where you saw all of the web locators that the keyword is going to interact with.

- The 'Test suites' tab is where you can run multiple test cases at the same time.

- 'Data files' is where you store the actual database files that you use for your tests.

- 'Checkpoint is where you store snapshot of test data taking at a specific time to compare test data in various testing points.

- 'Keyword' is where you obtain the capability of Katalon Studio.

- Finally, 'Test Listeners', this is where you add customized test step of choice.

- And 'Reports' is where all of your test reports are stored.

02:01-02:36

Now to create a test case, go to the top panel, click on 'Record web' button and this box will appear. Now input the URL of the web you want to test. Then click on the browser logo, then this tab will pop up and your test is being recorded. Here, you can see a red border surrounding every object in the tab, and everything you do, every object you click on will be recorded here. Also in this panel, you can see the object you're interacting with and change their name or their properties as your choice.

02:37-03:20

Now let me create a simple login test for you to see. Now you have your test script. Let's save it, click the 'Save script' to save all these locators. Give it a name and you have your first test case. With this login test case you can run in most browsers such as Chrome, Firefox, Internet Explorer you name it.

03:21-03:51

However, here I want to show you another way to create a new advanced test case incorporating the login test case you just used for this chapter. I'm going to create a booking appointment test case for you to see. First, go to the 'Test case', 'New' and give it a name. Then I'm going to drag this login test case into this 'Book appointment' tab on the right. Click the 'Record' button on top. Click 'Yes' and your new test case is in progress.

03:52-04:33

First, click 'Play' button to playback ALL of the steps in your old login test case. Now, all you gotta do is normally go through the actions that you want to test. To finish creating this test case you will want to create a verification point to verify that you have successfully navigated to the final page that you want or in this tutorial is the appointment confirmation page.

04:34-05:11

So, what you want to do is click on the object that you want to verify, or in this situation the 'Appointment Confirmation' object. Go to the panel on the right and give it a verification keyword that we have on this dropdown. Here I'm going to choose the simplest way to verify my object which is the 'Verified element present'. Set a timeout or a time that the test is going to wait for the object who appears to verify it. Here is 30 second and click 'Save script'. Choose to override the test case.

05:12-05:35

And here you have another test case for yourself as Katalon supports most major Browsers. I'm going to run this test on Firefox instead of Chrome for you to see. And that's the end of this chapter.

Chapter 2 - Creating Test Cases in Manual Mode

Chapter 3 - Creating Tests in Script Mode

Chapter 4 - Creating and Running Test Suites

Free

Material Includes

  • 30 minutes on-demand video

  • Full lifetime access

  • Certificate of completion

    Coming soon

Share

NEXT COURSES TO LEARN

Tag your testing buddies along and win $100!