Forum Discussion

googleid_104927's avatar
googleid_104927
Contributor
12 years ago

schedule TestComplete test runs

Hello,



I have a mechanism where I create a batch file which invokes a test complete project. This batch file is added onto the ScheduledTasks list of a service account, under who's credentials I expect testcomplete to execute my tests.



The service account under which these tests would be run wouldn't be logged in or locked by default.

So I have enabled an option 'Run whether user is logged on or not' feature when scheduling this task.



I did go through this link http://support.smartbear.com/viewarticle/56550/ and it seems to me that my approach would fail...



How do I completely automate the test runs? Should I make sure that the user is always available or If I change testcompete to silent mode will it work?



Edit:

I also have the option 'Wake the computer to run this task' enabled.



Thanks in advance.

5 Replies

  • chrisb's avatar
    chrisb
    Regular Contributor
    You need a console session or remote desktop connection to your windows desktop for windows to render the desktop and be able to perform GUI tests. This is just the way Windows OS works and not specific to Test Complete. In our case we use a virtual machine that has a permanent console session on it.

    http://support.smartbear.com/viewarticle/56550/
  • Hi,

     


    It looks like if you set up the RD connection to the computer where the tests are being executed, everything will work.


     

  • Hello Tanya,



    Thanks for your reply. Can you clarify me as to why I would need RD?

    Is it because windows won't run such GUI interactive applications via scheduler?



    If so how would just having a remote desktop connection resolve this?





    Thanks,
  • Sorry if this sounds more dumb than my question.

    From which account should the RD be configured/happen?



    The service account is just a user in the server and not an admin.

    I did a reading on the article provided.

    As per my understanding  I should be doing the following:



    1. Create a batch file which invokes a RD to the service account:



    2. Invoke the test complete project via the batch file itself.



    3. This batch file should be added onto the ScheduledTasks list of a service account, under who's credentials I would expect testcomplete to execute my tests.



    Note: The service account under which these tests would be run wouldn't be logged in or locked by default.

    So I must have the option 'Run whether user is logged on or not' feature when scheduling this task.



    I am just looking out for help on point #1.





    Thanks,

    Smith J

  • Can I pls have the syntax/command to connect to the console session of the service account?



    I connect to server 2008 from a win 7 machine.



    Thx,

    Smith J