Introduction
Hello there,
As we all know that testing is an important part of development. It lets us know how well the task is being performed before it goes live.
Katalon Studio is a software tool for automated testing. Web, API, mobile, and desktop application testing are uses of Katalon Studio.

In this article, we will get you started with Katalon studio if this is your first time using it. We will go over a few principal steps, basic concepts, and operations in Katalon Studio.
Web testing in Katalon studio
What is web testing?
Web testing is the testing of web applications to ensure they are in the desired state and fulfil all the requirements.
It is an essential practice. It helps to know bugs before the application goes live.
We will learn how to create a web test for your project in steps. We will test “Cura healthcare services” for the same.
Create a new project
The steps to create a new project for web testing in Katalon studio are as follows:
- On the home screen of Katalon studio. Click on "New project" on the left side of the page.
-
A new project text box appears. Fill in the necessary details.

- Select Type- Web.
- Make sure both the checkboxes at the bottom are checked. We will use these further.
- Click "ok."
You will see the basic structure of the project displayed on the screen.

Note: To get started you can use Katalon sample projects for web testing in Katalon.(In this article we will be using Cura healthcare as an example.)
Create new test cases
To create a new test case. Click on test case > new > test case.
For more information, read test case management.
You will see a few options at the bottom of your screen.

Look at the manual and script modes in the image.
Manual mode is selected by default in web testing in Katalon. It allows you to create automated tests without much programming knowledge.
You can select the script mode in web testing in katalon. This is for people with high programming language knowledge. This mode provides more control of the test. The script language in Katalon is Groovy.
You use keywords in script mode. They are built-in functions in Katalon studio.
For example, Web-UI stands for web user- interface. It contains a group of methods and classes related to handling actions on the website.
Once you start typing, Katalon will provide a drop-down of string parameters. These contain URLs for you to navigate.
How to create a test case using a script?
- Type web-UI.
-
Type the action you need to perform. For example, open a browser.

- Katalon will give you a drop-down with string parameters. Choose according to your task.
-
Type in the necessary arguments in the string. For example Url link to the browser.

- Make sure web drivers are updated.
- Run test case.
Verification in the test case
Verification can be done in manual or script mode.
There are certain keywords for each type of verification. Keywords are enlisted by Katalon.
Step guide:
- Type “web-UI.”
- Type “verify.”
- Type appropriate keywords attached to “verify” without leaving spaces.
- Make sure the keyword is in the title case.
- Select string parameters from the drop-down.
- Type necessary information. You can use web UI in the parameters as well. In certain cases, it is required.
- Run test case.
For example, we will verify the title of the page. We will adhere to the steps given above.
- Type “web-UI.” And Type “verify.”
- Type appropriate keywords attached to “verify.” Here we use ‘Match”
-
Select string parameters from the drop-down.

- Type necessary information. We use Web-UI with “getwindowtitle” here.
-
We have three parameters. First, for the action. Second, for the title. Third, is a Boolean value to denote a regular expression. (False-not a regular expression.)

- Run test case.
Object repository
The object repository saves all elements you can work on. It contains all page components and objects.
To capture elements for web testing in Katalon:
1. Click on spy web.

2. An object spy box appears. Fill in the necessary information.

3. Make sure you select the browser and hit start.
4. Chrome will open with the website home page on the screen.
5. Selector appears as you hover over different elements and web components on the page. It appears at the top or the bottom of the screen.

6. To capture an element, press “alt” + backtick (`.)
Or right-click on the element, select “capture element” from the drop-down.

7. The object spy will display the captured element.
8. You can modify object properties for each element.

9. Click on “Verify and highlight.”
10. Press “save”. Save window appears. Create a new folder in the repository or save it as it is.

11. Close the window.
Testing web elements
To test web elements for web testing in Katalon:
- Click on the object repository.
- It will show all the elements stored. Click on the one you want to test.
- Re-check the modified settings.
- Type “web-UI.”
- Type required function. Select the string parameter from the drop-down.
- Drag and drop the element from the repository in the string parameter.
- Run the test case.
You can add these test cases to test suites. And run test suites all together to test the whole application. Refer to test case management







