"KeywordUtil.logInfo()" instead of "new KeywordLogger()"

Team, how to mark a step as failed by using KeywordUtil? When I use KeywordUtil.markFailed(‘’), it doesn’t show failed icon.

Failed icon is present in Katalon Studio 5.10.1 and 6.0.5

Capture

By default, last step of the test case shows as failed whenever there is a failure in test. Add one more step and check.

image

Same as you.
I have to use markFailedAndStop to see the failed icon on the first step