Forum Discussion

Ravikaanth's avatar
Ravikaanth
Contributor
2 years ago
Solved

Can't trigger TestExecute through Task Scheduler

I am trying to trigger TestExecute by using a .bat file through Task Scheduler. When I try trigger .bat file manually TestExecute triggered successfully. But if I try to trigger by using Task Scheduler the status is changed from Ready to Running, but we can't see anything in the background. Please check below screenshot.

 

Below code is the .bat file, Please verify it.

 

Echo off
cd "C:\Program Files (x86)\SmartBear\TestExecute 15\Bin"
start "" /wait "C:\Program Files (x86)\SmartBear\TestExecute 15\Bin\TestExecute.exe" "C:\Users\ravikaanth.ns\Documents\MB_Automation\TestProject2\MBAutomation1.pjs" /run /project:"MBAutomation1" /unit:"CampaignReadProd" /routine:"readCampaign"

 

 

 

  • Hey Rajs,

    Have you checked the logs at all?

    Id check the readyapi! log. I appreciate thats difficult if readyapi! Is crashing, but you can check the log as its written to a file on the hard drive in your logged on user's profile. On windows 10, the log is written to something like c://Users/<profilename>/.readyapi so have a look in your profile for the appropriate logs.

    Obviously readyapi! Is clashing with your current config on your windows server, so it might be worth having a look in the event viewer to see if the clash is recorded there too.

    Finally, its probably worth raising a support ticket with smartbear...im typing this out on my phone so cant provide the link, but if you search youll find it no problem.

    Cheers,

    Rich