开发者

Problems using RunAs in TestComplete7

开发者 https://www.devze.com 2023-03-16 23:07 出处:网络
I have a problem with running RunAs mode in TestComplete7. I use: var p = TestedApps.MyApp.Run开发者_开发百科As(\"domain\", \"user\", \"password\");

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 Windows runas 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?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号