# Unable to run a Login test

**URL:** <https://forum.katalon.com/t/unable-to-run-a-login-test/158110>\
**Category:** Miscellaneous\
**Created:** [December 7, 2024, 4:00am UTC](https://forum.katalon.com/t/unable-to-run-a-login-test/158110 "2024-12-07T04:00:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![amekonn1](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/amekonn1/32/22830_2.png) [@amekonn1](https://forum.katalon.com/u/amekonn1)\
**Post date:** [December 7, 2024, 4:00am UTC](https://forum.katalon.com/t/unable-to-run-a-login-test/158110/1 "2024-12-07T04:00:32Z")

</div>

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)` ` `

---

<div class="post-metadata">

**Author:** ![dineshh](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dineshh/32/24488_2.png) [@dineshh](https://forum.katalon.com/u/dineshh)\
**Post date:** [December 7, 2024, 6:08am UTC](https://forum.katalon.com/t/unable-to-run-a-login-test/158110/2 "2024-12-07T06:08:56Z")

</div>

what version are you using?

---

<div class="post-metadata">

**Author:** ![grylion54](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/grylion54/32/16265_2.png) [@grylion54](https://forum.katalon.com/u/grylion54)\
**Post date:** [December 7, 2024, 4:42pm UTC](https://forum.katalon.com/t/unable-to-run-a-login-test/158110/3 "2024-12-07T16:42:50Z")

</div>

> [@amekonn1](#):
>
> PerfectoTestListener

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

> [@TIP: Perfecto Integration with Katalon 7.4](http://forum.katalon.com/t/tip-perfecto-integration-with-katalon-7-4/42566):
>
> Hi Team, While using latest version 7.4.0, i was facing some challenges. After some investigation, i have resolved those problems. I hope this information helps. Below are the steps, i have followed, Issue: Caught: java.lang.NoClassDefFoundError: Unable to load class PerfectoTestListener due to missing dependency Lcom/perfecto/reportium/client/ReportiumClient; java.lang.NoClassDefFoundError: Unable to load class PerfectoTestListener due to missing dependency Lcom/perfecto/reportium/client/Re…

---

<div class="post-metadata">

**Author:** ![amekonn1](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/amekonn1/32/22830_2.png) [@amekonn1](https://forum.katalon.com/u/amekonn1)\
**Post date:** [December 17, 2024, 7:22am UTC](https://forum.katalon.com/t/unable-to-run-a-login-test/158110/4 "2024-12-17T07:22:58Z")

</div>

It’s version 10.0.0

---

<div class="post-metadata">

**Author:** ![dineshh](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dineshh/32/24488_2.png) [@dineshh](https://forum.katalon.com/u/dineshh)\
**Post date:** [December 18, 2024, 4:47am UTC](https://forum.katalon.com/t/unable-to-run-a-login-test/158110/5 "2024-12-18T04:47:28Z")

</div>

did you refer this [TIP: Perfecto Integration with Katalon 7.4](http://forum.katalon.com/t/tip-perfecto-integration-with-katalon-7-4/42566)

---

<div class="post-metadata">

**Author:** ![Elly\_Tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/elly_tran/32/21874_2.png) [@Elly\_Tran](https://forum.katalon.com/u/Elly_Tran)\
**Post date:** [March 6, 2025, 3:30am UTC](https://forum.katalon.com/t/unable-to-run-a-login-test/158110/6 "2025-03-06T03:30:07Z")

</div>

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:

```auto
Project > Settings > External Libraries

```

2. Add the following **Maven dependency** manually to `build.gradle` (if using Gradle):

```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](https://search.maven.org/search?q=g:com.perfecto).
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:

```auto
.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** :

```groovy
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.
