Forum Discussion

richard_mischle's avatar
richard_mischle
Occasional Contributor
13 years ago

aqEnvironment RebootandContinue is not Rebooting

Hello,



I've created a scheduled task to run my project suite every night, but my virtual machine locks up after 15 minutes of inactivity and requires a username and password to get back in. I've disabled the screensaver, but it still locks. I'm using the below function in an attempt to log into my virtual machine to kick off automation. The logoff works and everything closes, but it never logs back into the machine. I've also tried to convert my project suite to a network suite b/c this will allow me to run nightly automation and connect to a virtual machine, but I keep getting prompted that the project variables I have do not exist. I have a Ton of automation already and don't want to change everything. Any idea what is wrong with the script or another way to do this? 




function Reboot()

{

aqEnvironment["RebootAndContinue"]("Run.StartSuite", Project["Variables"]["Password"], Project["Variables"]["Username"], Project["Variables"]["Domain"]);

}



Thanks,

Richard
  • Hello,

     

    I've a problem running the RebootAndContinue method, when the j-script is stored on a network drive.

     

    When I run the same script from a project that's stored on the hard drive, windows is rebooting without a problem. In this case a key is added to the registry:

    C:\PROGRA~2\SMARTB~1\TESTCO~1\Bin\TESTCO~1.EXE C:\Users\Admin\DOCUME~1\TESTCO~1\TESTKA~1\TESTKA~1.PJS /autostart

     

    When I run the same script from a project that is stored on our NAS, the script seems to get executed, but the OS is not being rebooted.See attached video

    - No key has been added to the registry.

    - In the Project log, there's no error logged (see pic)

     

    In this article it's stated that the RebootAndContinue method can not be used for Network Suite, but this is not the case here; I try to reboot my host, using a script stored on a network drive.

     

    It probably has something to do with the NAS not having enough rights...But I do not fully understand it.

     

    I hope somebody can help me with this.

     

    Regards,

    Daniel

     

    TestComplete log

     

    Note: I'm using TC version 9.20