tfs 2015使用测试用例参数构建vnext自动化,数据驱动的单元测试 [英] tfs 2015 build vnext automated, data driven unit testing using test case parameters

查看:100
本文介绍了tfs 2015使用测试用例参数构建vnext自动化,数据驱动的单元测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法使用运行功能测试步骤在单元测试中使用数据驱动的迭代工作,该步骤最近被用于链接到TFS 2015 Update 2(内部部署)中的测试计划和套件。  ;当我尝试将单元测试
方法连接回测试用例以获取测试用例参数以进行迭代时,我得到一个错误。 数据源装饰器如下所示:

[DataSource("Microsoft.VisualStudio.TestTools.DataSource.TestCase","***; ***","308570",DataAccessMethod.Sequential), TestMethod] ***代表集合和项目的url。 以下是运行时错误消息:

I’m having trouble getting the data driven iteration on a unit test to work using the Run Functional Test Step that was recently instrumented to link to test plans and suites in TFS 2015 Update 2 (on premise).  When I attempt to connect the unit test method back to the test case to get the test case parameters to iterate on I get an error.  The data source decorator looks like this:
[DataSource("Microsoft.VisualStudio.TestTools.DataSource.TestCase", "***;***", "308570", DataAccessMethod.Sequential), TestMethod] where the ***’s represents the url of the collection and the project.  Here is the runtime error message:

"单元测试适配器无法连接到数据源或读取数据。有关解决此错误的详细信息,请参阅"数据驱动的单元测试疑难解答"( http:// go.microsoft.com/fwlink/?LinkId=62412 )MSDN Library中的
。错误详细信息:无法找到请求的.Net Framework数据提供程序。它可能没有安装。"

"The unit test adapter failed to connect to the data source or to read the data. For more information on troubleshooting this error, see "Troubleshooting Data-Driven Unit Tests" (http://go.microsoft.com/fwlink/?LinkId=62412) in the MSDN Library. Error details: Unable to find the requested .Net Framework Data Provider. It may not be installed."

这曾经适用于xaml实验室部署,现在支持将单元测试方法与Run Functional中的测试计划和套件相关联测试构建步骤,我希望看到这个数据驱动功能再次使用测试用例参数
。 是否有人在新的构建vnext系统中成功使用此功能? 如果是这样 - 你能帮助我了解我可能做错了什么吗?

This used to work fine with xaml lab deploys and now that the support for associating a unit test method with test plans and suites in the Run Functional Test Build step, I'd like to see this data driven capability working again as well using test case parameters.  Is anyone out there utilizing this capability in the new build vnext system successfully?  If so – could you help enlighten me on what I may be doing wrong?

谢谢!

推荐答案

您好NetScanr,

Hi NetScanr,

感谢您发布此处。

从您的错误消息中,它显示无法找到数据源(测试用例)。你能否在这里分享你的构建步骤(也许是一个屏幕截图),所以我们可以进行测试。

From your error message, it shows that it can't find the data source(test cases). Could you please share your build steps here(maybe a screenshoot), so we can have a test.


这篇关于tfs 2015使用测试用例参数构建vnext自动化,数据驱动的单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆