简体   繁体   English

如何使用Microsoft Test Manager在多个系统中从TFS自动化多个测试用例?

[英]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... 请参阅“功能测试任务”。

1 Associate an Automation with a Test Case (pre 2015) 1将自动化与测试用例相关联(2015年前)

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中内置的自动测试

2 Generate Test Cases for an Automation (pre 2015) 2生成自动化测试用例(2015年前)

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中内置的自动测试

3 Associate Automation directly with a Requirement (recommended) 3将自动化与需求直接关联(推荐)

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.

相关问题 如何通过程序将测试用例添加到Microsoft测试管理器 - How to add test cases to microsoft test manager through program 将多个测试用例链接到一个测试用例 - link multiple test cases to one test case 如何通过TFS API检索测试计划中的所有测试用例? - How to retrieve all Test Cases in a Test Plan via TFS API? 如何将自动化测试执行结果更新到 AzureDevOps/TFS 中的测试用例中 - How to update automation test execution results into the test cases in AzureDevOps/TFS 使用xunit生成具有整数范围的多个测试用例 - Using xunit to generate multiple test cases with integer range 如何为具有多个状态的Singleton对象运行测试用例? - How to run test cases for Singleton object with multiple state? 如何在一个自动化脚本中涵盖多个测试用例 - How to cover multiple test cases in one automation script 在Microsoft测试管理器中执行硒测试用例超时 - Selenium test cases timing-out when executed in Microsoft Test Manager 在多个环境中测试相同的测试用例 - Testing same test cases across multiple environments 使用 TFS api 执行(通过/失败)测试用例? - Using TFS api to execute(pass/fail) test cases?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM