为什么自动化测试构建(vNext构建)不使用最新的测试数据文件? [英] Why is the automated test build (a vNext build) not using the latest test data file?

查看:53
本文介绍了为什么自动化测试构建(vNext构建)不使用最新的测试数据文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用vNext来执行我的Coded UI测试。测试从excel文件中读取必要的测试数据。测试运行正常,但似乎当我更新测试数据文件并将其检入时,在测试构建执行期间不使用此文件。测试
仍在使用之前的数据值。但是当我在我的机器上执行它时,这工作正常。


我还尝试在测试代码中对代码进行硬编码,以排除最新源代码的可能性。没被使用。当我以这种方式尝试时,使用了硬编码数据。删除硬编码数据后,旧的测试数据
再次被使用。


我是否需要在构建定义中更改任何特定设置以使其使用最新的测试数据文件?

解决方案

您好,


感谢您与Microsoft论坛联系。我们很高兴回答您的问题。


我想知道如何将测试数据文件复制到测试机器上,以便我们可以为您提供更多查询帮助?


我希望回复能帮助您解决问题。如果您需要进一步的帮助,请回复该主题,因为我们随时可以查询。


问候,


Sheethal JS


_________________________________________________________________________________


如果帖子回答了您的问题,请点击该帖子上的标记为答案  投票为有用。


I'm using a vNext to executed my Coded UI tests. The tests reads the necessary test data from excel file. The test runs fine but it seems that when I update the test data file and check it in, this file is not used during the test build execution. The tests are still using the previous data value. However this is working fine when I execute it on my machine.

I also tried to hard code the test data within the test code itself in order to rule out the possibility that the latest source is not being used. When I tried it this way, the hard coded data was used. Upon removing the hard coded data, the older test data was used once more.

Is there any specific setting I need to change in the build definition to get it to use the latest test data file?

解决方案

Hello,

Thank you for contacting Microsoft forums. We are pleased to answer your query.

I would like to know how the test data file is copied over to the test machine so that we can assist you more on your query?

I hope that the reply will assist you in getting your query addressed. In case you require further assistance, please do reply to the thread as we are always available to your queries.

Regards,

Sheethal J S

_________________________________________________________________________________

If a post answers your question, please click Mark as Answer on that post and Vote as Helpful.


这篇关于为什么自动化测试构建(vNext构建)不使用最新的测试数据文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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