Cannot Execute Katalon Test Collection (Android) from Jenkins

In katalon studio is successfully executed test collection (Android)
But i found issue when i run katalon command from Jenkins, below is error message:

C:\Katalon_Studio_Windows_64-6.1.1>katalon -noSplash -runMode=console -projectPath=“D:\Katalon_Workspaces\Mobile-Android\mp2-blanja-qa-automation-android\MobileApps.prj” -retry=0 -testSuiteCollectionPath=“Test Suites\Collection\TC01” -executionProfile=“staging”
Delete folder: bin
Delete folder: Libs
Opening project file: D:\Katalon_Workspaces\Mobile-Android\mp2-blanja-qa-automation-android\MobileApps.prj
Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified
169 2.4.7.xx-201611170128-e46 = ACTIVE
00:08:36.030 [Worker-4] DEBUG org.eclipse.jgit.util.FS - readpipe [git, --version],D:\Git\cmd
00:08:36.162 [Worker-4] DEBUG org.eclipse.jgit.util.FS - readpipe may return ‘git version 2.20.1.windows.1’
00:08:36.163 [Worker-4] DEBUG org.eclipse.jgit.util.FS - remaining output:

00:08:36.172 [Worker-4] DEBUG org.eclipse.jgit.util.FS - readpipe [git, config, --system, --edit],D:\Git\cmd
00:08:36.275 [Worker-4] DEBUG org.eclipse.jgit.util.FS - readpipe may return ‘D:/Git/mingw64/etc/gitconfig’
00:08:36.275 [Worker-4] DEBUG org.eclipse.jgit.util.FS - remaining output:

/D%%Katalon_Workspaces%Mobile-Android%mp2-blanja-qa-automation-android%MobileApps.prj/Keywords/com/metraplasa/Scrolling.groovy: 20 Groovy:unable to resolve class internal.GlobalVariable
/D%%Katalon_Workspaces%Mobile-Android%mp2-blanja-qa-automation-android%MobileApps.prj/Test Listeners/StartAppListener.groovy: 16 Groovy:unable to resolve class internal.GlobalVariable
Generating global variables…
Parsing custom keywords…
Project ‘MobileApps’ opened
com.kms.katalon.execution.exception.ExecutionException: Unable to execute test suite ‘Test Suites/Apps Buyer/Redesign Search And Category Result/TCA-RSCBUY002’
at com.kms.katalon.execution.launcher.TestSuiteCollectionConsoleLauncher.buildLauncher(TestSuiteCollectionConsoleLauncher.java:105)
at com.kms.katalon.execution.launcher.TestSuiteCollectionConsoleLauncher.buildSubLaunchers(TestSuiteCollectionConsoleLauncher.java:71)
at com.kms.katalon.execution.launcher.TestSuiteCollectionConsoleLauncher.newInstance(TestSuiteCollectionConsoleLauncher.java:53)
at com.kms.katalon.execution.console.entity.TestSuiteCollectionLauncherOptionParser.getConsoleLauncher(TestSuiteCollectionLauncherOptionParser.java:53)
at com.kms.katalon.execution.console.ConsoleExecutor.execute(ConsoleExecutor.java:75)
at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:133)
at com.kms.katalon.console.application.Application.runConsole(Application.java:76)
at com.kms.katalon.core.application.Application.runConsole(Application.java:80)
at com.kms.katalon.core.application.Application.start(Application.java:63)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)

Hi @katalonmetraplasa,

One thing I have seen is that Android tests will fail if an emulator isn’t already running. I don’t think Katalon can start Android emulators the way it can with iOS simulators. Can you confirm that an emulator is running on Jenkins before the test suite collection starts?

– Chris

Solution:
I was installed jenkins on windows with .msi installer
And my colleague reinstall jenkins with Generic Java package (.war) and solved.