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

落花浮王杯 提交于 2019-12-12 02:14:04

问题


I need to integrate VS Coded UI Test in VSTS/TFS build pipeline to test a Visual Studio Extension, however I could not find reference for this in MSDN, Is this possible with TFS 2015.2 and VSTS?


回答1:


The recommended way is to use Visual Studio Test Task since Run Functional Test Task is deprecated.

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.

For more details, see Testing with unified agents and phases.




回答2:


TL;DR You can use the Run Functional Test task. 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; 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.
  • 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.



来源:https://stackoverflow.com/questions/41828867/integrate-visual-studio-coded-ui-test-with-vsts-tfs-build-pipeline

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!