Is anyone aware of a feature in TestComplete to automate switching between different user accounts (logins) on Windows? I'm trying to test the installer for my program, which has features like "Install for all accounts" or "This user only".
Right now, I'm using RebootAndContinue to reboot the computer into each account, test for start menu items, and reboot back into another account. I can't help but feel all these reboots are overkill. So I ask, is there a better way to script the logging in/out of user accounts?
As log as I have this thread open, I have an additional question that relates to RebootAndContinue and switching user accounts.
The TestComplete help says that the Password parameter for RebootAndContinue is optional, unless you are continuing test execution under another account. This is fine, but what if the account I intend to continue execution under is not password protected? I tried passing a null string "" and got an error message "Login Failure: user account restriction"
Unfortunately, the only way to switch to another account is to reboot the system. However, Windows does not provide other accounts with access to the registry branch of an "empty-password" account. There is no way to work around this with TestComplete. The only solution I can suggest is to create a password for the problematic account.