LabDefaultTemplate.xaml fails when VS 2013 is installed on a 2012 build Agent.

If you are not able to run lab workflow (or BDT which we call it internally) when 2013 components (VS) and 2012 components (read BA/BC/VS) are installed on the same machine, then please read on. There is a known issue here and this post talks about how you can verify that you are running into…

4

How to find test points assigned to a particular person

Here is a code snippet which you can use to find test points assigned to a particular person. # Load Client Assembly [Reflection.Assembly]::Load(“Microsoft.TeamFoundation.Client, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”); [Reflection.Assembly]::Load(“Microsoft.TeamFoundation.TestManagement.Client, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”); [Reflection.Assembly]::Load(“Microsoft.TeamFoundation.TestManagement.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”);   # Define parameters $tfsCollectionUrl = “http://myserver:8080/tfs/DefaultCollection”; $projectName = "DefaultProject"; $planId = "1"; $userDisplayName = "Aseem Bansal"; # Connect to tfs…

0

How to write a custom test management event listener?

In couple of my previous posts, I talked about what are the important events raised by test management service and how code for one such event listener looks like. In this post, I will talk about what exact steps I did to write my test management event listener. In case you are interested in writing…

1

How to find the action recording associated with the test?

I was looking at this question on the MTM forum and wanted to find out answers for following 2 questions. How can a user find out whether an action recording is associated with a test or not? How can a user delete the associated action recording? For #1, I coded a small power-shell script which…

3

Power-shell script to find test points for a particular suite/config

One of my customer is running into an issue while customizing his BDT workflow and to debug the issue, I have just now created a power-shell script which lists down the test points belonging to a particular suite/configuration. Since I have not seen any power-shell script on this till now (probably because of the issue…

0

A test run must be created with at-least one test case

I was trying to run an automated test using TCM.exe and the executable was failing with a message saying “A test run must be created with at-least one test case.” On looking at the code, I found why it is failing and what should I do to come out of this error. Later on I…

0

How to find the test controllers registered with Team foundation server 2012?

Here are the steps you should follow to achieve this. Copy the following contents to a power shell script file (say fqdn.ps1) # Load the binaries [Reflection.Assembly]::Load(“Microsoft.TeamFoundation.Client, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”); [Reflection.Assembly]::Load(“Microsoft.TeamFoundation.TestManagement.Client, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”); # Connect to  Tfs $tfsCollectionUrl = “http://myserver:8080/tfs/mycollection”; $tfsCollection = [Microsoft.TeamFoundation.Client.TfsTeamProjectCollectionFactory]::GetTeamProjectCollection($tfsCollectionUrl); $tcmService = $tfsCollection.GetService([Microsoft.TeamFoundation.TestManagement.Client.ITestManagementService]);   # Query for test controllers $testControllers =…

0

The build cannot be assigned to the test plan

One of the customer reported a problem saying that whenever he is trying to assign a build to the test plan in MTM, the assignment fails with error “Build XXX cannot be found”.  On investigations, Nipun from the team found that it was failing because the customer was not using the default permissions and the…

0

Want to know more about MTM?

One of the customer wanted to read more about MTM and Nivedita, PM in the team,  sent out the following resources. Here I am sharing the same information with all of you. MSDN: Testing with Microsoft Test Manager  Quick Start Guide for Manual Testing using Microsoft Test Manager Channel 9:  Software Testing with Microsoft Test…

1

Which Test Management notifications are available?

Test Management service in Team Foundation Server 2012 raises notifications on some specific actions by its users. You can subscribe to these notifications to understand what’s going on in the server. Here are some of the important notifications which are raised by test management service. TestRunStartedNotification TestRunChangedNotification TestRunCompletedNotification  TestPlanChangedNotification TestSuiteChangedNotification  TestConfigurationChangedNotification     (Update 11/20)  Let…

4