# Log Viewer results significantly delayed

**URL:** <https://forum.katalon.com/t/log-viewer-results-significantly-delayed/46485>\
**Category:** Bug Report\
**Tags:** katalon-studio, bugs-report\
**Created:** [August 16, 2020, 11:04am UTC](https://forum.katalon.com/t/log-viewer-results-significantly-delayed/46485 "2020-08-16T11:04:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![andre.dz](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/andre.dz/32/16103_2.png) [@andre.dz](https://forum.katalon.com/u/andre.dz)\
**Post date:** [August 16, 2020, 11:04am UTC](https://forum.katalon.com/t/log-viewer-results-significantly-delayed/46485/1 "2020-08-16T11:04:39Z")

</div>

Steps:

1. Have a simple test case that takes over an hour to run.

Results:  
Within several minutes, the “Log Viewer” gets significantly delayed in relation to the actions being performed on the website. After about 20 minutes, Katalon started becoming unresponsive from falling behind too much.

Additional Notes:  
It’s a simple simple script that opens a website in Chrome, presses about 20 buttons using WebUI.click(findTestObject()) function, waits 20 seconds, refreshes website and does the same. I would like this script to be able to run for a couple hours, but after 30 minutes theres a huge lag with eventual lock up.  
Disabling logging may resolve this, but I don’t have enterprise edition in order to use this function.

Regression Info:  
I’ve had same issue with Katalon 6.

#### Please let us know how would your work be affected if this issue has not been resolved?

1. I can continue my job, but my performance is lower than expected

#### Operating System

MacOS Catalina 10.15.6 on 2019 MacBook Pro

#### Katalon Studio Version

7.6.2 (build 205)

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [August 17, 2020, 12:42am UTC](https://forum.katalon.com/t/log-viewer-results-significantly-delayed/46485/2 "2020-08-17T00:42:23Z")

</div>

We need more information about your project and problems.

> [@\[TIP\] How To Help Us Help You!](http://forum.katalon.com/t/tip-how-to-help-us-help-you/12919):
>
> My test is BROKEN! NOTHING WORKS! HELP ME! Relax. We get it. We really do. There are some pretty smart and clever people on this forum, but you must realize, they are not magicians or wizards or gods. They cannot see your code, they can’t see your errors and they don’t even know what your AUT is meant to do even though it might seem perfectly obvious to you. So please relax and follow the advice below, before you start writing your post. The advice below will tell you the exact information …

Just a few guesses…

Disabling “Smart Wait” may help:

> [@Katalon repeatedly not responding](http://forum.katalon.com/t/katalon-repeatedly-not-responding/43098/11):
>
> If it’s just general performance issues, one other thing to try is to disable smart wait. This setting can be found at Project \> Settings \> Execution \> Default Smart Wait

* * *

WebUI.click() is sometimes faulty.  
Why not you try clicking the element using JavaScript?

> [@](#):
>
> @Curtis_BRODERICK Yea, the WebUI API can be troublesome at times (or I’m just using it incorrectly). Since the approach in my original comment seemed to work for you, we can just use that. It’s a bit more verbose, but not too bad. Go ahead and replace your Util class with this: package util import org.openqa.selenium.JavascriptExecutor import org.openqa.selenium.WebDriver import org.openqa.selenium.WebElement import com.kms.katalon.core.testobject.TestObject import com.kms.katalon.core.webui…

* * *

> [@andre.dz](#):
>
> delayed in relation to the actions being performed on the website

This may occur when you have too many messages from the executed Test Case, eg. by WebUI.comment(msg) or by “Step Execution Log”. You should comment out verbose WebUI.comment() calls as much as possible

* * *

> [@andre.dz](#):
>
> Disabling logging may resolve this, but I don’t have enterprise edition in order to use this function.

You have an alternative way of decreasing Test Cases’ “Step Execution Log” messages.

Katalon Studio would not emit any verbose “Step Execution Log” messages for Keywords. I recommend you to transfer your codes in the Test Cases (Groovy scripts) into the Keywords (Groovy classes). Especially you should transform the codes which are repeatedly executed. Once you have implemented it as Groovy classes, you will replace the original codes in Test Cases with codes that invoke methods of the new Classes. Then the amount of “Step Execution Log” will become less. Less messages will make Log Viewer responsive.

---

<div class="post-metadata">

**Author:** ![andre.dz](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/andre.dz/32/16103_2.png) [@andre.dz](https://forum.katalon.com/u/andre.dz)\
**Post date:** [September 28, 2020, 6:30am UTC](https://forum.katalon.com/t/log-viewer-results-significantly-delayed/46485/3 "2020-09-28T06:30:58Z")

</div>

Thank you for the quick reply.

> Disabling “Smart Wait” may help

I actually already had it disabled it as it was giving me other problems previously

> Katalon Studio would not emit any verbose “Step Execution Log” messages for Keywords. I recommend you to transfer your codes in the Test Cases (Groovy scripts) into the Keywords (Groovy classes).

**THIS!** It was actually a lot easier to implement than I expected. After transferring the _while_ loop into a Keyword, nothing inside the _while_ loop gets logged. I’ve now been able to successfully run my code for several hours continuously without performance issues. Thank you!

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [March 29, 2021, 2:12am UTC](https://forum.katalon.com/t/log-viewer-results-significantly-delayed/46485/4 "2021-03-29T02:12:37Z")

</div>

Closed on March 29, 2021, 2:12am UTC



---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [November 23, 2021, 8:25am UTC](https://forum.katalon.com/t/log-viewer-results-significantly-delayed/46485/5 "2021-11-23T08:25:17Z")

</div>

A alternative approach of resolving “Log Viewer” problem:

> [@Log Viewer slows down your tests. How to prevent it?](http://forum.katalon.com/t/log-viewer-slows-down-your-tests-how-to-prevent-it/60252/):
>
> I have published a demo project at GitHub. Problem to solve Katalon Studio’s “Log Viewer” slows down your test execution significantly. Are you aware of this fact? Maybe not. So I will report my analysis here. I can explain how to make it better. Measurement result Let me go straight to the point. The following table shows the result I measured how long a Test Suite took to finish running. I used a single Test Suite while I applied several variation of the “Log Viewer” setups. As the foll…
