Unable to run CMD with a different userlogin

Hi,

I have tried to integrate my project with Jenkins and tried to hit the command line with my creds on the execution machine(Jenkins remote). But, when I tried to login as a different user and hit the same command it couldn’t open the browser and run my suite. It opens the console though but not the browser. I could also see the compile errors for “unable to resolve class internal.GlobalVariable

This has been seen since long and my current Katalon version is 5.10.1. Please help. Attaching my log

[EL Warning]: 2019-02-05 16:10:20.011–Ignoring attribute [lastRun] on class [TestSuiteEntity] as no Property was generated for it.
Delete folder: bin
Delete folder: Libs
Opening project file: D:\MainCode\Sample_Automation\Sample_3.0_TestAutomation.prj
Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified
166 2.4.7.xx-201611170128-e46 = ACTIVE
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/customkeywords/Common.groovy: 15 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/customkeywords/CommonSampleNavigations.groovy: 25 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/enums/aed/ClaimCycle.groovy: 19 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/enums/aed/EarningsType.groovy: 19 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/exceptions/SampleApplicationError.groovy: 19 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/exceptions/TaskNotFoundException.groovy: 18 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/securityroles/GetRoleSpecificUser.groovy: 2 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/util/AddInjury.groovy: 11 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/util/AverageEarningsDecision.groovy: 10 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/util/SampleLogManager.groovy: 7 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/util/SampleWorkerProfile.groovy: 11 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/util/ClaimAccess.groovy: 19 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/util/LoginSample.groovy: 10 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/util/ReassignClaimOwner.groovy: 19 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/util/TaskResolver.groovy: 15 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Test Listeners/Sample_Listener.groovy: 15 Groovy:unable to resolve class internal.GlobalVariable
Parsing custom keywords…
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/customkeywords/Common.groovy: 15 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/customkeywords/CommonSampleNavigations.groovy: 25 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/enums/aed/ClaimCycle.groovy: 19 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/enums/aed/EarningsType.groovy: 19 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/exceptions/SampleApplicationError.groovy: 19 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/exceptions/TaskNotFoundException.groovy: 18 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/securityroles/GetRoleSpecificUser.groovy: 2 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/util/AddInjury.groovy: 11 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/util/AverageEarningsDecision.groovy: 10 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/util/SampleLogManager.groovy: 7 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/util/SampleWorkerProfile.groovy: 11 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/util/ClaimAccess.groovy: 19 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/util/LoginSample.groovy: 10 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/util/ReassignClaimOwner.groovy: 19 Groovy:unable to resolve class internal.GlobalVariable
/D%%MainCode%Sample_Automation%Sample_3.0_TestAutomation.prj/Keywords/com/Sample/util/TaskResolver.groovy: 15 Groovy:unable to resolve class internal.GlobalVariable
Generating global variables…
Project ‘Sample_3.0_TestAutomation’ opened


Test Suites/SYS_Runner - 20190205_161028…0/41(0%)

Test Suites/TS_LiteRegressionSuite1 - IE - 20190205_161029…0/4(0%)
Test Suites/TS_LiteRegressionSuite3-PhaseII - IE - 20190205_161029…0/3(0%)
Test Suites/TS_LiteRegressionSuite3 - IE - 20190205_161029…0/13(0%)
Test Suites/TS_LiteRegressionSuite4 - IE - 20190205_161029…0/11(0%)
Test Suites/TS_LiteRegressionSuite2 - IE - 20190205_161029…0/10(0%)

No proxy found.


Test Suites/SYS_Runner - 20190205_161028…0/41(0%)

Test Suites/TS_LiteRegressionSuite1 - IE - 20190205_161029…0/4(0%)
Test Suites/TS_LiteRegressionSuite3-PhaseII - IE - 20190205_161029…0/3(0%)
Test Suites/TS_LiteRegressionSuite3 - IE - 20190205_161029…0/13(0%)
Test Suites/TS_LiteRegressionSuite4 - IE - 20190205_161029…0/11(0%)
Test Suites/TS_LiteRegressionSuite2 - IE - 20190205_161029…0/10(0%)

No proxy found.


Test Suites/SYS_Runner - 20190205_161028…0/41(0%)

Test Suites/TS_LiteRegressionSuite1 - IE - 20190205_161029…0/4(0%)
Test Suites/TS_LiteRegressionSuite3-PhaseII - IE - 20190205_161029…0/3(0%)
Test Suites/TS_LiteRegressionSuite3 - IE - 20190205_161029…0/13(0%)
Test Suites/TS_LiteRegressionSuite4 - IE - 20190205_161029…0/11(0%)
Test Suites/TS_LiteRegressionSuite2 - IE - 20190205_161029…0/10(0%)


Test Suites/SYS_Runner - 20190205_161028…0/41(0%)

Test Suites/TS_LiteRegressionSuite1 - IE - 20190205_161029…0/4(0%)
Test Suites/TS_LiteRegressionSuite3-PhaseII - IE - 20190205_161029…0/3(0%)
Test Suites/TS_LiteRegressionSuite3 - IE - 20190205_161029…0/13(0%)
Test Suites/TS_LiteRegressionSuite4 - IE - 20190205_161029…0/11(0%)
Test Suites/TS_LiteRegressionSuite2 - IE - 20190205_161029…0/10(0%)

The katalon command line runner is so annoying. I tried the same scenario(with different user) and Hit the GUI and it was working.

I have this problem a lot when I’m cloning a project onto a remote machine for the first time, or when I’m updating the project files from the repository.

Make sure that you’ve opened the project in the studio at least once, or try refreshing the project altogether, on the remote machine. This allows the studio to compile/recompile all project code, including the GlobalVariable.class file that is popping up in your error.

Those error messages are just warnings. You can ignore them.

Please try running a simple test suite with only a single test case and see if it’s executed completely.

Also, is your Jenkins running as a Windows service? Services run in session 0 and will not show browser windows.

See also:

Hello Brendon, Tried doing it but the complie issue still exists.

Mine is a win 10 workstation and while I logged in with my creds the commad line seems to work and it opens the browser. I logged in with a different user(Jenkins config user) now into the same machine and hit the command. The browser was not open . But it works fine with GUI mode. This is so wierd.

Can someone please help me with this.

1 Like