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.
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.
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);
}