Forum Discussion

sabhari's avatar
sabhari
Occasional Contributor
13 years ago

aqEnvironment.RebootAndContinue() - Doesnt Restart the System

I also have a problem regarding aqEnvironment.RebootAndContinue().

The function just calls the routine mentioned as the first parameter
without restarting the system. There is also an error message as seen in
the screen shot attached.
  • Anonymous's avatar
    Anonymous

    Hi Sabhari,





    The method works OK for me. Post a script line demonstrating how you use it in your test. Also, let us know your TC version (Help | About...).
  • sabhari's avatar
    sabhari
    Occasional Contributor
    Now the RebootAndContinue but we have a Logon Message that is displayed before the login screen. So After the restart it gets stuck there. Only after manually clicking th Ok Button in the Message dialog the Login occurs and Execution continues.  Is there any way we can overcome this?
  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Sabhari,


     


    Actually, the RebootAndContinue method should log in to the system by using the login information saved to the registry before the machine shutdown. Try specifying the login info manually in the method. Look at the method declaration.