Forum Discussion

fmendes's avatar
fmendes
Contributor
14 years ago

Scheduling TestExecute

Need some help here. I have TestExecute installed on a remote computer, I can successfully run the test from another machine via a Task from the NetWorkSuite - that is fantastic.



I need to setup the remote machine to run the tests daily, from a Scheduled Task for example. I have tried to create the Task as suggested on the Help from TestExecute (Scheduling TestExecute Runs), but I am facing two problems -



(1) The project never actually runs, the Windows Task is running but nothing is happening with TestExecute



(2) If the machine is locked, how can you pass parameters to the Windows Task to login before starting the Task?



Thanks in advance for your time and attention.
  • Nevermind, found the problem - "If I run the Scheduled Task (command above) with security "Run wheather user is logged on or not" it logs on to Machine B and runs the test"



    It helps to enter to correct password LOL.



    Thanks for all the help!



  • ArtemS's avatar
    ArtemS
    SmartBear Alumni (Retired)
    Hello,

    The slave machine can be locked. Once the network suite is started on a master machine, it would perform the logging in with the specified credentials.

    However, to start a scheduled project on a master machine, you should comply with any of the following conditions:


    •      If the scheduled task has the "Run only when user is logged on" option, then the master machine should NOT be locked at the moment the task is trigged.



    •      If the scheduled task has the "Run whether user is logged on or not" option, then the machine could be locked, but, in this case, the master TestComplete/TestExecute project should be launched with the /SilentMode command-line parameter.




    Regards, Artem.
  • Back again. I scheduled my task for 12:00am, this morning when I checked the Task Scheduler the task is still running, logged in the Slave machine and see the TestExecute has started BUT no tests are running. Any more suggestions?





    Thanks all.