Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Debugging Test Cases Using Katalon Studio

DZone's Guide to

Debugging Test Cases Using Katalon Studio

Katalon Studio provides users with the capability for debugging test scripts. Learn how to use Debug Mode in this tutorial.

· DevOps Zone
Free Resource

Download the blueprint that can take a company of any maturity level all the way up to enterprise-scale continuous delivery using a combination of Automic Release Automation, Automic’s 20+ years of business automation experience, and the proven tools and practices the company is already leveraging.

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 utilitiesWhere:

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.

Please refer to Resources Center for more tutorials on Test Execution and other sections!

Download the ‘Practical Blueprint to Continuous Delivery’ to learn how Automic Release Automation can help you begin or continue your company’s digital transformation.

Topics:
automated testing ,test automation ,katalon studio ,software testing ,manual testing ,devops ,debugging

Published at DZone with permission of Oliver Howard. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}