【问题标题】:Running Coded UI tests with Resharper/NUnit will not locate Silverlight components使用 Resharper/NUnit 运行 Coded UI 测试将找不到 Silverlight 组件
【发布时间】:2011-06-09 09:50:11
【问题描述】:

我使用的是 Visual Studio 2010 高级版。我在浏览器中的 Silverlight 应用程序上使用 Coded UI 记录了测试。

当我使用测试运行器运行测试时,它们通过了。 当我使用 NUnit 运行它们时,它们会打开浏览器并在 HTML 站点上正确导航,但是一旦测试到达 Silverlight 应用程序,它就无法找到元素。

有人有什么想法吗? 这是错误消息: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException :播放未能找到具有给定搜索属性的控件。额外细节: 技术名称:‘银光’ 控制类型:'MainPageView' ----> System.Runtime.InteropServices.COMException:错误 HRESULT E_FAIL 已从对 COM 组件的调用中返回。

【问题讨论】:

    标签: c# silverlight-4.0 nunit coded-ui-tests


    【解决方案1】:
    猜你喜欢
    • 1970-01-01
    • 2023-04-05
    • 1970-01-01
    • 2014-01-03
    • 2011-09-16
    • 2013-11-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多