# A fake KeywordLogger could integrate Extent Reports into Katalon project nicely

**URL:** <https://forum.katalon.com/t/a-fake-keywordlogger-could-integrate-extent-reports-into-katalon-project-nicely/166642>\
**Category:** Tips and Tricks\
**Tags:** katalon-studio\
**Created:** [February 27, 2025, 1:54pm UTC](https://forum.katalon.com/t/a-fake-keywordlogger-could-integrate-extent-reports-into-katalon-project-nicely/166642 "2025-02-27T13:54:40Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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 10, 2025, 11:30pm UTC](https://forum.katalon.com/t/a-fake-keywordlogger-could-integrate-extent-reports-into-katalon-project-nicely/166642/5 "2025-03-10T23:30:12Z")

</div>

I have updated my [demo project](https://github.com/kazurayam/KS_Fake_KeywordLogger_Integrates_ExtentReports/releases). It generates a html report compiled by Extent Reports, which includes

- screenshots taken by Katalon Keywords on failure
- Java stacktrace taken on keyword failure

With this change, the report compiled by Extent Reports covers the equivalent range of test execution logs as the Katalon built-in report covers.

[![](https://kazurayam.github.io/KS_Fake_KeywordLogger_Integrates_ExtentReports/images/Result.png) ](https://kazurayam.github.io/KS_Fake_KeywordLogger_Integrates_ExtentReports/images/Result.png)

The test case has nothing unusual; it looks just as an ordinary Katalon Test case, like this:

```auto
import com.kms.katalon.core.model.FailureHandling
import com.kms.katalon.core.testobject.ConditionType
import com.kms.katalon.core.testobject.TestObject
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI

TestObject makeTestObject(String id, String xpath) {
	TestObject tObj = new TestObject(id)
	tObj.addProperty("xpath", ConditionType.EQUALS, xpath)
	return tObj
}
TestObject invalidBtn = makeTestObject("invalidBtn", "//a[@id='btn-make-disappointment']")

WebUI.openBrowser("http://demoaut.katalon.com/")
WebUI.verifyElementPresent(invalidBtn, 10, FailureHandling.CONTINUE_ON_FAILURE)
WebUI.closeBrowser()

```

Please note that you also have the [source code](https://github.com/kazurayam/KS_Fake_KeywordLogger_Integrates_ExtentReports/blob/develop/Include/scripts/groovy/com/kazurayam/ks/reporting/ReportAdapterExtentImpl.groovy) in your hands so that you have a good chance to customize the report. For example, you can add “Git Branch Name: master” in the report as I did [here](http://forum.katalon.com/t/is-possible-to-add-in-html-or-pdf-reports-the-git-current-branch/163746/11).

However, as I mentioned in the original post, my project requires the `com.kms.katalon.core.logging.KeywordLogger` class to be modified. Only Katalon can do it in production; I can not change their proprietary product. So what I have done (the fake KeywordLogger class) will stay just a proof of concept.

Now I have done everything I wanted. It was a fun. I won’t do anymore on this issue.

---

_[View the full topic](https://forum.katalon.com/t/a-fake-keywordlogger-could-integrate-extent-reports-into-katalon-project-nicely/166642)._
