Skip to main content

View and customize execution log in Katalon Studio

Viewing the execution log is the very first approach when troubleshooting automation test execution. The critical information in the log can quickly help project teams pinpoint the root causes of any issues. Katalon Studio execution logs are optimized to provide such information so that you can have a comprehensive view of the tests run.

View Execution Log

Once your test cases/test suites finish execution, you can review the results in the Log Viewer tab.

Using the filter options, you can specify what type of logs to be displayed:

FilterDescription
AllShow all the log messages.
InfoShow only the log messages for information/reference.
PassedShow only the log messages indicating that a step is successfully executed.
FailedShow only the log messages indicating that a test step fails to execute.
ErrorShow only the log messages indicating that some error has occurred at a given step.
WarningShow only the log messages indicating that a test step is failed but accepted as a warning.
Not RunShow only the log messages indicating that a test step is skipped.

Tabular view vs. Tree View

The Log Viewer can be viewed in different modes: tabular view and tree view. You can switch to tree view by selecting the Tree View toggle as illustrated below:

The Tree View display logs in a structural way that relates to how the test case/test suite is organized. Additionally, you can navigate to the respective step by selecting from the context menu, as shown below:

Scroll Lock

While the test is being executed, the Log Viewer is being updated with real-time log messages, where the most recent log messages is shown at the bottom. Therefore, the Log Viewer keeps scrolling down during the test execution. However, users may want to keep the Log Viewer standing still so that they can verify particular log messages. To stop this scrolling behavior, you can select Scroll Lock.

Customize Console Log

Execution Progress Debugger

Katalon Studio execution log displays complete details of actions performed during the test run to help you debug better. The test log contains all relevant information about the test run. Full test step statements and desired capabilities information are also included. Log levels are ANSI color-coded for different kinds of levels: INFO, DEBUG, WARING, and ERROR for an easier view of the execution log, as shown in the screenshot below.

Extensive logs for Web Service testing

Sending and receiving Web Service can be a troublesome task due to many factors involved on both the client and server sides. The HAR file contains low-level data to help you identify critical performance problems with Web services quickly.

Katalon Studio includes the HAR file in the Web Service execution log. Upon sending requests, you can access the .har files from the Console tab. The file is stored directly on the current executed machine.

If you execute Web Service test suites, you can right-click at the desired Report folder and choose Open Containing Folder. The .har files are stored in the main folder of the generated reports folder. For example, the file path can be 20230608_112253/requests/main/0.har.

Using the .har file in services analyzer such as HAR Analyzer of Google Admin Toolbox can provide quality insights about the Web Service request and response. This helps the project team quickly identify key issues and efficiently allocate resources to address the issue. Some issues that can be identified include:

  • Performance issues: slow page load, a timeout when performing a specific task
  • Page rendering issues: incorrect page format or missing information

Logs Configuration

The deepest level of logs is called TRACE. Use the TRACE level when you need more log details than DEBUG level, which is used by default. You can also lessen the logs' details by using the INFO level.

In case you want to change the log’s level of one or multiple packages, this setting is located and stored in Include > Config > log.properties file.

By uncommenting the logging.level.com.kms=TRACE line, the differences are noticeable:

Before

After

Log executed test steps

Starting from Katalon Studio version 7.0.0, an option to disable Log executed test steps is available in Project Settings > Executions. By enabling or disabling this option, you can decide whether the logs include executed test steps.

Enabled

Disabled

Summary

  • Katalon Studio execution logs are enhanced for a better debugging process and observation of execution progress.
  • The logs level can be configured directly from the log.properties file.
  • A .har file is generated and stored in Web Service request logs. It can be used to analyze and troubleshoot performance or connection issues (if any).
  • Logs can be set to include or exclude the executed test steps.

Learn more about working with the execution log and more in our Katalon Academy course: Katalon Studio: How To Work With Execution Logs and Test Reports.