# WebUI.comment no longer printing the comment to the log

**URL:** <https://forum.katalon.com/t/webui-comment-no-longer-printing-the-comment-to-the-log/14545>\
**Category:** Bug Report\
**Tags:** bugs-report, katalon-studio\
**Created:** [November 30, 2018, 9:39pm UTC](https://forum.katalon.com/t/webui-comment-no-longer-printing-the-comment-to-the-log/14545 "2018-11-30T21:39:46Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chase\_Emerick](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/chase_emerick/32/365_2.png) [@Chase\_Emerick](https://forum.katalon.com/u/Chase_Emerick)\
**Post date:** [November 30, 2018, 9:39pm UTC](https://forum.katalon.com/t/webui-comment-no-longer-printing-the-comment-to-the-log/14545/1 "2018-11-30T21:39:46Z")

</div>

**## Operating System:** Windows 10

**## Katalon Studio Version:** 5.9.1

\*\*## Environment \*\*Chrome

**## Steps to reproduce**

Declare a variable.\*\* String \*\*testString = ‘someText’

Run a test case with WebUI.comment(testString)

After the test case is run check the console/log for the printed value

Notice nothing is printed but the syntax is shown instead.

**## Expected Behavior**

**comment:** ‘testString’

**## Actual Behavior**

**comment(testString)**

---

<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:** [December 2, 2018, 10:21pm UTC](https://forum.katalon.com/t/webui-comment-no-longer-printing-the-comment-to-the-log/14545/2 "2018-12-02T22:21:12Z")

</div>

I reporoduced the problem.

I made the following test case

```auto
import java.time.LocalDateTime
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
def now = LocalDateTime.now()
WebUI.comment("Now it is ${now}!")
println("Now it is ${now}")

```

I got the following output in the log:

```auto
SLF4J: The requested version 1.7.16 by your slf4j binding is not compatible with [1.6]
SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.
2018-12-03 07:14:19.810 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------
2018-12-03 07:14:19.815 INFO c.k.katalon.core.main.TestCaseExecutor - START Test Cases/TC1
2018-12-03 07:14:20.784 DEBUG testcase.TC1 - 1: now = LocalDateTime.now()
2018-12-03 07:14:20.838 DEBUG testcase.TC1 - 2: comment(Now it is $now!)
2018-12-03 07:14:21.116 DEBUG testcase.TC1 - 3: println(Now it is $now)
Now it is 2018-12-03T07:14:20.837
2018-12-03 07:14:21.149 INFO c.k.katalon.core.main.TestCaseExecutor - END Test Cases/TC1

```

I expect WebUI.comment() also to emit a string “Now it is 2018-12-03T07:14:20.837!” but it doesn’t.

It seems that [Katalon Studio 5.9.x has made](http://forum.katalon.com/discussion/11079/new-enhanced-execution-logs-new-enhanced-execution-logs) WebUI.comment() useless. Any workaround?

---

<div class="post-metadata">

**Author:** ![Ian\_Fraser](https://avatars.discourse-cdn.com/v4/letter/i/4bbf92/32.png) [@Ian\_Fraser](https://forum.katalon.com/u/Ian_Fraser)\
**Post date:** [December 2, 2018, 10:49pm UTC](https://forum.katalon.com/t/webui-comment-no-longer-printing-the-comment-to-the-log/14545/3 "2018-12-02T22:49:23Z")

</div>

I have gone back to 5.8.6 that’s my workaround.

Honestly letting a bug like into production is unforgivable

---

<div class="post-metadata">

**Author:** ![Ian\_Fraser](https://avatars.discourse-cdn.com/v4/letter/i/4bbf92/32.png) [@Ian\_Fraser](https://forum.katalon.com/u/Ian_Fraser)\
**Post date:** [December 3, 2018, 8:14pm UTC](https://forum.katalon.com/t/webui-comment-no-longer-printing-the-comment-to-the-log/14545/4 "2018-12-03T20:14:00Z")

</div>

@Katalon Studio When are you releasing a fix for this bug?

---

<div class="post-metadata">

**Author:** ![Ibus](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@Ibus](https://forum.katalon.com/u/Ibus)\
**Post date:** [December 4, 2018, 6:31am UTC](https://forum.katalon.com/t/webui-comment-no-longer-printing-the-comment-to-the-log/14545/5 "2018-12-04T06:31:49Z")

</div>

[kazurayam](http://forum.katalon.com/profile/4280/kazurayam)[  
 ](http://forum.katalon.com/profile/4280/kazurayam)[Ian Fraser](http://forum.katalon.com/profile/11100/Ian%20Fraser)

it may be related to the new logging feature:

[https://docs.katalon.com/katalon-studio/new/version-590.html#new-status-bar-in-log-viewer-fka-progress-bar](https://docs.katalon.com/katalon-studio/new/version-590.html#new-status-bar-in-log-viewer-fka-progress-bar)

Try setting the log level to TRACE.

If that is not working, as a workaround, use println for console output (usually I use WebUI.comment only to throw some data in the generated html report … so I cannot say the new behavior is disturbing …)

Also, you can try to use KeywordUtil.logInfo(). even if the purpose of it is for usage in custom keywords, should work in a testcase too.

[https://api-docs.katalon.com/studio/v4.6.0.2/api/com/kms/katalon/core/util/KeywordUtil.html](https://api-docs.katalon.com/studio/v4.6.0.2/api/com/kms/katalon/core/util/KeywordUtil.html)

---

<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:** [December 4, 2018, 6:50am UTC](https://forum.katalon.com/t/webui-comment-no-longer-printing-the-comment-to-the-log/14545/6 "2018-12-04T06:50:27Z")

</div>

Ibus,

Thank you for your suggestion. I tried the following log.properties file setting and got WebUI.comment() output.

```auto
# This file is used to configure Katalon Studio execution log levels.
logging.level.com.kms.katalon.core=TRACE

```

However, I would argue that the output from WebUI.comment() should be regarded as INFO level. Therefore it should be emitted to the LogView even if logging.level.com.kms.katalon.core is set DEBUG. Otherwise WebUI.comment() loses its raison d’etre.

---

<div class="post-metadata">

**Author:** ![Ian\_Fraser](https://avatars.discourse-cdn.com/v4/letter/i/4bbf92/32.png) [@Ian\_Fraser](https://forum.katalon.com/u/Ian_Fraser)\
**Post date:** [December 5, 2018, 3:19am UTC](https://forum.katalon.com/t/webui-comment-no-longer-printing-the-comment-to-the-log/14545/7 "2018-12-05T03:19:05Z")

</div>

> [kazurayam](http://forum.katalon.com/profile/4280/kazurayam) said:
> 
> Ibus,
> 
> Thank you for your suggestion. I tried the following log.properties file setting and got WebUI.comment() output.
> 
> ```auto
> # This file is used to configure Katalon Studio execution log levels.
> 
> ```

logging.level.com.kms.katalon.core=TRACE

> ```auto
> 
>   
> However, I would argue that the output from WebUI.comment() should be regarded as INFO level. Therefore it should be emitted to the LogView even if logging.level.com.kms.katalon.core is set DEBUG. Otherwise WebUI.comment() loses its raison d'etre.  
> 
>   
> 
> ```

I agree This should have been turned on by default

---

<div class="post-metadata">

**Author:** ![Ibus](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@Ibus](https://forum.katalon.com/u/Ibus)\
**Post date:** [December 5, 2018, 6:57am UTC](https://forum.katalon.com/t/webui-comment-no-longer-printing-the-comment-to-the-log/14545/8 "2018-12-05T06:57:58Z")

</div>

well … yeah, this is another story, it’s just a matter of preferences.

personally i like less verbosity in the console by default … but based on other members voting this can be brought into the development team attention

---

<div class="post-metadata">

**Author:** ![devalex88](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/devalex88/32/336_2.png) [@devalex88](https://forum.katalon.com/u/devalex88)\
**Post date:** [December 6, 2018, 9:05pm UTC](https://forum.katalon.com/t/webui-comment-no-longer-printing-the-comment-to-the-log/14545/9 "2018-12-06T21:05:33Z")

</div>

Thank you for your feedback. The issue will be fixed in the next release.

---

<div class="post-metadata">

**Author:** ![Shane\_McGarry](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/shane_mcgarry/32/30227_2.png) [@Shane\_McGarry](https://forum.katalon.com/u/Shane_McGarry)\
**Post date:** [December 19, 2018, 9:26pm UTC](https://forum.katalon.com/t/webui-comment-no-longer-printing-the-comment-to-the-log/14545/10 "2018-12-19T21:26:07Z")

</div>

Not sure if “will be fixed in the next release” meant 5.10 at the time, but I am still encountering this issue with Katalon Studio version 5.10.

 ![Katalon%20Issue](https://europe1.discourse-cdn.com/katalon/original/1X/7e44c709c238094d914017af3b719761a859e911.png)

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [December 19, 2018, 10:27pm UTC](https://forum.katalon.com/t/webui-comment-no-longer-printing-the-comment-to-the-log/14545/11 "2018-12-19T22:27:16Z")

</div>

I’m so glad I have not upgraded. I make extensive use of the logging and commenting systems as part of my customized reporting solution. This, I’m sure, would break my tests and put me on total shutdown.

@YoungNgo Please light a fire back there and get this fixed asap.

---

<div class="post-metadata">

**Author:** ![YoungNgo](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/youngngo/32/15132_2.png) [@YoungNgo](https://forum.katalon.com/u/YoungNgo)\
**Post date:** [December 19, 2018, 10:31pm UTC](https://forum.katalon.com/t/webui-comment-no-longer-printing-the-comment-to-the-log/14545/12 "2018-12-19T22:31:34Z")

</div>

Dear guys, we’ll have the fix for this by early next week at the latest.

---

<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:** [December 20, 2018, 12:26am UTC](https://forum.katalon.com/t/webui-comment-no-longer-printing-the-comment-to-the-log/14545/13 "2018-12-20T00:26:23Z")

</div>

> [@Russ\_Thomas](#):
>
> I make extensive use of the logging and commenting systems as part of my customized reporting solution.

Ver 5.9.0 changed the message format drastically:

- [https://docs.katalon.com/katalon-studio/docs/working-with-execution-log.html](https://docs.katalon.com/katalon-studio/docs/working-with-execution-log.html)

I am afraid this change may have some implications to you, Russ.

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [December 20, 2018, 3:40am UTC](https://forum.katalon.com/t/webui-comment-no-longer-printing-the-comment-to-the-log/14545/14 "2018-12-20T03:40:54Z")

</div>

Yep, thanks Kaz. I’m sure that’s true. I think I’ll wait until this bug is cleared - I don’t want to be chasing any problems that aren’t of my own making 🤪

---

<div class="post-metadata">

**Author:** ![Shane\_McGarry](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/shane_mcgarry/32/30227_2.png) [@Shane\_McGarry](https://forum.katalon.com/u/Shane_McGarry)\
**Post date:** [January 2, 2019, 2:53pm UTC](https://forum.katalon.com/t/webui-comment-no-longer-printing-the-comment-to-the-log/14545/15 "2019-01-02T14:53:29Z")

</div>

This has still not been addressed in Katalon Studio version 5.10.1.

---

<div class="post-metadata">

**Author:** ![Ibus](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@Ibus](https://forum.katalon.com/u/Ibus)\
**Post date:** [January 2, 2019, 4:02pm UTC](https://forum.katalon.com/t/webui-comment-no-longer-printing-the-comment-to-the-log/14545/16 "2019-01-02T16:02:59Z")

</div>

now honestly. using reporting/logging info for further validations/customization’s is just a bad practice  
we will always have the ‘chicken and egg’ problem: who is checking the checking code?

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [January 2, 2019, 8:20pm UTC](https://forum.katalon.com/t/webui-comment-no-longer-printing-the-comment-to-the-log/14545/17 "2019-01-02T20:20:08Z")

</div>

> [@Ibus](#):
>
> now honestly. using reporting/logging info for further validations/customization’s…

Who is claiming to do that?

> [@](#):
>
> … is just a bad practice

Is it your opinion that using logs is a bad practice or are you quoting from an industry-respected source?

> [@](#):
>
> we will always have the ‘chicken and egg’ problem: who is checking the checking code?

And that’s just pseudo-philosophical noise.

---

<div class="post-metadata">

**Author:** ![Loan\_Tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/loan_tran/32/11091_2.png) [@Loan\_Tran](https://forum.katalon.com/u/Loan_Tran)\
**Post date:** [January 3, 2019, 2:14am UTC](https://forum.katalon.com/t/webui-comment-no-longer-printing-the-comment-to-the-log/14545/18 "2019-01-03T02:14:10Z")

</div>

Hi @Shane_McGarry,  
Please update your version to the latest 5.10.1.  
I’ve checked your issue and found that WebUI.comment() now can print the comment to the log.

 ![image](https://europe1.discourse-cdn.com/katalon/original/1X/b0720eced8a650d8291da3a73f813f0b7d8fadc3.png)

---

<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:** [January 3, 2019, 5:40am UTC](https://forum.katalon.com/t/webui-comment-no-longer-printing-the-comment-to-the-log/14545/19 "2019-01-03T05:40:01Z")

</div>

Loan\_Tran,

I have updated my Katalon Studio to 5.10.1 and tried WebUI.comment(). I have confirmed that it can print the comment. Thank you.

---

<div class="post-metadata">

**Author:** ![Shane\_McGarry](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/shane_mcgarry/32/30227_2.png) [@Shane\_McGarry](https://forum.katalon.com/u/Shane_McGarry)\
**Post date:** [January 3, 2019, 3:14pm UTC](https://forum.katalon.com/t/webui-comment-no-longer-printing-the-comment-to-the-log/14545/20 "2019-01-03T15:14:06Z")

</div>

My sincere apologies @Loan_Tran. After following your example, I see that I did not expand the comment command ("1 - comment(“The following can be […]”) in the Log Viewer and then click on the comment text (“The following can be […]”) that displays. This was not an option for version 5.10, as seen in the image from my original post, so I initially missed the change when I had seen missing text for my stored variables. Sorry.

I have confirmed on Mac (OS version 10.14.1) and PC (Windows 10 version 10.0.16299) that this has indeed been addressed and resolved. Thank you and your team for your assistance.

[Next page](https://forum.katalon.com/t/webui-comment-no-longer-printing-the-comment-to-the-log/14545.md?page=2)
