Android mobile testing with Katalon 10.2 - No enum constant com.kms.katalon.core.model.RunningMode.null

Hi, I am encountering an issue with Katalon recorder. I am trying to record an Android mobile test and The error is “No enum constant com.kms.katalon.core.model.RunningMode.null”.

I have tested a scenario where I created completely blank project both in Katalon studio version 10.2 and 10.1.1. Then I tried to record some test steps. When the recorder attempted to start the app in the Katalon 10.2, I got that error. I tried the same thing in 10.1.1, with identical application and there was no problem at all. The recorder started the application in my real Android device and all was working fine.

I am trying to solve this for several days now and nothing works. Is there anything I could do?

2 Likes

Hi there, and thanks for posting in the Katalon community! :hugs:

To help you faster, please review our guide on Katalon Recorder here: Katalon Recorder overview | Katalon Docs. Double-checking the steps and configurations might resolve the issue.

If the doc doesn’t help, feel free to provide more details, and a community member will assist you soon. Thanks for being a part of our community!

Best,
Elly Tran

Hi there, and thanks for posting in the Katalon community! :hugs:

To help you faster, please review our guide on Record Mobile Utility here:

Double-checking the steps and configurations might resolve the issue.

If the doc doesn’t help, feel free to provide more details, and a community member will assist you soon.

Thanks for being a part of our community!
Best,
Elly Tran

Nothing above helped. I am using my Android 15 Nothing phone, appium version 2.18, uiautomator2 version 4.2.3 and the most recent android SDK. Running tests works fine, only the recording and the spy do not.

I have exctly the same issue.
Physical device Galaxy S24 Ultra, Android 14
Katalon Studio Enterprise 10.2.0
Appium 2.18 uiautomator2 4.2.3

It started once randomly, when selected from apk file (not app id) but later no success.

To resolve the “No enum constant RunningMode.null” error in Katalon Studio 10.2 for Android mobile testing:

Solution

1. Explicitly Set runningMode in Desired Capabilities

  • Step 1: Go to Project Settings > Desired Capabilities > Mobile.
  • Step 2: Add a capability with:
    • Name: runningMode
    • Value: LOCAL (or REMOTE if using cloud devices).
    • Type: String.

2. Use a Custom Capabilities File

  • Create a caps.json file with:
{
  "platformName": "Android",
  "runningMode": "LOCAL"
}
  • In the Mobile Recorder wizard, select Use Custom Capabilities and point to this file.

3. Downgrade to Katalon 10.1.1 (Temporary Fix)

  • If urgent, use Katalon 10.1.1 (download here) until Katalon fixes the bug in 10.2.

4. Reinstall Katalon 10.2

  • Uninstall Katalon 10.2, delete its installation folder, and reinstall it fresh to rule out corruption.

5. Modify katalon.conf (Advanced)

  • Edit katalon.conf in your project’s settings folder:
mobile_capabilities.runningMode="LOCAL"

Why This Happens

  • Katalon 10.2’s Mobile Recorder fails to infer the runningMode automatically, defaulting to null when starting the Android session.
  • This is a bug in 10.2 (fixed in 10.1.1), where the runningMode must now be explicitly defined.

Verification Steps

  1. Set runningMode="LOCAL" in capabilities.
  2. Start the Mobile Recorder and attempt to launch the app.
  3. If successful, the app should open on your Android device/emulator.

If the Issue Persists

  • Use CLI Execution: Run tests via command line with explicit parameters:
katalonc.exe -projectPath="C:\Project" -testSuitePath="Test Suites/Mobile" -g_runningMode="LOCAL"

Exactly. One day it worked at least with apk file, the next day the recorder/spy stopped working completely.

Only the downgrade option worked for me.

1 Like

It seems the issue is specific to Katalon 10.2, as everything works fine in 10.1.1. You might want to stick with 10.1.1 for now or try clearing the cache or reinstalling 10.2. If that doesn’t work, reaching out to Katalon support could help. In the meantime, if you need a quick break, check out Car Parking Multiplayer Mod Apk—it’s a great way to relax and have fun. Hope you get it sorted soon!

Hi all,

This is an acknowledged problem from our team and we plan to fix this in next version 10.2.1 soon. For now, please help downgrade version for quick troubleshooting. Thank you for your reporting.

1 Like