We have scheduled test suite command for mutliple setups means dev and staging, prod setups in cron job with bash script.
Daily it is running one after another. we need to run all test suites with different setups with same time(parallely)
I am running that command in Cron with bash script.
setup_wise_test, In sh bash script the following commands are present. script 1 script 2 script 3 upto script 8 with different setup related test cases.
Each one is taking maximum of 45 minutes(selenium test cases). If I schedule all one after one, it's taking more than 6 hours 40 minutes to complete all.
Hence, plese help me out by suggesting the way to run all commands in bash as parallelly.
When I ran like below
21 13 * * * user cd /home/common_setupwise_testcases && bash sample1.sh >> /home/cron_logs/common_setup_wise_logs/sample.log
21 13 * * * user cd /home/common_setupwise_testcases && bash sample2.sh >> /home/cron_logs/common_setup_wise_logs/sample2.log
21 13 * * * user cd /home/common_setupwise_testcases && bash sample3.sh >> /home/cron_logs/common_setup_wise_logs/sample3.log
in the above sample1.sh, sample2.sh sample3.sh is having run command for test cases.
When i scheduled all above 3 commands in cron(sample1.sh and sample2.sh) executed parallelly third one is not executed.