Collecting code coverage data as part of automated test.

We were recently working on a case, which was related to collecting code coverage information for a web application, as part of automated testing. We found a specific requirement to collect code coverage data during the course of this, and thought of sharing it here. Setup · We have a web application for which a…


TFS build fails to trigger coded UI tests.

We have come across an issue where TFS build fails to trigger coded UI tests, based on how the Test Settings file is specified in the build definition. The failure message returned is as below: Error calling Initialization method for test class <projectname>.CodedUITest1: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException: To run tests that interact with the desktop, you must set…


Test agent configuration tool is crashing during the configuration

Background: We were configuring test controller and test agent on same machine for the automated test execution. However the test agent configuration tool was crashing during the configuration. We were logged in to machine using the test controller service account. We verified that the service account is admin on test controller and test agent (both…


Migrating Test cases in TFS 2013

When you open your test cases in Excel the Actions column appear in a format other than rich text like below. Now when you plan to migrate the test cases using Excel, the Action/steps column remains the same [non – rich text format.] One way to migrate/copy the test cases with the columns intact for…