How to set Remote Mobile Driver programmatically in Katalon (ANDROID_DRIVER / iOS / BrowserStack)?
We have one shared repository for both Android and iOS mobile tests. Our GitHub runner decides at runtime which platform will run.
What I need:
• For Android: Remote execution using Appium with ANDROID_DRIVER, and connection to a local Appium server.
• For iOS: Remote execution using BrowserStack.
The problem:
If I manually configure the following in the GUI:
Project → Settings → Desired Capabilities → Remote →
Remote Web Server Type = Appium
Remote Mobile Driver = ANDROID_DRIVER
…then everything works.
But if these fields are not set in the GUI, Katalon fails immediately with:
NullPointerException: Name is null
Katalon seems to require that the “Remote Mobile Driver” dropdown (e.g. ANDROID_DRIVER) is set manually in the GUI first. Otherwise it cannot start the driver even if I pass desired capabilities programmatically.
What I already tried:
• Setting desired capabilities in code
• Passing desired capabilities using -desiredCapabilities=””
• Changing remoteWebDriverType in CLI
• Switching values through GlobalVariables
Katalon ignores all of this unless the GUI dropdown is set.
My questions:
- Is there any way to set remoteMobileDriver (for example ANDROID_DRIVER) programmatically via CLI? Something like:
-remoteWebDriverType=Appium
-remoteMobileDriver=ANDROID_DRIVER - Is it possible to use remote Appium together with:
-browserType=“Android”
so that Katalon selects the correct mobile driver without needing the GUI dropdown?
Goal:
I need a reliable way to dynamically switch between Android (local Appium) and iOS (BrowserStack) in CI/CD without manually setting anything in the GUI.
Thanks.