gpt4 book ai didi

c# - Windows Phone 上的 TAEF Datadriven c# 应用程序

转载 作者:行者123 更新时间:2023-11-28 06:03:21 26 4
gpt4 key购买 nike

我正在编写一个 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 属性,以便您可以通过它访问数据。

公共(public)测试上下文测试上下文

{

得到 { 返回 m_testContext;

设置{ m_testContext = 值;

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

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

测试编写和执行框架 v4.16m for arm

错误:System.ArgumentException:对象类型 'WEX.TestExecution.TestContextImplementation' 无法转换为类型 'Microsoft.VisualStudio.TestTools .UnitTesting.TestContext'.

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

提前致谢。

最佳答案

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

关于c# - Windows Phone 上的 TAEF Datadriven c# 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32854931/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com