Katalon Studio supports both users with or without programming skills to learn and make full use of test automation. Those with little experience in coding can use the keywords-driven testing capability of the tool to generate automation test easily.
This tutorial will introduce you to a basic scenario of creating test cases using Katalon Studio’s Manual view. Download Katalon Studio for free at www.katalon.com
Scenario
- Open browser
- Navigate to a website
- Select a certain control
- Validate if the control exists on the page
- Close browser
Beginners guide to automate test case in Manual view
Step 1: In the main menu, go to File > New > Test case to create a new test case. Enter a for the test case and click OK.
Step 2: After the new test case is created, it will be displayed in the Manual view. This helps users with little programming skills able to define steps for the test case easily.
Step 3: Go to Add > Web UI Keyword from the command toolbar.
Step 4: Enter the Open Browser keyword, then provide a URL. This keyword will open a browser and navigate to the specified URL. The details for the selected keywords will also show up in the popup screen, as below.
Step 5: Enter the Navigate To Url keyword so that it navigates to the specified URL.
To provide parameters for the keyword, double click on the Input cell.
Step 6: In the Input dialog below, each row represents one parameter.
In which:
Field | Description |
No | The order for each selected keyword |
Param Name | The name of the parameter |
Param Type | The data type of the parameter (e.g., String, Variable, or Test Data Value) |
Value Type | The type of the input value (e.g., String, Variable, or Test Data Value) |
Value | The input value for the parameter.
Input value varies depending on the specified Value Type. Refer to Value Types in Katalon for more details. |
For example, enter the URL of Katalon demo AUT (http://demoaut.katalon.com) into the Value column then click OK.
Step 7: Enter the Click keyword, which represents the click action on a given object. A specified object is required for this action. To open the Test Object Input dialog, double click on the Object cell.
Step 8: All captured objects in Object Repository will be displayed in the Test Object Input dialog (For details regarding how to capture objects, please refer to the Spy Object doc).
Select your object then click OK.
Step 9: To validate if a certain object is displayed on the executing browser, enter the Verify Element Present keyword. A specified object is required for this keyword.
Step 10: Enter the Close Browser keyword and save your test case.
Step 11: To execute the designed test case, click Run in the main toolbar.
Katalon Studio should be able to execute all steps specified in the test case. Results of test execution are shown in the Log Viewer, as below:
Conclusion
This tutorial is to help you fully understand how to create a test case in Manual view with Katalon Studio. To fully grasp the tool’s functionalities and advantages, explore other tutorials and download Katalon Studio at katalon.com.
Add new comment