简体   繁体   English

如何在TFS 2015 Web中运行自动化测试用例?

[英]How to run automated test cases in TFS 2015 web?

I have test cases in TFS 2015. How to run automated tests using TFS 2015 web (similar to Microsoft Test Manager)? 我在TFS 2015中有测试用例。如何使用TFS 2015 Web(类似于Microsoft Test Manager)运行自动化测试? Basically I would like to know how to achieve automated testing in TFS 2015 web platform without using MTM? 基本上,我想知道如何在不使用MTM的情况下在TFS 2015 Web平台上实现自动化测试?

The web Test page does not support to run automatic tests associated with test cases. Web测试页面不支持运行与测试用例关联的自动测试。 You can achieve the same goals using the Build & Release features in Team Foundation Server (TFS). 您可以使用Team Foundation Server(TFS)中的“构建和发布”功能实现相同的目标。 ( https://www.visualstudio.com/en-us/docs/test/lab-management/use-build-or-rm-instead-of-lab-management ) https://www.visualstudio.com/zh-CN/docs/test/lab-management/use-build-or-rm-instead-of-lab-management

Use the Visual Studio Test Agent Deploy and Run Functional tests steps in your build definition to run auto tests on build agents. 在构建定义中使用Visual Studio测试代理的“部署运行功能”测试步骤在构建代理上运行自动测试。

  1. Associated test methods with test cases in Visual Studio. 在Visual Studio中将测试方法与测试用例相关联。
  2. Create a build definition to build your project and add the 2 steps I mentioned above. 创建一个构建定义来构建您的项目,并添加我上面提到的2个步骤。 In the Run Functional Test step, select the test suits which contains those test cases in step1. 在“运行功能测试”步骤中,选择包含步骤1中的那些测试用例的测试服。 在此处输入图片说明

You don't. 你不知道 You either integrate testing into a continuous integration/continuous delivery pipeline with the "Run Functional Tests" task (which, frankly, is where it belongs), or you continue to use MTM. 您可以通过“运行功能测试”任务(坦率地说,它属于该任务)将测试集成到连续集成/连续交付管道中,或者继续使用MTM。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM