[英]How to automate multiple test cases from TFS in multiple systems using Microsoft Test Manager?
I have 1000 test cases present in TFS. 我在TFS中有1000个测试用例。 Now I would like to automate those test cases using MTM(Microsoft Test Manager).
现在,我想使用MTM(Microsoft测试管理器)自动化那些测试用例。 I would like to download those test cases from TFS and run it in any client machines using MTM.
我想从TFS下载那些测试用例,并在任何使用MTM的客户端计算机上运行它。 How to achieve this?
如何实现呢? I followed this link https://msdn.microsoft.com/en-us/library/dd380741.aspx#link .
我点击了此链接https://msdn.microsoft.com/en-us/library/dd380741.aspx#link 。
You have been able to do this since TFS 2010, and I have described how in the first two options. 从TFS 2010开始,您就可以执行此操作,而我在前两个选项中已经介绍了如何进行此操作。 However if you are using TFS 2015+ (including VSTS) then this method has been deprecated and a new system is being built.
但是,如果您使用的是TFS 2015+(包括VSTS),则此方法已被弃用,并且正在构建新系统。 See option #3 below for the best way to do this.
有关最佳方法,请参见下面的选项3。
Option #3 also includes other tools as part of the new Team Build system to run automated tests from agents on multiple environments. 选项#3还包括其他工具,作为新团队构建系统的一部分,可以在多个环境中运行来自代理的自动化测试。 See "Functional Testing Task" for that bit...
请参阅“功能测试任务”。
For this follow the documentation that you have from https://msdn.microsoft.com/en-us/library/dd380741.aspx and you need to associate each Automation individually with the Test Cases that it represents. 为此,请遵循https://msdn.microsoft.com/zh-cn/library/dd380741.aspx上的文档,您需要将每个自动化与它代表的测试用例分别关联。
note: This only works with Automated Tests built in MSTest 注意:这仅适用于MSTest中内置的自动测试
If you don't have the Test Cases first you can use tcm.exe to to generate the Test Cases stubs from an automation assembly. 如果您首先没有测试用例,则可以使用tcm.exe从自动化程序集生成测试用例存根。 Follow https://msdn.microsoft.com/en-us/library/dd465191.aspx for the docs.
请按照https://msdn.microsoft.com/en-us/library/dd465191.aspx的文档操作。 I have run this as part of my build process so that it is always up to date.
我已经将此作为我的构建过程的一部分运行,因此它始终是最新的。
note: This only works with Automated Tests built in MSTest 注意:这仅适用于MSTest中内置的自动测试
If this is for tractability then you can use the new tools in TFS 2015/VSTS to directly associate a Test Result from a build with a Requirement. 如果这是为了便于处理,则可以使用TFS 2015 / VSTS中的新工具将构建的测试结果与需求直接关联。 Once associated all future results will also be associated and there is a nice dashboard widget that displays this nicely.
一旦关联,所有将来的结果也将被关联,并且有一个很好的仪表板小部件,可以很好地显示此结果。
https://blogs.msdn.microsoft.com/visualstudioalm/2016/08/02/traceability-with-continuous-testing/ https://blogs.msdn.microsoft.com/visualstudioalm/2016/08/02/traceability-with-continuous-testing/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.