tfscontinuous-integrationui-automationcoded-ui-testsautomationelement

Running automated UI tests as part of CI


I'm working on an automated test suite for a large WPF application. I've created a wrapper library for Microsoft Windows Automation API (previously known as UI Automation Framework), and I use it in order to implement various sanity tests. My team would like to do Continuous Integration with these tests by running them every check-in. We're working with TFS (2012 I believe) and MSTest.

The problem with these tests is that they require the UI to be up and running to actually run the tests. I guess the idea is to copy the built binaries to a remote VM and run the tests with the Remote Agent, but I'm not entirely sure on where to begin.

Has anyone ever done this before and has any code / build workflow XAML examples for achieving something like this?


Solution

  • You need to set up a standard environment on the test machines, which will install a test agent on them. The test agent then runs the tests for you, on your UI.

    This should get you started: http://msdn.microsoft.com/en-us/library/ee390842.aspx