Visual Studio远程测试 - 无法连接到虚拟机上的测试控制器

时间:2012-06-26 09:53:57

标签: visual-studio-2010 load-testing

我在虚拟机VM1上安装了测试控制器和测试代理。测试代理显示为在线。我正试图从我的机器远程运行CodedUI测试。但每次我去测试 - >管理测试控制器...在VS2010中它挂起。当我尝试远程运行任何测试时效果相同。

两台计算机都在同一个域中,在我的计算机上,我在VM本地管理员上使用域管理员用户。

我在事件查看器中遇到了这两个错误:

  1.   

    来自源VSTTExecution的事件ID 0的描述不能   找到。未安装引发此事件的组件   您的本地计算机或安装已损坏。你可以安装   或修复本地计算机上的组件。如果事件发生   在另一台计算机上,显示信息必须与   事件。活动中包含以下信息:

         

    (devenv.exe,PID 7732,线程1)IdleProcessorManager.DoWork - 作业   扔:物品已经添加。键入字典:   '7c58e17b-57a5-e486-31cc-aca08ec38d23'正在添加密钥:   '7c58e17b-57a5-e486-31cc-aca08ec38d23'at at   Microsoft.VisualStudio.TestTools.Common.Xml.XmlPersistence.LoadHashtable [K,V](XmlElement的   element,String location,String keyLocation,String valueLocation,   XmlTestStoreParameters参数)at   Microsoft.VisualStudio.TestTools.Common.TestListCategory.Load(XmlElement的   element,XmlTestStoreParameters参数)at   Microsoft.VisualStudio.TestTools.Common.Xml.XmlFilePersistence.LoadTestList(字符串   fileName)at   Microsoft.VisualStudio.TestTools.TestManagement.Tmi.LoadCategories(字符串   location,TestListCategoryConflictHandler idVetoingHandler,   TestListCategoryConflictHandler nameVetoingHandler)at   Microsoft.VisualStudio.TestTools.TestManagement.Tmi.LoadCategories(字符串   位置)   Microsoft.VisualStudio.TestTools.TestCaseManagement.SolutionIntegrationManager.LoadCategoriesIntoTmi(字符串   文件名)   Microsoft.VisualStudio.TestTools.TestCaseManagement.SolutionIntegrationManager.d__83.MoveNext()   在   Microsoft.VisualStudio.TestTools.TestCaseManagement.IdleProcessorManager.DoWork()

  2.   

    找不到来自源VSTTExecution的事件ID 0的描述。未安装引发此事件的组件   您的本地计算机或安装已损坏。你可以安装   或修复本地计算机上的组件。如果事件发生   在另一台计算机上,显示信息必须与   事件。活动中包含以下信息:

         

    (devenv.exe,PID 7732,Thread 65)等待控制器超时   连接

3 个答案:

答案 0 :(得分:0)

这里给出了答案http://social.msdn.microsoft.com/Forums/en-US/vststest/thread/4e8445e6-5c35-4c33-820e-0c334046631b?prof=required

以安全模式运行Visual Studio解决了这个问题。

答案 1 :(得分:0)

我通过安装update 2 of Visual Studio解决了这个问题。

答案 2 :(得分:0)

我遇到了类似的异常(见下文)。

在我的项目解决方案中配置并使用了一个运行设置

“Visual Studio/测试/配置运行设置/”

所以我取消了检查,它又开始工作了......

在配置运行设置下,现在我有: 一个“检查自动检测运行设置文件” 和“选择解决方案范围的运行设置文件条目” 和未选中的“project.testsettings”文件。

The description for Event ID 0 from source VSTTExecution cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event: 

(testhost.x86.exe, PID 10320, Thread 3) TestTypes\{7a24f8ff-85da-d664-ef44-83ff4743dae6} could not be loaded because the TIP could not be instantiated for the following reason(s): An item with the same key has already been added.

The message resource is present but the message was not found in the message table
相关问题