Tutorials

Debugging test case

Katalon Studio provides users with the capability for debugging test scripts. Its Debug mode is designed to make debugging easy to use, allowing users to quickly investigate the issues that cause failure for their automation tests.

The following presents the basic steps to debug a test case:

1. Open a test case and switch to the Script view.
Script view Katalon Studio

2. Double click on the left-most side of the script editor to mark a breakpoint for the step you want to start debugging from.
mark a breakpoint for the step

3. Choose the browser for Debug from the main toolbar.
Choose the browser for Debugging test case

4. Confirm (select Yes) when asked to show the Debug perspective.
the Debug perspective.

5. The Debug perspective provides users with helpful options for the debugging purpose. Users can: 

Navigate execution using commands from the debug toolbar.
debug toolbar

Where:

Command Description
 Resume debugging Resume debugging
 Suspend debugging Suspend debugging
 Terminate debugging Terminate debugging
 Disconnect Disconnect
 Step into current code block Step into current code block
 Step over current code block Step over current code block
 Return from current code block Return from current code block
 Run to specific line Run to specific line

Track values of variables using Watch utilities.
Watch utilities
Where:

View Description
Variables You can view all variables associated with the current debugged action using Variables View. This is similar to Variables View in Eclipse. Refer to this guide for more details.
Breakpoints You can view all breakpoints using Breakpoints View. This is similar to Breakpoints View in Eclipse. Refer to this guide for more details.
Expressions You can inspect data using Expressions View. This is similar to Expressions View in Eclipse. Refer to this guide for more details.

6. Stop execution when you complete debugging.
Although the debugging mode in Katalon Studio is very similar to that of the popular Eclipse IDE, we manage to retain just enough function to keep the UI clean while providing users with all required options to investigate issues when needed. If you have any suggestion or need any support, please send your request here.

thumb_up (8) thumb_down (3)

Generating reliable object selector using Spy Web utility


Katalon Studio Spy Web Utility provides an intelligent object capturing capability and immediate feedback on the uniqueness of selectors. There…

How to use synchronization commands while recording


What is Synchronization? Synchronization is a mechanism which allows multiple threads to work in parallel. In test automation, the application…

Viewing test execution reports in Katalon Analytics


Status Report Duration Report Execution Report Execution Detail View Performance and History This tutorial will show you how to leverage…
Scroll up