Mstest - 如果测试容器中引用了 UNC 路径,则不会加载测试 dll
我正在尝试从 MS 测试管理器运行自动化测试。它没有运行,日志显示“添加测试用例 [123] 到测试运行时出错:无法加载文件或程序集 'file://\localhost\TFS\OGUI\OGUI_20111228.8\catsprojects.dll' 或其之一系统找不到指定的文件。”
当我使用 MsTest (http://social.msdn.microsoft.com/Forums/en-US/vsmantest/thread/011a89b7-8c90-436b-bc08-f5e90165c908) 测试 dll 时,似乎 dll 已加载本地引用。它成功运行测试。
mstest /testcontainer:D:\TFS\OGUI\OGUI_20111228.8\CATSProjects.dll"
但是使用 UNC 路径,它无法加载。
mstest /testcontainer:"\200411dc0310\TFS\OGUI\OGUI_20111228.8\CATSProjects.dll"
无法加载文件或程序集“file://\200411dc0310\TFS\OGUI\OGUI_20111228.8\CATSProjects.dll”或其依赖项之一。不支持操作。 (HRESULT 异常:0x80131515)
修复此问题应该允许我从 MTM 运行自动化测试。非常感谢任何帮助。
谢谢 穆什
I am trying to run a automated test run from the MS Test Manager. It was not running and the log showed "Error adding test case [123] to test run: Could not load file or assembly 'file://\localhost\TFS\OGUI\OGUI_20111228.8\catsprojects.dll' or one of its dependencies. The system cannot find the file specified."
When I tested the dll by using the MsTest (http://social.msdn.microsoft.com/Forums/en-US/vsmantest/thread/011a89b7-8c90-436b-bc08-f5e90165c908) seems the dll is loaded when it is locally referenced. It runs the test successfuly.
mstest /testcontainer:D:\TFS\OGUI\OGUI_20111228.8\CATSProjects.dll"
But with UNC Path, it fails to load.
mstest /testcontainer:"\200411dc0310\TFS\OGUI\OGUI_20111228.8\CATSProjects.dll"
Could not load file or assembly 'file://\200411dc0310\TFS\OGUI\OGUI_20111228.8\CATSProjects.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
Fixing this should allow me to run the automated test run from the MTM. Any help is greatly appreciated.
Thanks
Mush
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来你的 UNC 路径错误? UNC 路径以
\\
开头,看起来您只有一个\
It looks like your UNC path is wrong? UNC paths start with
\\
, and it seems you only have a single\