Add keyword for print variable value in report

Hii,
Sometimes we need to log a value of variable that very useful to knowing application state, i know there’s some way to print variable like this

and those will also included in reporting html like this:

when run locally we can check the result in katalon log, but when we integrate to CI system, how can we get the log when run Test Suite collections? there’s now way to knowing the value in console log.

So please make a keyword to print variable value in report :slight_smile:

FYI, for work around we use keyword

KeywordUtil._markErrorAndStop_("Browser logs: \\n"+ aVariableToPrint)

and it can evaluated variable in report text like this

Screen Shot 2018-04-30 at 16.25.22.png

Screen Shot 2018-04-30 at 16.37.13.png

Screen Shot 2018-04-30 at 16.39.51.png

6 Likes

Hi @1479-FachrulCH,

Thank you for choosing Katalon Studio. I have logged this feature for Katalon team to evaluate and consider for future release.

We appreciate your feedback.

Best,
Liam

Hi @Liam_B

Has this feature been implemented yet?
I would also like to add messages into the results HTML file to include variables names from the test itself

TIA

hi all, any update on this request ?

Hi katalon team any update on this request ?!

I’ve tried this. Hope it will help.

KeywordUtil.logInfo("Variable to print "+ Var1)

It will print values in test report like below.

1 Like