Introduction
Ever wondered, what functional automation testing technique is used in Katalon to describe the actions of a test case? The answer is keyword-driven testing.
In Katalon, test cases contain keywords that represent the actions of users on the AUT or Applications Under Test. Test cases are performed sequentially as test steps that describe every step involved in a test case execution. Let us see how to create test steps in Katalon.
Manual View
Step 1: Click on Add in the Test Case Editor of the Manual tab. A new line for a test step gets generated.
Step 2: Search and select a keyword. Enter the Input, Output, Object and Description for the test step if required.
Step 3: After adding all the test steps, click on the Run button in the main toolbar to execute the test.
Additional features to move up, down, and delete test cases are provided. Users can instantly add the ten most recently used keywords in the list using the Recent Keywords option next to the Add option. The studio also allows users to select recently sued objects or object folders from the object repository. To do so, double-click on any test object from the Object column. Click on Recent in the dialogue box that appears. The Test Object option will display the five most recently selected objects, and the Object folder option will display the names of the five most recently opened object folders.
Usage Example
Let’s assume a sample test case that does the following.
- Open the browser.
- Navigate to a website.
- Click on a specific control.
- Validate if the control exists on the page.
-
Close the browser.
Step 1: Search for the Open Browser Keyword.
Step 2: Select the Navigate to Url keyword on the next line. Click on the Input cell. Give a parameter name and its type. Enter a URL in the value field and click on Ok.
Step 3: In the next line, select the Click keyword. Objects are stored in the Object repository. Click on the Object cell to choose an object.
Step 4: Search for Verify Element Present keyword on the next line. And specify the object for it.
Step 5: Select the Close Browser keyword as the final test step and save the test case.