2014-06-24 29 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"

我們提到以下職位,以解決該錯誤: