2014-06-24 28 views
0

今天我们尝试在BDT环境中运行MTM的telerik测试用例。MTM运行Telerik测试案例失败:指定文件扩展名'.tstest'不是有效的测试扩展

但它失败,以下错误:

Error adding test case [6603] to test run: File extension specified '.tstest' is not a valid test extension.

行动,我们已经做了:

  1. 通过MSTEST的环境中安装Telerik的运行

手动运行测试用例:

"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\MSTest.exe" /testcontainer:.\Miscellaneous\testName.tstest

Microsoft (R) Test Execution Command Line Tool Version 11.0.51106.1 Copyright (c) Microsoft Corporation. All rights reserved.

Loading .\Miscellaneous\testName.tstest... .\Miscellaneous\testName.tstest Could not load file or assembly 'Microsoft.VisualStudio.Shell.11.0, Version=11.0 .0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependenci es. The system cannot find the file specified.

回答

0

我们通过在tfs测试控制器上安装telerik运行时来修复此问题。 并执行以下操作:

  1. 注销并重新注册测试控制器
  2. 注销并重新注册测试剂
  3. 重启测试控制器机

然后误差消失。我们得到的错误与运行命令相同

"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\MSTest.exe" testcontainer:.\Miscellaneous\testName.tstest

直接在环境上。

"Could not load file or assembly 'Microsoft.VisualStudio.Shell.11.0, Version=11.0 .0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependenci es"

我们提到以下职位,以解决该错误: