Bamboo Katalon integration suite endless loop and Groovy:unable to resolve class

Hi,

I am trying to run scheduled jobs using Bamboo, however running into a few technical issues.

Issue 1)
The suite does not appear to run, and gets into an ‘endless loop’

From logs ,script correctly
import and build the source.
2 gradle tasks, which appear to succeed.

I then notice

simple 11-Jul-2019 06:39:25 Parsing custom keywords in Plugins folder…
simple 11-Jul-2019 06:39:33 /C%%Users%Administrator%bamboo-home%xml-data%build-dir%SFCC-AD-JOB1%checkout%xyz-cloudcommerce-katalon%xyz-cloudcommerce-katalon.prj/Keywords/com/kazurayam/ksbackyard/Assert.groovy: 5 Groovy:unable to resolve class com.kms.katalon.core.annotation.Keyword

Lots of unable to resolve class

simple 11-Jul-2019 06:39:34 Generating global variables…
simple 11-Jul-2019 06:39:36 Parsing custom keywords…
simple 11-Jul-2019 06:39:39 Project ‘xyz-cloudcommerce-katalon’ opened
simple 11-Jul-2019 06:39:40 chromedriver is located at default location: C:\software\Katalon_Studio\configuration\resources\drivers\chromedriver_win32\chromedriver.exe. In case your browser is updated to a newer version, please use this command to update chromdriver: --config -webui.autoUpdateDrivers=true
simple 11-Jul-2019 06:39:40
simple 11-Jul-2019 06:39:40 --------------------------------------------------------------------------------
simple 11-Jul-2019 06:39:40 Test Suites/SalesForceCommerceCloud/Development - UAT/Development - Smoke Test U
simple 11-Jul-2019 06:39:40 AT - Chrome - 20190711_063940…0/2(0%)
simple 11-Jul-2019 06:39:40 --------------------------------------------------------------------------------
simple 11-Jul-2019 06:39:40
simple 11-Jul-2019 06:39:43 2019-07-11 06:39:43.208 INFO c.k.katalon.core.main.TestSuiteExecutor - START Test Suites/SalesForceCommerceCloud/Development - UAT/Development - Smoke Test UAT
simple 11-Jul-2019 06:39:43 2019-07-11 06:39:43.706 INFO c.k.katalon.core.main.TestCaseExecutor - START Test Cases/Stories-SFCC/UK/Ordering/FPP-719
simple 11-Jul-2019 06:39:43 Start recording video for test case ‘Test Cases/Stories-SFCC/UK/Ordering/FPP-719’.

And then continually repeats

simple 11-Jul-2019 06:41:40 --------------------------------------------------------------------------------
simple 11-Jul-2019 06:41:40 Test Suites/SalesForceCommerceCloud/Development - UAT/Development - Smoke Test U
simple 11-Jul-2019 06:41:40 AT - Chrome - 20190711_063940…0/2(0%)
simple 11-Jul-2019 06:41:40 --------------------------------------------------------------------------------
simple 11-Jul-2019 06:41:40

The command arg using Katalon Bamboo plugin

-projectPath=“${bamboo.build.working.directory}\checkout\xyz-cloudcommerce-katalon\xyz-cloudcommerce-katalon.prj” -retry=3 -retryFailedTestCases=true -testSuitePath=“Test Suites/SalesForceCommerceCloud/Development - UAT/Development - Smoke Test UAT” -executionProfile=“SFCC-Development” -browserType=“Chrome”

Anyone have any ideas as to why this is failing to run the suite and why I get the unable to resolve class?

Katalon version 6.2.1

Concern 1)
API Keys mst be specified for activating Katalon Store Plugins

Do I need to be concerned on the Command Line creator about the following bolded?

ie do I require to do anything?

Thanks in advance

Ste

Could you run this test project by command line alone not in bamboo?

Hi,

Should have mentioned when I run this on my local windows machine the command line kicks off and runs the test and I can see the logs being generated in console and results appear in the Katalon Studio suite reports.

On the server I see the splash appear but no logging to console, however the result are in Katalon Suite reports. I will check to see if any more details here.

I only have the -consoleLog-=noExit and the -runMode=console on the command line for debugging, dont use these parameters in the CI. As read not to use in forum or documentation.

Can you ouput or is there a directory that I can review the console log output?

I now have the katalon analytics running. (Mistakenly comitted this to master switched off).

I now have the issue on the server or locally if I run from the Katalon Studio the test suite is succeeds. If I run from CMD line it fails miserably.

It appears to have issues generating global variables at command line execution.

I have seen others mentions about this. I will check the forums.

Getting a Groovy:unable to reslove class (then several broken classes). I dont get this on running via Katalon eclispe IDE, there is also no problems in Katalon eclipse IDE.

image

Appears to be due to class resolve issues.

I have removed all the offending unable to resolve class issues. This was explained in another forum.katalon.com thread.

I still cannot get the browser to ‘kick off’ in command line.

If I run the exact same test in Katalon studion it passes.

With cmd line / or bamboo CI, I get the source downloaded correctly. Gradle actions completed correctly updating needed extra project components & jars.

The browser does not appear.

I note in the logs

Rootcause: …KeywordMain - ? Unable to open browser with url: ‘’

I will check a few forums eg Katalon Studio error Unable to open browser with url: '' - Stack Overflow / Unable to open browser with url: Unable to open browser with url:

image

Which is odd as this works from running in IDE.

Any ideas much appreciated.

Could you please try appending --config -webui.autoUpdateDrivers=true to the command?

I had tried that also, however still no joy. Tried again no joy.

This is both on a win7 machine and a winS2012. I could expect the win7 to throw wobblies being an enterprise locked down machine with IS protocols and hardening, but the winS2012 64bit is vanila turnkey.

I will try reinstalling from a clean pc and building a simple project.

1 Like

I am wondering if there is a regression issue between earlier projects?
I set up a clean Katalon, on clean build machine.
Downloaded one of the github datadriven examples.
With the command line - I got the same issue.
However I then went and created a new simple hello world to google site project example this functioned correctly using command line.