- Katalon Studio/ Katalon Runtime Engine Version: 7.6.2
- OS Version: MacBook Pro Catalina
- Browser Version: Version 84.0.4147.125 (Official Build) (64-bit)
I’m using version 7.6.2 on MAC. I can run katalonc from the command line. It also works when I put it into a shell script. But when I set crontab to run that shell script, it skips the katalonc command while running other commands like “echo”, “pwd”, “date”, etc. in that script.
Here is my crontab:
17 23 * * * ~/test/runKatalon.sh
And here is my runKatalon.sh:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#!/bin/bash
d=$(date)
echo “Start running test suite $d” >> ~/test/testCron.txt
/Katalon_Studio_Engine_MacOS-7.6.2/Katalon\ Studio\ Engine.app/Contents/MacOS/katalonc -noSplash -runMode=console -projectPath="/Documents/katalon/sm-katalon-automation/sm-katalon-automation.prj" -retry=1 -retryStrategy=allExecutions -testSuitePath=“Test Suites/E2E/BMSE2ETestCases” -executionProfile=“SLP-E2E-PROFILE” -browserType=“Chrome” -apiKey=“9c6bad47-ab7c-493f-b886-6cb4e18d8de5” --config -proxy.auth.option=NO_PROXY -proxy.system.option=NO_PROXY -proxy.system.applyToDesiredCapabilities=true
d=$(date)
echo “Done running test suite $d” >> ~/test/testCron.txt
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Again, running the script is working as expected. The problem is seen when crontab runs, the echo statements are written to the expected file. But the katalonc command is not executed. Any thoughts? Thanks.