I wonder if I can automate install testing using SilkTest.
Main concerns are re-booting machine after installation process and then check registry for added or updated files.
And also uninstall process.
Any ideas how can I implement this.
Thanks in advance.
Yes, I just put a response over in the Functional Testing room. But again...
Get InControl v.4 or v.5 (InCtrl) from zdnet.com. It will image the drive and give a difference map for files and registry changes. Also, Silk will talk to it and automate it. I have seen this done.
InCtrl is a great tool, and it is free. I have used it to find numerous problems with install & uninstall.
Finally, find out if your installer tool can do a Silent Install (creates a script and plays it back unattended). The scripts that get created can be used to automate the process and you can use InCtrl to drive this and/or Silk to drive it also. I know InstallShield has a command line switch to do this.
The following is the information on how to record the user actions during an InstallShield install to make a playback script (Silent Install).
It is: setup.exe -r -f1c:\setup.iss. The -r is for record and the -f1 is for the filename and location to place it. You may have to place the .iss file in the same directory as the setup.exe itself on playback. The command for playback during setup is: setup.exe -s -f1c:\setup.iss, where -s is use script and -f1 is the filename and location.
For rebooting you will need to be driving the test from a different machine than where the install is being performed. Configure the machine that will be rebooting to automatically login on startup. Make sure that the agent is in the startup directory so that after the reboot the agent will be running.
MachineA will connect to the MachineB and drive the install procedures and click on the reboot button at the end of the install. Then MachineA disconnects from MachineB and waits a period of time until MachineB has rebooted again and you can connect to the agent again. Reconnect to MachineB and use the registry functions to check if the registry settings from the install are correct.
It takes a little time to configure things, but it works pretty well.