Forum Discussion

shubhangi's avatar
shubhangi
Contributor
13 years ago

Automating Preboot Testing

Hi,



Can we automate preboot testing using TestComplete. The testing process typically looks :



1) Run Installer & Finish

2) Restart

3) Enter UserName & Password (NOTE: This step is even before You see the windows logo)

4) Windows Boots up

6) Logong to Windows

5) Verify installer finishes



Regards,

Shubhangi

3 Replies

  • Hi,


    Yes, you can automate installing your application with TestComplete.




    1) Run Installer & Finish


    To run the installation file, you can add this file to the list of the tested applications and then run this file from tests by using the TestedApp.Run method.


    To wait until the installation is completed, you can delay the test execution.




    2) Restart


    To restart the computer, you can use the RebootAndContinue method.




    3) Enter UserName & Password (NOTE: This step is even before You see the windows logo)


    See Step 2. The RebootAndContinue method lets you specify the password and account that will be used to log into the operating system.




    4) Windows Boots up


    If you use the RebootAndContinue method, the test engine will continue the test execution after Windows boots up.




    5) Verify installer finishes


    To verify if the installation is finished, you can check if the installation window exists. For example:




    var InstallWindow = <Installation_Program_Main_Window>

    while (InstallWindow.Exists)

    {

      Delay (100);

    }

  • Hi Margaret,



    With the mentioned method (RebootAndContinue) I can log in to Windows.

    However I am talking about user authentication before windows boot up.



    Regards,

    Shubhangi
  • Hi Shubhangi,


    Could you please clarify what you mean by "user authentification before windows boot up"?