How to run Scheduled Test cases from TAsk Scheduler even the PC is Log off

2 posts, 0 answers
  1. Karla
    Karla avatar
    24 posts
    Member since:
    Jun 2011

    Posted 05 Jan 2012 Link to this post


    Hi,

    I'm using task Scheduler from windows to run specific test list, but the thing here is that the test list cannot run if user is not logged on the PC.

    I have marked the option in the task scheduler "Run whether user is logged on or not"  (see the image attached)

    I tried used this with password and without it, and all the time, the test is up and run, but the results sent me to my email was fail, like the test does not run.  I just suppose that task run b/c I have the results on the email.

    When I login into the pc and click to run the task, results on my email appear as Pass.

    there is something in the configuration on Task Scheduler that I need to do, or the results as Fail are b/c the PC needs to see the browser to execute the steps??

    Thanks,




  2. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 06 Jan 2012 Link to this post

    Hello Karla,

    I'm sorry you running into this problem. This is happening because the test is not running in an interactive desktop session. Tests that need to handle dialogs, move the mouse, or send keystrokes must be executed on an unlocked machine with full interactive desktop permission.

    As seen in this Microsoft documentation and explained in this forum thread, the only way to make a task run interactively via Windows Task Scheduler is to select the "Run only when user is logged on" radio button.  

    Please check out this KB article for one possible solution to this problem.

    Regards,
    Plamen
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top