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

I need to integrate VS Coded UI Test in the VSTS / TFS build pipeline to test the Visual Studio extension, however I couldn't find a link to do this on MSDN, is this possible with TFS 2015.2 and VSTS?

0


source to share


2 answers


We recommend using the Visual Studio test task, as running a functional test task is deprecated.

Use version 2.x or higher of Visual Studio Test tasks in conjunction with phases to run unit and functional tests on the Universal Agent.



For more information, see Testing with Unified Agents and Phases .

+2


source


TL; DR You can use Run Functional Test . This task will propagate your tests using the test method granularity to the pool of agent machines.

Description of the use of this task:



  • Copy the coded user interface assemblies to the computers on which the tests are run; you will also install test agents on these machines;
  • Before running a functional test, you must use the Deploy Test Agent , which will download / install / configure the test agent on all target computers.
  • Since you need to run the Coded UI test, you need to select the Interactive Process checkbox, since the agent will run as an interactive process (not a service) in order to interact with desktop handles.
  • After deploying, call the Run Function test:
    • selection with appropriate minimization of assemblies that you launched earlier on test machines;
    • select a test plan and test suite containing test cases from the completed Associated Automation.

Check the documentation by following the links above to get the prerequisites for completing tasks.

+1


source







All Articles