Watin无法在我的TFS构建机器上运行 [英] Watin does not work on my TFS build machine

查看:61
本文介绍了Watin无法在我的TFS构建机器上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试使它工作一段时间,但是我似乎无法让我的Watin测试在TFS上运行.他们似乎在我的开发人员帐户上工作.

I have been trying to get this working for a while, but I can't seem to get my Watin tests run on TFS. They seem to work on my dev account.

我有一个TFS用户,可以运行我的解决方案中的所有测试.所有测试均通过,但Watin测试失败.

I have a TFS user that runs all the tests in my solution. All test pass, but the Watin tests fail.

我遇到以下错误:

WatiN.Core.Exceptions.RunScriptException: RunScript failed ---> System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

错误堆栈为:

mshtml.HTMLWindow2Class.IHTMLWindow2_execScript(String code, String language)
WatiN.Core.Native.InternetExplorer.IEUtils.RunScript(String scriptCode, String language, IHTMLWindow2 window)
WatiN.Core.Native.InternetExplorer.IEUtils.RunScript(String scriptCode, String language, IHTMLWindow2 window)
WatiN.Core.Native.InternetExplorer.IEElement.GetJavaScriptElementReference()
WatiN.Core.Native.InternetExplorer.IEFireEventHandler.CreateJavaScriptFireEventCode(NameValueCollection eventObjectProperties, String eventName)
WatiN.Core.Native.InternetExplorer.IEFireEventHandler.FireEvent(String eventName, NameValueCollection eventProperties, Boolean noWait)
WatiN.Core.Native.InternetExplorer.IEElement.FireEvent(String eventName, NameValueCollection eventProperties)
WatiN.Core.Element.FireEvent(String eventName, Boolean waitForComplete, NameValueCollection eventProperties)
WatiN.Core.Element.FireEvent(String eventName)
WatiN.Core.Element.Focus()
WatiN.Core.Actions.TypeTextAction.TypeAppendClearText(String value, Boolean append, Boolean clear)
WatiN.Core.Actions.TypeTextAction.TypeText(String value)
WatiN.Core.TextField.TypeText(String value)

关于从哪里开始寻找的任何想法?

Any ideas on where to start looking?

推荐答案

请确保将构建服务设置为作为交互式进程运行,有关更多信息,请参见

Make sure the build service is setup to run as an interactive process, more info in this blog post. It's about Coded UI, but it might be relevant.

此外,请检查您的用户帐户是否具有运行交互式进程的权限(可以登录吗),并且没有作为仅服务用户的身份受到保护.

Also, check that your user account has permissions to run interactive processes (can you logon as it), and isn't secured as a service only user.

这篇关于Watin无法在我的TFS构建机器上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆