hi,
why I am getting this during Jenkins run
Missing required argument(s): projectPath.
this is my command
del /q "%WORKSPACE%\Reports\RegressionTestSuite\*"
FOR /D %%p IN ("%WORKSPACE%\Reports\RegressionTestSuite\*.*") DO rmdir "%%p" /s /q
cd C:\Users\fitim\katalon\Katalon_Studio_Engine_Windows_64-7.2.5
katalonc -noSplash -runMode=console -reportFolder="%WORKSPACE%/Reports" -projectPath="%WORKSPACE%\KatalonProject.prj" -retry=0 -testSuiteCollectionPath="Test Suites/RegressionTestSuiteCollection" -browserType="Chrome (headless)" -apiKey=27f70c12-7093-4ea7-83d6-ed64ce7c257b -apiKey=d442fd1d-ecf9-4c87-99d6-7bca550a345c
if ERRORLEVEL 1 set ERRORLEVEL=0
Are you able to execute the katalon command through CLI by itself?
hi,
just tried, works fine with cmd
hi,
this command not work in Jenkins but in cmd works well
katalonc -noSplash -runMode=console -projectPath=âC:\Users\fitim\KatalonProjectFromGit\KatalonProject\KatalonProject.prjâ -retry=0 -testSuitePath=âTest Suites/RegressionTestSuiteâ -executionProfile=âdefaultâ -browserType=âChrome (headless)â -apiKey=âd442fd1d-ecf9-4c87-99d6-7bca550a345câ
Why???
Which build step type are you using in Jenkins (i.e. âExecute Windows batch commandâ, âPublish Over SSHâ, etc.). The syntax you use can be touchy depending on which one you are using. Also, can you provide the entire Jenkins log (or at least the relevant parts)?
hi,
[2020-03-11T22:54:22.187] INFO: Total memory: 7055 MB
[2020-03-11T22:54:22.189] INFO: Free memory: 2175 MB
[2020-03-11T22:54:23.455] INFO: Machine ID: ff4645ccc3c13347e0c78a4f511c881e
[2020-03-11T22:54:23.458]
[2020-03-11T22:54:23.458]
[2020-03-11T22:54:23.463] ActivatingâŚ
[2020-03-11T22:54:23.472] Start activating offlineâŚ
[2020-03-11T22:54:23.476] Search for valid offline licenses in folder: C:\Windows\system32\config\systemprofile.katalon\license
[2020-03-11T22:54:23.476] Start checking license: KRE_ff4645ccc3c13347e0c78a4f511c881e_22258420.lic
[2020-03-11T22:54:25.032] KRE_ff4645ccc3c13347e0c78a4f511c881e_22258420.lic is valid.
[2020-03-11T22:54:25.152] The number of valid offline licenses: 1
[2020-03-11T22:54:26.016] The number of Runtime Engine running sessions: 1
[2020-03-11T22:54:26.061] Missing required argument(s): projectPath.
[2020-03-11T22:54:26.062] All launchers terminated
Build step âExecute Katalon Studio Testsâ marked build as failure
Recording test results
ERROR: Step âPublish JUnit test result reportâ failed: No test report files were found. Configuration error?
Finished: FAILURE
Hmmm ok so itâs the Katalon Jenkins plugin. Iâm unfamiliar with it. I wonder of you can echo the projectPath with injected vars?
echo %WORKSPACE%\KatalonProject.prj
hi,
ok retested with this in execute shell command, works
cd C:\Users\fitim\katalon\Katalon_Studio_Engine_Windows_64-7.2.5
katalonc -noSplash -runMode=console -projectPath=âC:\Users\fitim\KatalonProjectFromGit\KatalonProject\KatalonProject.prjâ -retry=0 -testSuitePath=âTest Suites/RegressionTestSuiteâ -executionProfile=âdefaultâ -browserType=âChrome (headless)â -apiKey=âd442fd1d-ecf9-4c87-99d6-7bca550a345câ
Ah so sounds like an issue with the plugin itselfâŚ
Does it allow for injection of Jenkins variables? I canât imagine that it wouldnât.
hi,
ok works with original command too
this was missing KatalonProject.prj from Jenkins workspace project folder
added it to the github
1 Like