【问题标题】:TAEF Datadriven c# application on windows phoneWindows Phone 上的 TAEF 数据驱动 c# 应用程序
【发布时间】:2015-09-29 22:41:41
【问题描述】:

我正在编写一个 C# 应用程序,以使用 TAEF 文档中描述的“数据驱动方法”读取 XML。

https://msdn.microsoft.com/en-us/library/windows/hardware/hh439689(v=vs.85).aspx https://msdn.microsoft.com/en-us/library/windows/hardware/hh439591(v=vs.85).aspx

我已经加载了 VSTS dll 并在我的引用中加载了 TE.Managed.dll,在 TAEF 中我们设置了这个 TestContext 属性,以便您可以通过它访问数据。

公共TestContextTestContext

{

get { 返回 m_testContext; }

设置 { m_testContext = value; }

}

在运行时,当我在手机上运行测试用例时,我收到此参数错误

命令 - cmdd te.exe "c:\data\test\bin\UnitTestProject1.dll /select:@TestId='1004'"

用于 arm 的测试创作和执行框架 v4.16m

错误:System.ArgumentException:对象类型 “WEX.TestExecution.TestContextImplementation”无法转换为“Microsoft.VisualStudio.TestTools.UnitTesti”类型 ng.TestContext'。

删除所有对 WEX.TestExecution 的引用也会给我同样的错误。有人可以帮我解决这个问题吗!!!???

提前致谢。

【问题讨论】:

标签: c# c++ .net windows taef


【解决方案1】:

在使用 TE.Managed.dll 的 CoreCLR 版本时,您需要在 TE.Managed.dll 的 Wex.TestExecution.Markup 命名空间中使用 TestContext 实现。 CoreCLR 版本不支持使用 Microsoft.VisualStudio.QualityTools.UnitTests.dll 中的 TestContext 类。

【讨论】:

    猜你喜欢
    • 2015-08-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多