TAEF数据驱动的c#应用程序在windows phone上

TAEF Datadriven c# application on windows phone

本文关键字:windows phone 应用程序 数据驱动 TAEF      更新时间:2023-10-16

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

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

我在我的参考文献中加载了VSTS dll和TE.Managed.dll,并且在TAEF中我们设置了这个TestContext属性,以便您可以通过它访问数据。

public TestContext

{

get {return m_testContext;}

set {m_testContext = value;}

}

在运行时,当我在手机上运行测试用例时,我得到这个参数错误

——

命令"c:datatestbinUnitTestProject1.dll/select:@ testd ='1004'"

Test authororing and Execution Framework v4.16m for arm

错误:系统。ArgumentException:类型 ` wexs . testexecution `的对象。TestContextImplementation'不能转换为类型'Microsoft.VisualStudio.TestTools.UnitTesting.TestContext"。

删除所有对WEX的引用。TestExecution也给了我同样的错误。有人可以帮我这个!!????

当使用TE.Managed.dll的CoreCLR版本时,您需要在TE.Managed.dll中的wexx . testexecution . markup命名空间中使用TestContext实现。CoreCLR版本不支持使用来自Microsoft.VisualStudio.QualityTools.UnitTests.dll的TestContext类。