No mobile device with name available (katalon+jenkins+genymotion)

Command console:
katalon -noSplash -runMode=console -projectPath=“C:\Katalon_Studio_Windows_64-5.4.1\projects\xxx\xxx.prj” -retry=0 -testSuitePath=“Test Suites/Regression test suite” -executionProfile=“default” -deviceId=“” -browserType=“Android”

1. Create command with Genymotion device
2. Send this command to jenkins
actual: No mobile device with name available

pls help if someone know solution

How can you get that deviceId value?

Vinh Nguyen said:

How can you get that deviceId value?

from command generation in katalon

So is the device up and running when you execute it? You need to make sure this device is up and running from Genymotion side

Vinh Nguyen said:

So is the device up and running when you execute it?

1. I opened and running device
2. Generate console commant in katalon (without running device you can’t create console android command)
3. Enter command to jenkins and start job

@Vinh Nguyen do you have solution?

guys any ideas?

1 Like

Same issue for me when I run command from Jenkins. Command example:

katalon -noSplash -runMode=console -projectPath="D:\Program Files\Jenkins\workspace\RunTests2\ProjectNae.prj" -retry=0 -testSuitePath="Test Suites/MyTests" -executionProfile="local" -deviceId="08af5b931831bba0" -browserType="Android" 

If to run the same command in cmd it will work.

This might be issue with Jenkins running as service. Because it creates some system user and may not know anything about devices connected to machine, don’t know why this.
Workaround is to start jenkins not as a service but from command line. In this case jenkins will be started by your user and finally can find a device

1 Like

Hi Same problem here,
The log:

Delete folder: bin
Delete folder: Libs
Opening project file: D:\Testmob\Testmob.prj
Parsing custom keywords in Plugins folder…
Generating global variables…
Parsing custom keywords…
Project ‘Testmob’ opened
18:39:23.475 [main] DEBUG com.kms.katalon.core.testdata.TestDataFactory - Finding test data with id ‘Data Files/GralVal’
18:39:23.534 [main] DEBUG com.kms.katalon.core.testdata.TestDataFactory - Test data is excel file, reading excel file
18:39:23.535 [main] DEBUG com.kms.katalon.core.testdata.TestDataFactory - Reading excel file with source file ‘D:\Testmob\MobSpreadsheet.xlsx’ and sheet name ‘Sheet1’
com.kms.katalon.execution.exception.ExecutionException: com.kms.katalon.execution.exception.ExecutionException: No mobile device with name ‘Pixel_2_API_28’ available
at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.getConsoleLauncher(
at com.kms.katalon.execution.console.ConsoleExecutor.execute(
at com.kms.katalon.execution.console.ConsoleMain.launch(
at com.kms.katalon.console.application.Application.runConsole(
at com.kms.katalon.core.application.Application.runConsole(
at com.kms.katalon.core.application.Application.start(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.eclipse.equinox.launcher.Main.invokeFramework(
at org.eclipse.equinox.launcher.Main.basicRun(
Caused by: com.kms.katalon.execution.exception.ExecutionException: No mobile device with name ‘Pixel_2_API_28’ available
at com.kms.katalon.execution.collector.RunConfigurationCollector.getRunConfiguration(
at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.createRunConfiguration(
at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.buildRunConfig(
at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.getConsoleLauncher(
… 17 more

C:\Program Files (x86)\Jenkins\workspace\MobGeneral>exit 2
Build step ‘Execute Windows batch command’ marked build as failure
Finished: FAILURE

My First Tc of the suite

Without Jenkins, runs perfectly.

Did someone manage to fix it ? Help please.

Hello, i still the same try to use this code. do you have any solution ?