Unable to run a Login test

Hi, I got this error message when trying to run a login test:
Caught: java.lang.NoClassDefFoundError: Unable to load class PerfectoTestListener due to missing dependency com/perfecto/reportium/client/ReportiumClient java.lang.NoClassDefFoundError: Unable to load class PerfectoTestListener due to missing dependency com/perfecto/reportium/client/ReportiumClient at org.apache.groovy.ast.tools.ClassNodeUtils.getDeclaredMethodsFromSuper(ClassNodeUtils.java:157) at com.kms.katalon.core.context.internal.TestHooker.collectContextMethods(TestHooker.java:62) at com.kms.katalon.core.context.internal.TestHooker.<init>(TestHooker.java:45) at com.kms.katalon.core.context.internal.TestListenerCollector.collectPluginTestListeners(TestListenerCollector.java:75) at com.kms.katalon.core.context.internal.TestListenerCollector.<init>(TestListenerCollector.java:43) at com.kms.katalon.core.context.internal.ExecutionEventManager.<init>(ExecutionEventManager.java:26) at com.kms.katalon.core.context.internal.ExecutionEventManager.getInstance(ExecutionEventManager.java:16) at com.kms.katalon.core.main.TestCaseMain.beforeStart(TestCaseMain.java:67) at TempTestCase1733535150144.run(TempTestCase1733535150144.groovy:23) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

1 Like

what version are you using?

Have you read the following post to see if you have the same issue as the below OP?

It’s version 10.0.0

did you refer this TIP: Perfecto Integration with Katalon 7.4

Hi @amekonn1,

Have you solved your issue yet? If yes, please help provide solution so that others can refer to. If no, please try the following suggestions or close the topic if you no longer work on this.

If you are still facing this issue, the error message “Unable to load class PerfectoTestListener due to missing dependency com/perfecto/reportium/client/ReportiumClient” suggests that your Katalon Studio project is missing a required dependency related to Perfecto (a cloud-based testing platform).

Some possible reasons and approaches are:
1. Missing or Corrupted Perfecto Plugin in Katalon
If you’re using Perfecto for cloud testing, ensure the Perfecto plugin is installed in Katalon Studio.

Workaround:

  1. Go to Katalon Studio → Plugins Store.
  2. Search for Perfecto Plugin and install it.
  3. Restart Katalon Studio and try running the test again.

2. Missing Perfecto Library in Project Dependencies
If the Perfecto client library (com.perfecto.reportium.client.ReportiumClient) is missing, Katalon won’t be able to execute test cases.

Workaround: Manually Add the Perfecto Dependency

  1. Open Katalon Studio and navigate to:
    Project > Settings > External Libraries
    
  2. Add the following Maven dependency manually to build.gradle (if using Gradle):
    dependencies {
        implementation 'com.perfecto:reportium-client:1.10.0'  // Check for latest version
    }
    
  3. If not using Gradle, download the Perfecto JAR file manually from Perfecto’s Maven Repository.
  4. Place the JAR file inside the Drivers folder in your Katalon project.

3. Cache Issues in Katalon Studio
If you’ve recently updated plugins or dependencies, Katalon might still be using an old cached version.

Workaround: Clear Cache and Refresh Katalon

  1. Close Katalon Studio.
  2. Navigate to your project folder and delete:
    .classpath
    .project
    .settings/
    bin/
    Libs/
    
  3. Restart Katalon Studio and reopen your project.
  4. Rebuild your project by clicking “Build Automatically” under Project > Build Automatically.

4. Incorrect Test Listener Configuration
If your project references a custom test listener (PerfectoTestListener), but the class is missing, Katalon will throw this error.

Workaround: Check Test Listener Implementation

  1. Open Test Listeners in Katalon Studio (Test Listeners folder).
  2. If you see PerfectoTestListener.groovy, make sure it correctly imports ReportiumClient:
    import com.perfecto.reportium.client.ReportiumClient
    
  3. If the import is missing or causing errors, reinstall the Perfecto plugin.

Please try these suggestions and let us know if it works/not work.