我一直试图让它工作一段时间,但我似乎无法让我的 Watin 测试在 TFS 上运行。他们似乎在我的开发帐户上工作。
我有一个 TFS 用户在我的解决方案中运行所有测试。所有测试通过,但 Watin 测试失败。
我收到以下错误:
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)
关于从哪里开始寻找的任何想法?