使用CSV在自动化测试中对TFS2015中的CodedUI进行测试数据参数化 [英] Using CSV for test data parameterization in automation testing For CodedUI in TFS2015
问题描述
HI,
我是Visual Studio 2015用户,使用它进行自动化测试.我已经创建了一些编码的ui测试方法.我在ui设计器文件中有获取记录器的代码(但具有在记录过程中输入的硬编码值).我想要
通过使用CSV文件进行参数化,以便在第二次运行脚本时需要使用不同的测试数据来创建.您能帮我提供完全符合我要求的代码吗?我尝试了使用部署项目,数据源的各种方法,但是
没有用.我不知道在哪里调用该方法.请在这方面帮助我.
i am a visual studio 2015 user using it for test automation purpose. i have created few of my coded ui test methods. i have the code which got recorder in the ui designer file(but with hard coded values what i have entered during recording). i wanted
to parameterize by using a CSV file so that it will take different test data to create during my second run of the script. can you please help me with the code that exactly fits to my requirement. i tried various ways using deployment item, data source, but
of no use. i am not understanding where to call that method. please help me in this regard. thanks in Advance.
推荐答案
您好habib960,
Hi habib960,
谢谢您在这里发布.
此论坛正在讨论Team Foundation Server.您的问题与CodedUI测试有关.我将把这个话题移到相应的论坛.
This forum is discussing Team Foundation Server. Your issue is related to CodedUI Test. I will move this thread to corresponding forum.
最好的问候
Limitxiao Gao
Limitxiao Gao
这篇关于使用CSV在自动化测试中对TFS2015中的CodedUI进行测试数据参数化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!