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

Visual studio 2010 Visual Studio远程测试-无法连接到虚拟机上的测试控制器,visual-studio-2010,load-testing,Visual Studio 2010,Load Testing,我在虚拟机VM1上安装了测试控制器和测试代理。测试代理显示为在线。我正在尝试从我的机器远程运行CodedUI测试。但每次我去测试->管理测试控制器。。。在VS2010中,它挂起。当我尝试远程运行任何测试时也会产生同样的效果 这两台机器都在同一个域中,在我的机器上,我使用的是域管理员用户,在VM本地管理员上 我在事件查看器中发现以下两个错误: 无法删除源VSTTExecution中事件ID 0的描述 建立引发此事件的组件未安装在上 您的本地计算机或安装已损坏。您可以安装 或修复本地计算机上的组件。

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

这两台机器都在同一个域中,在我的机器上,我使用的是域管理员用户,在VM本地管理员上

我在事件查看器中发现以下两个错误:

无法删除源VSTTExecution中事件ID 0的描述 建立引发此事件的组件未安装在上 您的本地计算机或安装已损坏。您可以安装 或修复本地计算机上的组件。如果事件起源于 在另一台计算机上,显示信息必须与 事件本次活动包括以下信息:

devenv.exe,PID 7732,线程1 IdleProcessorManager.DoWork-作业 投掷:项目已添加。输入字典: 添加了“7c58e17b-57a5-e486-31cc-aca08ec38d23”键: at处的“7c58e17b-57a5-e486-31cc-aca08ec38d23” Microsoft.VisualStudio.TestTools.Common.Xml.XmlPersistence.LoadHashtable[K,V]XmlElement 元素、字符串位置、字符串键位置、字符串值位置、, XmlTestStoreParameters参数位于 Microsoft.VisualStudio.TestTools.Common.TestListCategory.LoadXmlElement 元素,XmlTestStoreParameters位于 Microsoft.VisualStudio.TestTools.Common.Xml.XmlFilePersistence.LoadTestListString 文件名位于 Microsoft.VisualStudio.TestTools.TestManagement.Tmi.LoadCategoriesString 位置,TestListCategoryConflictHandler idVetoingHandler, TestListCategoryConflictHandler nameVetoingHandler位于 Microsoft.VisualStudio.TestTools.TestManagement.Tmi.LoadCategoriesString 地点 Microsoft.VisualStudio.TestTools.TestCaseManagement.SolutionIntegrationManager.LoadCategoriesIntoTmiString 文件名位于 Microsoft.VisualStudio.TestTools.TestCaseManagement.SolutionIntegrationManager.d__83.MoveNext 在 Microsoft.VisualStudio.TestTools.TestCaseManagement.IdleProcessorManager.DoWork

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

devenv.exe,PID 7732,线程65在等待控制器时超时 连接


答案就在这里


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

这里给出了答案


在安全模式下运行Visual Studio解决了此问题。

我通过安装解决了此问题。

我通过安装解决了此问题。

我遇到了类似的异常,请参见下文

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

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

我有一个类似的例外见贝娄

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

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

Visual Studio是否报告错误?visual studio似乎找不到控制器。可能控制器服务未运行,或者未配置为通过VS而通过MTM运行。你用过这个吗?@Schaliasos:是的,我完成了本演练中提到的所有步骤。我没有任何特定于MTM的东西,所以我想VS应该可以。或者VS有一些特定的步骤?@Schaliasos:是的,是VS抛出了这个异常devenv.exe。控制器似乎正在运行,至少代理说它是在线的。看起来这是一个错误。这也是,但不幸的是,它是关闭的,因为不可复制。对不起,这似乎是一个不同的问题。至少他们得到的异常是不同的。Visual Studio是否报告了错误?visual studio似乎找不到控制器。可能控制器服务未运行,或者未配置为通过VS而通过MTM运行。你用过这个吗?@Schaliasos:是的,我完成了本演练中提到的所有步骤。我没有任何特定于MTM的东西,所以我想它应该适合VS。或者VS有一些特定的步骤?@Schaliasos:A
是的,是VS抛出了这个异常devenv.exe。控制器似乎正在运行,至少代理说它是在线的。看起来这是一个错误。这也是,但不幸的是,它是关闭的,因为不可复制。对不起,这似乎是一个不同的问题。至少他们得到的例外情况不一样。