Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified

I got below error message while running script from console. It is showing below error message. Please let me know why is it showing error message ?

Command :

katalon -noSplash -runMode=console -consoleLog -noExit -projectPath=“C:\Program Files (x86)\Jenkins\workspace\Testing_automation_kataon\Testing_Login.prj” -retry=0 -testSuitePath=“Test Suites/SmokeTest” -executionProfile=“default” -browserType=“Chrome”

Error Message:-

Opening project file: C:\Program Files (x86)\Jenkins\workspace\Testing_automation_kataon\Testing_Login.prj
[EL Warning]: 2019-02-14 15:41:23.176–Ignoring attribute [lastRun] on class [TestSuiteEntity] as no Property was generated for it.
Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified
166 2.4.7.xx-201611170128-e46 = ACTIVE
org.eclipse.core.internal.resources.ResourceException: Invalid project description.
at org.eclipse.core.internal.resources.Project.checkDescription(Project.java:169)
at org.eclipse.core.internal.resources.Project.assertCreateRequirements(Project.java:53)
at org.eclipse.core.internal.resources.Project.create(Project.java:263)
at org.eclipse.core.internal.resources.Project.create(Project.java:247)
at com.kms.katalon.groovy.util.GroovyUtil.initGroovyProjectDescription(GroovyUtil.java:543)
at com.kms.katalon.groovy.util.GroovyUtil.initGroovyProject(GroovyUtil.java:149)
at com.kms.katalon.groovy.util.GroovyUtil.openGroovyProject(GroovyUtil.java:647)
at com.kms.katalon.dal.fileservice.manager.ProjectFileServiceManager.openProject(ProjectFileServiceManager.java:79)
at com.kms.katalon.dal.fileservice.dataprovider.ProjectFileServiceDataProvider.openProject(ProjectFileServiceDataProvider.java:24)
at com.kms.katalon.controller.ProjectController.openProject(ProjectController.java:98)
at com.kms.katalon.execution.console.ConsoleMain.getProject(ConsoleMain.java:258)
at com.kms.katalon.execution.console.ConsoleMain.findProject(ConsoleMain.java:163)
at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:90)
at com.kms.katalon.console.application.Application.runConsole(Application.java:76)
at com.kms.katalon.core.application.Application.runConsole(Application.java:76)
at com.kms.katalon.core.application.Application.start(Application.java:59)
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)
Contains: OK
Contains: C:\Program Files (x86)\Jenkins\workspace\Testing_automation_kataon overlaps the workspace location: C:\Program Files (x86)\Jenkins\workspace\Testing_automation_kataon\config

Request sent successfully.

Regards,
Poovaraj

Have you tried executing the test suite in GUI mode? Does it work or encounter the same problem?

it is running successfully when I am executing from GUI mode

@poovaraj, please try the solution in this post and see if it works.

Thank you! Let me check this issue again.

Local Execution:

It is working after moving the batch file outside of the project and Config folder is generated outside of the project while running from command prompt.

Execute from Jenkins

Project is cloning from bit-bucket to Jenkins work-space when I am build job from Jenkins. How to configure batch file outside Jenkins work space ? The below command is throwing above error message.

katalon -runMode=console -projectPath=“C:\Program Files (x86)\Jenkins\workspace\automation_kataon\Test_Login.prj” -reportFolder=“Reports” -reportFileName=“report” -retry=0 -testSuitePath=“Test Suites/TS_RegressionTest” -browserType=“Chrome”

I am also facing the same problem when I am executing the katalon command through java code…but successfully execute through terminal manually…May I know why it is happening

Hi @poovaraj,

I had tried to run my TestSuite into Local Execution, but I got some issue.

I try explain my scenario:
Premise:
1)Katalon Studio 7.9.0
2)Katalon Studio Engine 7.9.0
3) Folder project: C:\Users\XXXXXXXXXX\git\test-project-sample
4)Folder Katalon:
C:\Users\XXXXXXXXXX.katalon\7.8.1
C:\Users\XXXXXXXXXX.katalon\7.9.0
C:\Users\XXXXXXXXXX.katalon\license
C:\Users\XXXXXXXXXX.katalon\Notification
C:\Users\XXXXXXXXXX.katalon\tools
C:\Users\XXXXXXXXXX.katalon\application.properties
C:\Users\XXXXXXXXXX.katalon\licenseServer.properties
C:\Users\XXXXXXXXXX.katalon\userProfile

Work step By Step
1)Build my TestCase and insert it into TestSuite. I run the TestSuite with GUI Katalon Studio. It is successful.

2)I need running the TestSuite from console

2a)I go in to folder Katalon Studio Engine ( I see the file Katalonc)
2b)I copy from Katalon Studio the Build CMD


2c)paste the command

2d)Enter

Best Regards
AndyCapp

@AndyCapp,

Please remove -apiKeyOnPremise parameter then run again.

Thanks

Hi @duyluong,

I removed -apiKeyOnPremise parameter, now it’s work fine.
Anyway, my goal is to run the Suite with Jenkins. I have installed the plugin

After, I have configured my Job on Jenkins

Some problems came out

Am I missing somethings?

Best regards

Hi @AndyCapp,

First of all, please remove “katalonc” the first parameter because it is duplicated with katalonc.exe.

Back to the original issue, your Windows Jenkins does not recognize the “cmd” command so in Manage Jenkins -> Configure System -> Shell, set the shell path as

  • C:\Windows\system32\cmd.exe

Hi @duyluong,
About the original issue, I can confirm, I am able to run the suite.

I have removed “Katalonc” from setUp, you can see my setup

Unfortunately, some problems came out

for your info, following setUp Jenkins–> Configure System

Thanks in advanced

bye
AndyCapp