How to custom record to fail global report?

Hello Everyone Good Day

!! prefix Question Plz Answer to me :slight_smile:

I want to create a manual defect for the items the team verifies.
I write this method
KeywordUtil.markFailed(‘something String Text’)

But I used this method,
The test report indicates normal result.

Direction Question
How can I mark a manual defect in the Test Report?

Here add to Pic.

Thx for reading

55.PNG

66.PNG

Self Answer
I found menual Fail logging

define KeywordLogger and generate Object
KeywordLogger log = new KeywordLogger()
(KeywordLogger class full-path : com.kms.katalon.core.logging.KeywordLogger)

and now you use this method

log.logFailed(‘something your record String’)

then, you will find Test Report open .html file
and custom fail log

I hope I was helpful to another people

1 Like