2012-04-12 31 views
0

我一直在努力得到这个工作了一段时间,但我似乎无法让我的华廷测试TFS上运行。他们似乎在我的开发账户上工作。华廷并不在我的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) 

在哪里开始寻找任何想法?

回答

3

确保构建服务设置为一个互动的过程运行,在this blog后更多的信息。这是关于编码的用户界面,但它可能是相关的。

此外,检查您的用户帐户的权限运行交互式进程(您可以登录,因为它),并没有固定的服务唯一用户。

TFS build

+0

我收到以下错误: “的工作文件夹d:\建立\ 1 \ MyProject的\华廷测试的\ Sources已在使用由工作区8_1_appsdev_build;域\ BUILD_MACHINE $计算机BUILD_MACHINE。” 任何想法,为什么会出现错误?所有用户都从构建机器注销。 – Karan 2012-04-13 10:45:48

+1

这确实应该另外一个问题,但...登录到您的构建服务器构建服务器运行的帐户,并打开VS. File-> Source Control-> Workspaces,然后删除上面提到的那个。 – DaveShaw 2012-04-13 12:04:00