使用不同的身份在 TFS 2010 中运行测试
是否可以使用不同的身份在 TFS 2010 上运行测试?
正在测试的代码需要比当前帐户拥有更高的权限(Active Directory、文件系统操作)。 现在代码中有模拟,但我想摆脱它,因为调用网站将激活模拟。
谢谢 ! 文森特
Is it possible to run the tests on TFS 2010 with a different identity ?
The code being tested require higher privileges ( Active Directory, Filesystem manipulations) than the ones the current account has.
Right now there there is impersonation in the code but I want to get rid of it as the calling website will have the impersonation active.
Thanks !
Vincent
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自 测试代理、测试控制器和 MSTEST 常见问题解答:
您还可以将此行为转化为您的优势:在提升的帐户下运行 MSTest 代理,并分派您的测试运行以由该 MSTest 代理执行。要配置此功能,请阅读:创建测试设置以从 Visual Studio 运行自动化测试。这将允许您运行要在您想要的帐户下执行的测试,而不必始终显式地模拟您的用户。
From the Test agent, Test Controller and MSTEST FAQ:
You can potentially also turn this behavior into your advantage: run an MSTest agent under an elevated account and dispatch your test runs to be executed by this MSTest agent. To configure this, please read: Create Test Settings to Run Automated Tests from Visual Studio. This will allow you to run your test to be executed under the account ofn desire, without having to explicitly impersonate your user all the time.