Accelerate Headless Testing Execution with Katalon Studio

Introduction

The Headless option helps to run the automated web application in Katalon Studio using the headless browser. This tutorial gives an overview of how to use Headless option and test a webpage without having the visual of the browser view.

Requirements

What is Headless Testing?

Headless Testing is a way to run the browser in a headless environment without the full browser UI. One of the benefits of using headless is that your JavaScript tests will be executed in the same environment as users of your site. Learn more

Headless browser execution using Katalon Studio

Step 3: Once Katalon Studio is activated enter the Project name and its description.

Step 4: Create a new test case and enter the name and description of the test case.

Step 5: Click on the Record Web icon and continue with the created test case.

Step 6: Enter the URL in the dialog box opened after clicking the Record Web icon in case need to pause or stop the recording option in between is available in the same dialog box which travels throughout the recording.

Step 7: Select the browser you need to record the UI elements from the drop down.

Step 8: Once the browser is selected browser will be initiated and the selected browser with URL will be opened once the page is completely loaded user can interact with the page and record the necessary action of the web page and the UI elements will be recorded whenever the action is performed by the user.

Step 9: Once after the stop button is clicked the record will be finished the action, action data and the Element will be saved and displayed.

Step 10: After clicking OK the Object Repository dialog will be opened and the user had to make a new folder and save the Object Repository.

Step 11: Once the above step is completed the created object repository folder will be displayed under Object Repository. (Note: My Object Repository is named as GUI)

Step 12: While clicking the Object Repository folder the captured element will be displayed.

Step 13: Once everything is fine the user must click the RUN icon and select the headless chrome or Firefox browser.

Step 14: After selecting the headless browser the Katalon will Open the browser ab start to execute the recorded action in a headless mode. The execution Log can be viewed in Log Viewer.