Groovy problem - unable to resolve some classes during Jenkins execute

Hello,
When I start my Jenkins job (tests run on linux env), in console output, after first command I get following output:

/Scripts/DashboardVerification/Script1512052858006.groovy: 5 Groovy:unable to resolve class com.kms.katalon.core.checkpoint.Checkpoint
/Scripts/DashboardVerification/Script1512052858006.groovy: 6 Groovy:unable to resolve class com.kms.katalon.core.checkpoint.CheckpointFactory
/Scripts/DashboardVerification/Script1512052858006.groovy: 7 Groovy:unable to resolve class com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords
/Scripts/DashboardVerification/Script1512052858006.groovy: 8 Groovy:unable to resolve class com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords
/Scripts/DashboardVerification/Script1512052858006.groovy: 9 Groovy:unable to resolve class com.kms.katalon.core.model.FailureHandling
/Scripts/DashboardVerification/Script1512052858006.groovy: 10 Groovy:unable to resolve class com.kms.katalon.core.testcase.TestCase
/Scripts/DashboardVerification/Script1512052858006.groovy: 11 Groovy:unable to resolve class com.kms.katalon.core.testcase.TestCaseFactory
/Scripts/DashboardVerification/Script1512052858006.groovy: 12 Groovy:unable to resolve class com.kms.katalon.core.testdata.TestData
/Scripts/DashboardVerification/Script1512052858006.groovy: 13 Groovy:unable to resolve class com.kms.katalon.core.testdata.TestDataFactory
/Scripts/DashboardVerification/Script1512052858006.groovy: 14 Groovy:unable to resolve class com.kms.katalon.core.testobject.ObjectRepository
/Scripts/DashboardVerification/Script1512052858006.groovy: 15 Groovy:unable to resolve class com.kms.katalon.core.testobject.TestObject
/Scripts/DashboardVerification/Script1512052858006.groovy: 16 Groovy:unable to resolve class com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords
/Scripts/DashboardVerification/Script1512052858006.groovy: 17 Groovy:unable to resolve class com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords
/Scripts/DashboardVerification/Script1512052858006.groovy: 18 Groovy:unable to resolve class com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords
/Scripts/DashboardVerification/Script1512052858006.groovy: 19 Groovy:unable to resolve class com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords
/Scripts/DashboardVerification/Script1512052858006.groovy: 20 Groovy:unable to resolve class internal.GlobalVariable
/Scripts/DashboardVerification/Script1512052858006.groovy: 21 Groovy:unable to resolve class org.openqa.selenium.Keys
/Scripts/DashboardVerification/Script1512052858006.groovy: 1 Groovy:unable to resolve class com.kms.katalon.core.checkpoint.CheckpointFactory
/Scripts/DashboardVerification/Script1512052858006.groovy: 2 Groovy:unable to resolve class com.kms.katalon.core.testcase.TestCaseFactory
/Scripts/DashboardVerification/Script1512052858006.groovy: 3 Groovy:unable to resolve class com.kms.katalon.core.testdata.TestDataFactory
/Scripts/DashboardVerification/Script1512052858006.groovy: 4 Groovy:unable to resolve class com.kms.katalon.core.testobject.ObjectRepository
/Scripts/LeftMenuVerification/Script1512113532001.groovy: 5 Groovy:unable to resolve class com.kms.katalon.core.checkpoint.Checkpoint
/Scripts/LeftMenuVerification/Script1512113532001.groovy: 6 Groovy:unable to resolve class com.kms.katalon.core.checkpoint.CheckpointFactory
/Scripts/LeftMenuVerification/Script1512113532001.groovy: 7 Groovy:unable to resolve class com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords
/Scripts/LeftMenuVerification/Script1512113532001.groovy: 8 Groovy:unable to resolve class com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords
/Scripts/LeftMenuVerification/Script1512113532001.groovy: 9 Groovy:unable to resolve class com.kms.katalon.core.model.FailureHandling
/Scripts/LeftMenuVerification/Script1512113532001.groovy: 10 Groovy:unable to resolve class com.kms.katalon.core.testcase.TestCase
/Scripts/LeftMenuVerification/Script1512113532001.groovy: 11 Groovy:unable to resolve class com.kms.katalon.core.testcase.TestCaseFactory
/Scripts/LeftMenuVerification/Script1512113532001.groovy: 12 Groovy:unable to resolve class com.kms.katalon.core.testdata.TestData
/Scripts/LeftMenuVerification/Script1512113532001.groovy: 13 Groovy:unable to resolve class com.kms.katalon.core.testdata.TestDataFactory
/Scripts/LeftMenuVerification/Script1512113532001.groovy: 14 Groovy:unable to resolve class com.kms.katalon.core.testobject.ObjectRepository
/Scripts/LeftMenuVerification/Script1512113532001.groovy: 15 Groovy:unable to resolve class com.kms.katalon.core.testobject.TestObject
/Scripts/LeftMenuVerification/Script1512113532001.groovy: 16 Groovy:unable to resolve class com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords
/Scripts/LeftMenuVerification/Script1512113532001.groovy: 17 Groovy:unable to resolve class com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords
/Scripts/LeftMenuVerification/Script1512113532001.groovy: 18 Groovy:unable to resolve class com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords
/Scripts/LeftMenuVerification/Script1512113532001.groovy: 19 Groovy:unable to resolve class com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords
/Scripts/LeftMenuVerification/Script1512113532001.groovy: 20 Groovy:unable to resolve class internal.GlobalVariable
/Scripts/LeftMenuVerification/Script1512113532001.groovy: 21 Groovy:unable to resolve class org.openqa.selenium.Keys
/Scripts/LeftMenuVerification/Script1512113532001.groovy: 1 Groovy:unable to resolve class com.kms.katalon.core.checkpoint.CheckpointFactory
/Scripts/LeftMenuVerification/Script1512113532001.groovy: 2 Groovy:unable to resolve class com.kms.katalon.core.testcase.TestCaseFactory
/Scripts/LeftMenuVerification/Script1512113532001.groovy: 3 Groovy:unable to resolve class com.kms.katalon.core.testdata.TestDataFactory
/Scripts/LeftMenuVerification/Script1512113532001.groovy: 4 Groovy:unable to resolve class com.kms.katalon.core.testobject.ObjectRepository

And after that, Katalon execute tests correctly.
Anyway, if I run the same tests in my Linux environment via terminal command line I won’t have this problem.
Is it possible, that errors above are Jenkins related?

Jenkins build configuration (execute shell) look like this:

cd /home/dev/Documents/Katalon/
./katalon -runMode=console -projectPath="/home/dev/jenkins-workspace/workspace/web-tests/MTP.prj" -reportFolder="Reports" -reportFileName="report1" -retry=0 -testSuitePath="Test Suites/DashboardVerification" -browserType="Chrome"
./katalon -runMode=console -projectPath="/home/dev/jenkins-workspace/workspace/web-tests/MTP.prj" -reportFolder="Reports" -reportFileName="report2" -retry=0 -testSuitePath="Test Suites/LeftMenuVerification" -browserType="Chrome"
1 Like

It was a Git problem - I’ve added to repo some unused files/folders. After clean everything back to normal.

Hi,

Can you please share which of the Git files were creating problems… I am facing the same issue… and currently debugging on it…

Thank you

1 Like

I don’t remember anymore… I’ve switched to TestSuite executions where that kind of problem doesn’t exist.

I am also debugging. Wondering if it is the static/absolute paths in the .classpath file. I currently gitignore that file, mainly because the path is different on my dev box vs Jenkins

Any updates on this? I am still facing this issue even when executing a test suite.

Note: I do not have the .project or .classpath files in my repository when trying to deploy from jenkins.

Thanks.

5 Likes

Same issue occurs to me too.
Would be helpful if you can share which files caused the problem.
Or with test suite executions, could you please suggest how is the screen size defined in arguments for Jenkins on Linux env