简体   繁体   English

将Visual Studio编码的UI测试与VSTS / TFS构建管道集成在一起

[英]Integrate Visual Studio Coded UI Test with VSTS/TFS Build pipeline

我需要在VSTS / TFS构建管道中集成VS编码的UI测试,以测试Visual Studio扩展,但是我在MSDN中找不到此参考,TFS 2015.2和VSTS是否可能?

The recommended way is to use Visual Studio Test Task since Run Functional Test Task is deprecated. 推荐的方法是使用Visual Studio测试任务,因为不建议运行功能测试任务

Use version 2.x or higher of the Visual Studio Test task together with phases to run unit and functional tests on the universal agent. 将2.x或更高版本的Visual Studio测试任务与阶段结合使用,以在通用代理上运行单元和功能测试。

For more details, see Testing with unified agents and phases . 有关更多详细信息,请参阅使用统一代理和阶段进行测试

TL;DR You can use the Run Functional Test task . TL; DR可以使用“ 运行功能测试”任务 This task will distribute your tests with test method granularity to a pool of test agent machines. 此任务会将具有测试方法粒度的测试分发到测试代理计算机池。

Description of usage of this task: 此任务的用法说明:

  • Copy the assemblies of the Coded UI to the machines where you run the tests; 将编码的UI的程序集复制到运行测试的计算机上; on this machines you will install the test agents too; 在这台计算机上,您还将安装测试代理。
  • Before the Run Functional test you must use the Deploy Test Agent which will download/install/configure the test agent on all target machines. 在运行功能测试之前,您必须使用部署测试代理 ,它将在所有目标计算机上下载/安装/配置测试代理。
  • Since you need to run Coded UI test you need to set the checkbox for "Interactive Process", as the agent will run as an interactive process (and not as a service) in order to interoperate with the desktop entities. 由于需要运行编码的UI测试,因此需要设置“交互过程”复选框,因为代理将作为交互过程(而不是作为服务)运行,以便与桌面实体进行互操作。
  • After the deployment, invoke the Run Functional test by either: 部署后,通过以下任一方法调用“运行功能”测试:
    • selecting with an appropriate minimatch the assemblies you to run you previously copied to the test machines; 用适当的最小匹配选择要运行的程序集,然后将它们复制到测试机上;
    • select the test plan and the test suite containing the test cases with a filled Associated Automation. 选择测试计划和包含带有已填充关联自动化的测试案例的测试套件。

For the prerequisites to run the tasks check the documentation by following the links above. 有关运行任务的先决条件,请通过上面的链接检查文档。

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

相关问题 TFS Build Workflow为编码的UI测试添加了新的测试活动 - TFS Build Workflow add a new test activity for Coded UI tests 将编码的UI测试导出到TFS - Export coded UI test to TFS 是否需要Visual Studio才能在构建服务器上运行编码的UI测试? - Is Visual Studio Required to run Coded UI tests on a build server? 使用visual studio进行编码ui测试 - coded ui testing with visual studio TFS构建定义忽略编码的UI测试 - TFS Build Definition Ignore Coded UI Tests TFS团队将Test Agent与Windows Form App结合使用来构建编码的UI测试-TestInitialize-启动应用程序 - TFS Team Build Coded UI Tests using Test Agent with Windows Form App - TestInitialize - launching the application Visual Studio 测试运行:从测试中心的测试计划运行编码的 UI 自动化测试 - Visual Studio Test Run: Run Coded UI automated tests from test plans in the Test hub 在工作组测试计算机的上下文中运行TFS 2012编码的UI测试 - Running TFS 2012 Coded UI test in the context of a workgroup test machine Visual Studio Code与Local TFS集成 - Visual Studio Code integrate with Local TFS 我们可以将TFS与Visual Studio for Mac集成吗? - Can we integrate TFS with Visual Studio for Mac?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM