I am encountering an error when executing my test cases in Katalon Studio 10.3.2.0, specifically related to the generation of the Extent report. Below are the relevant details and the error that appears in the logs:
Error Description:
The error NoClassDefFoundError indicates that a necessary class is missing, which Katalon is trying to use when generating the Extent report. I would like to understand why it is attempting to generate a report when it hasn’t been explicitly indicated in the script, and how I can resolve this issue.
Steps I Have Tried:
Verifying the configuration of the Extent Reports plugin.
Reviewing project dependencies.
Checking for errors in the test scripts.
I would appreciate any advice or solutions you can provide to help resolve this issue.
Uninstall the plugin via Katalon Studio and remove any manually added Extent Reports listeners.
Reload plugins using “Profile > Reload Plugins” in Katalon Studio.
Reinstall the latest Extent Reports plugin compatible with your current Katalon version from the Katalon Store.​
Update Listeners/Custom Code
If you are using custom listeners, ensure they use only APIs/classes available in your version of Katalon Studio. Remove any references to deprecated or missing internal classes.
Check for Katalon Version Compatibility
Review the Extent Reports plugin documentation and release notes to confirm version support. Update to a fully compatible plugin and Katalon Studio pair.​
Clean Project Workspace
Close Katalon, delete the bin/, Libs/, and temp folders in the project directory, and reopen to let Katalon rebuild dependencies.
Plugin Scope
Note that the Extent Reports plugin only generates reports for “Test Suite” (not for individual Test Cases)
I tried all the options mentioned, with a new project and even with an older version of Katalon, but it still doesn’t work. What other option would you suggest?
Unfortunately the plugin does not disclose its source code. So nobody except Katalon can check how this plugin is implemented. Neither do I.
Presumably the Extent Reports product has nothing to do with the string com.kms.katalon.core.reporting.basic.reporting.ReportWriterUtil.
@ramiromarcos should check his/her test scripts and investigate why it wanted to find the com.kms.katalon.core.reporting.basic.reporting.ReportWriterUtil class.
Starting from v6.1.5, the Report feature is no longer available on Katalon Studio, users need to download this plugin to continue using.
I remember that nobody welcomed this idea. Why do we have to bother installing a plugin for the mandatory feature: “the basic report”. I believe nobody used this plugin; so Katalon dropped it.
But now @ramiromarcos requires it with v10.3.2. I wonder why. I guess @ramiromarcos has a custom Groovy class (keyword?) which depends on the com.kms.katalon.core.reporting.basic.reporting.ReportWriterUtil. I suppose, @ramiromarcos have to modify his/her class.
If @ramiromarcos could install the plugin into the v10.3.2, the ClassNotFoundException might be resolved.
See the Katalon Studio API Javadoc for the class com.kms.katalon.core.reporting.ReportWriterUtil:
This class is included in all version of Katalon Studio including the latest v10.x.
If you compare the 2 classes com.kms.katalon.core.reporting.ReportWriterUtil and com.kms.katalon.core.basic.reporting.ReportWriterUtil, you will find that these are almost identical. They implements almost the same set of methods.
I guess that the missing com.kms.katalon.core.basic.reporting.ReportWriterUtil was created, years ago, by simply copy&pasting the original com.kms.katalon.core.reporting.ReportWriterUtil into a new source with another package com.kms.katalon.core.basic.reporting.
So I think that @ramiromarcos should try changing his/her custom code: