Jenkins/Katalon V7.9.0 :Getting error from Jenkins while executing the Katalon tests cases

Hi ,

I am getting the below error when attempting to use a newer version of Katalon 7.9.0. i’m currently trying to execute the tests cases in Jenkins but I’m getting the following error from Jenkins :
Running as SYSTEM
Building in workspace C:\Users\Houda.Kouiri\Katalon Studio\Muse\Test Suites\Android Device
[2021-01-19T10:08:12.891751200] Retrieve Katalon Studio version: 7.9.0, OS: windows 64
[2021-01-19T10:08:12.928297600] Number of releases: 369
[2021-01-19T10:08:12.928297600] java.lang.NullPointerException
at com.katalon.utils.KatalonDownloadUtils.getKatalonPackage(KatalonDownloadUtils.java:39)
at com.katalon.utils.KatalonUtils.executeKatalon(KatalonUtils.java:99)
at com.katalon.jenkins.plugin.helper.ExecuteKatalonStudioHelper$1.call(ExecuteKatalonStudioHelper.java:44)
at com.katalon.jenkins.plugin.helper.ExecuteKatalonStudioHelper$1.call(ExecuteKatalonStudioHelper.java:30)
at hudson.remoting.LocalChannel.call(LocalChannel.java:46)
at com.katalon.jenkins.plugin.helper.ExecuteKatalonStudioHelper.executeKatalon(ExecuteKatalonStudioHelper.java:30)
at com.katalon.jenkins.plugin.ExecuteKatalonStudioTask.doPerform(ExecuteKatalonStudioTask.java:105)
at com.katalon.jenkins.plugin.ExecuteKatalonStudioTask.perform(ExecuteKatalonStudioTask.java:91)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
at hudson.model.Build$BuildExecution.build(Build.java:197)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:514)
at hudson.model.Run.execute(Run.java:1907)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)

Build step ‘Execute Katalon Studio Tests’ marked build as failure
Finished: FAILURE

Can anyone help ?

@Shakila.Manawadu,

Katalon Studio and Katalon Runtime Engine have just released in a moment. Please trigger your test again.

Thank you @duyluong.

One last thing , i’m trying to build a new job in Jenkins but i’m getting the following error:
[2021-01-19T14:56:39.578359500] INFO: Katalon Version: 7.9.0 [2021-01-19T14:56:39.591324300] INFO: Command-line arguments: -runMode=console cd C:\Users\Houda.Kouiri\Downloads\Katalon_Studio_Windows_64-7.9.0\Katalon_Studio_Windows_64-7.9.0 [2021-01-19T14:56:39.592321500] INFO: User working dir: C:\Windows\TEMP\katalon-3770771689827369691 [2021-01-19T14:56:39.593318700] INFO: Error log: C:/Windows/Temp/session-90ff481d/.metadata/.log [2021-01-19T14:56:39.595313400] INFO: Katalon TestOps server URL: https://analytics.katalon.com [2021-01-19T14:56:39.596311100] INFO: Katalon Store server URL: https://store.katalon.com [2021-01-19T14:56:39.597308800] INFO: User home: C:\Windows\system32\config\systemprofile [2021-01-19T14:56:39.599302900] INFO: Java vendor: Oracle Corporation [2021-01-19T14:56:39.602311400] INFO: Java version: 1.8.0_181 [2021-01-19T14:56:39.604290800] INFO: Local OS: Windows 10 64bit [2021-01-19T14:56:40.730278100] INFO: CPU load: 43% [2021-01-19T14:56:40.737259900] INFO: Total memory: 7973 MB [2021-01-19T14:56:40.738256900] INFO: Free memory: 867 MB [2021-01-19T14:56:40.748230500] Start getting machine ID on Windows [2021-01-19T14:56:41.122230500] Start appending additional signatures [2021-01-19T14:56:41.136194] hardwareSerialNumber [2021-01-19T14:56:41.138187800] osDependentUsername system [2021-01-19T14:56:41.139185] End appending additional signatures f544ca20-f7d3-4afb-9e03-8a78e8d68632__system [2021-01-19T14:56:41.140182300] End getting machine ID on Windows 54b8fa04736e8344b4591acbede33047 [2021-01-19T14:56:41.141179800] INFO: Machine ID: 54b8fa04736e8344b4591acbede33047 [2021-01-19T14:56:41.156140] INFO: Your environment is compatible with the Katalon Runtime Engine NODE-LOCKED or FLOATING license. For a fixed machine ID, use a NODE-LOCKED license; for a dynamic machine ID, use a FLOATING license. [2021-01-19T14:56:41.157137400] [2021-01-19T14:56:41.157137400] [2021-01-19T14:56:41.190065700] Activating… [2021-01-19T14:56:41.202034700] Start activating offline… [2021-01-19T14:56:41.204012100] Search for valid offline licenses in folder: C:\Windows\system32\config\systemprofile.katalon\license [2021-01-19T14:56:41.213986200] The number of valid offline licenses: 0 [2021-01-19T14:56:41.220968900] Offline activation failed. [2021-01-19T14:56:41.220968900] Start activating online… [2021-01-19T14:56:44.213977600] Online activation for console mode failed. [2021-01-19T14:56:44.213977600] Activation failed. Please make sure you are using a valid license. [2021-01-19T14:56:44.215963700] All launchers terminated Build step ‘Execute Katalon Studio Tests’ marked build as failure Finished: FAILURE

Can you please assist

Hi @Shakila.Manawadu,

Please add -apiKey to command parameters to let KRE can check your license.

Thank you @duyluong
i’ve added Api Key to the command line but still have the same issue.

Running as SYSTEM Building in workspace C:\Users*****\Katalon Studio\Muse\Test Suites\Android Device

[2021-01-26T12:48:19.679584600] Katalon Studio package has been downloaded already.

[2021-01-26T12:48:19.679584600] Using Katalon Studio at C:\Windows\system32\config\systemprofile.katalon\7.9.0\Katalon_Studio_Engine_Windows_64-7.9.0 [2021-01-26T12:48:19.981550900] Making driver executables… [2021-01-26T12:48:19.981550900] Drivers folder at: C:\Windows\system32\config\systemprofile.katalon\7.9.0\Katalon_Studio_Engine_Windows_64-7.9.0\configuration\resources\drivers [2021-01-26T12:48:19.983544400] Set chromedriver.exe as executable ! [2021-01-26T12:48:19.985538700] Set credits.html as executable ! [2021-01-26T12:48:19.985538700] Set LICENSE as executable ! [2021-01-26T12:48:19.985538700] Set msedgedriver.exe as executable ! [2021-01-26T12:48:19.986535500] Set MicrosoftWebDriver.exe as executable ! [2021-01-26T12:48:19.987533100] Set geckodriver.exe as executable ! [2021-01-26T12:48:19.987533100] Set IEDriverServer.exe as executable ! [2021-01-26T12:48:19.988530600] Execute [cmd, /c, C:\Windows\system32\config\systemprofile.katalon\7.9.0\Katalon_Studio_Engine_Windows_64-7.9.0\katalonc.exe -noSplash -runMode=console cd C:\Users**\Downloads\Katalon_Studio_Windows_64-7.9.0\Katalon_Studio_Windows_64-7.9.0 -projectPath="C:\Users*\Katalon Studio\Muse\Muse.prj" -retry=0 -testSuitePath=“Test Suites/Android Device/01-Home Page Screen” -kobitonDeviceId="*****" -executionProfile=“default” -browserType=“Kobiton Device” -apiKey=“myapi” --config -proxy.auth.option=NO_PROXY -proxy.system.option=NO_PROXY -proxy.system.applyToDesiredCapabilities=true -kobiton.authentication.serverUrl=“https://api.kobiton.com/wd/hub” -kobiton.authentication.username=“museauto” -kobiton.authentication.apiKey=“MYAPI” ]

in C:\Windows\TEMP\katalon-15951911714327797620

[2021-01-26T12:48:22.014862600] Katalon workspace folder is set to default location: C:\Windows\TEMP\session-5da614fe

[2021-01-26T12:48:22.178425300] Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified

[2021-01-26T12:48:22.178425300] 134 org.codehaus.groovy_2.4.20.v202009301404-e2006-RELEASE ACTIVE

[2021-01-26T12:48:22.471645500]

[2021-01-26T12:48:22.471645500]

[2021-01-26T12:48:22.472640800] INFO: Katalon Version: 7.9.0 [2021-01-26T12:48:22.476628800] INFO: Command-line arguments: -runMode=console cd C:\Users\Houda.Kouiri\Downloads\Katalon_Studio_Windows_64-7.9.0\Katalon_Studio_Windows_64-7.9.0

[2021-01-26T12:48:22.477627] INFO: User working dir: C:\Windows\TEMP\katalon-15951911714327797620

[2021-01-26T12:48:22.478623500] INFO: Error log: C:/Windows/Temp/session-5da614fe/.metadata/.log

[2021-01-26T12:48:22.479621700] INFO: Katalon TestOps server URL: https://analytics.katalon.com

[2021-01-26T12:48:22.479621700] INFO: Katalon Store server URL: https://store.katalon.com

[2021-01-26T12:48:22.480618] INFO: User home: C:\Windows\system32\config\systemprofile

[2021-01-26T12:48:22.480618] INFO: Java vendor: Oracle Corporation

[2021-01-26T12:48:22.480618] INFO: Java version: 1.8.0_181

[2021-01-26T12:48:22.481615] INFO: Local OS: Windows 10 64bit [2021-01-26T12:48:22.869607500] INFO: CPU load: 27%

[2021-01-26T12:48:22.871573100] INFO: Total memory: 7973 MB [2021-01-26T12:48:22.872569700] INFO: Free memory: 564 MB

[2021-01-26T12:48:22.875562] Start getting machine ID on Windows

[2021-01-26T12:48:22.974298400] Start appending additional signatures [2021-01-26T12:48:22.979285200] hardwareSerialNumber

[2021-01-26T12:48:22.980296400] osDependentUsername system [2021-01-26T12:48:22.980296400] End appending additional signatures *****__system

[2021-01-26T12:48:22.981280] End getting machine ID on Windows *****

[2021-01-26T12:48:22.981280] INFO: Machine ID: *******

[2021-01-26T12:48:22.985269300] INFO: Your environment is compatible with the Katalon Runtime Engine NODE-LOCKED or FLOATING license. For a fixed machine ID, use a NODE-LOCKED license; for a dynamic machine ID, use a FLOATING license.

[2021-01-26T12:48:22.985269300]

[2021-01-26T12:48:22.985269300]

[2021-01-26T12:48:22.999232300] Activating…

[2021-01-26T12:48:23.002231100] Start activating offline…

[2021-01-26T12:48:23.003221200] Search for valid offline licenses in folder: C:\Windows\system32\config\systemprofile.katalon\license

[2021-01-26T12:48:23.010234400] The number of valid offline licenses: 0 [2021-01-26T12:48:23.011202900] Offline activation failed.

[2021-01-26T12:48:23.011202900] Start activating online…

[2021-01-26T12:48:24.846133] Online activation for console mode failed. [2021-01-26T12:48:24.846133] Activation failed. Please make sure you are using a valid license. [2021-01-26T12:48:24.847126] All launchers terminated Build step ‘Execute Katalon Studio Tests’ marked build as failure Finished: FAILURE

I have only KSE license . Do i need KRE subscription to proceed with Jenkins ?

If yes do i need to buy offline license KRE ?

Thank you for your help

Hi @Shakila.Manawadu,

I have only KSE license . Do i need KRE subscription to proceed with Jenkins ?

Yes, You will need KRE subscriptions to activate Katalon Runtime Engine

If yes do i need to buy offline license KRE ?

Yes, you will.

For further details, please go through our license guideline: https://d1h3p5fzmizjvp.cloudfront.net/other-resources/Katalon-License-Guide-112020.pdf