Problems using RunAs in TestComplete7
I have a problem with running RunAs mode in TestComplete7. I use:
var p = TestedApps.MyApp.Run开发者_开发百科As("domain", "user", "password");
but without success.
I get this error:
**************************************************
Unable to run "MyApp" under the Domain\User account.
Make sure that the password and other parameters are valid and you have sufficient rights to run processes under another user account.
**************************************************
I'm running TestComplete in Administrator mode and I've done everything as explained in TestComplete Help.
Check out this TestComplete support article for troubleshooting tips. Some key points from this article:
Is the Secondary Logon service running?
Are the domain, user name and password valid and spelled correctly?
Try Windowsrunas
command with an arbitrary application (e.g. Notepad) and exactly the same credentials and see if it works.Is the password non-empty? (Accounts with empty passwords aren't supported for RunAs in TestComplete.)
Does this account have permissions for actually executing the application?
精彩评论