0

我在 TestComplete7 中运行 RunAs 模式时遇到问题。我用:

var p = TestedApps.MyApp.RunAs("domain", "user", "password");

但没有成功。

我收到此错误:

**************************************************
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.
**************************************************

我正在管理员模式下运行 TestComplete,并且我已经按照 TestComplete 帮助中的说明完成了所有操作。

4

1 回答 1

3

查看此 TestComplete 支持文章以获取故障排除提示。本文的一些关键点:

  • 辅助登录服务是否正在运行?

  • 域、用户名和密码是否有效且拼写正确?使用任意应用程序(例如记事本)和完全相同的凭据
    尝试 Windows命令,看看它是否有效。runas

  • 密码是非空的吗?(TestComplete 中的 RunAs 不支持密码为空的帐户。)

  • 此帐户是否具有实际执行应用程序的权限?

于 2011-07-04T12:11:02.383 回答