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

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

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

How to make your extension visible to the test explorer in Visual Studio 11?

There are few different ways by which you can make your extension visible to test explorer in Visual Studio 11. Let us go through them one by one. 1. Drop it in “Extensions” folder This is the most simplest way to make the extension visible and it works for all the 3 well known clients…

5

Link environment snapshot to an automated test case failure?

In Visual Studio 2010, if you are executing manual tests on a virtual lab environment, then you are provided an option to take snapshot of the environment as mentioned here. These snapshots (or the link to snapshot) gets attached to the manual test case result and/or the bugs (work item) automatically and no explicit gesture…

0

How to debug the tests failed on the virtual environment?

In this post, I will talk about how I normally debug the automated tests failure on a virtual lab environment. 1. Most of our automated test cases are executed as part of the end-to-end workflow. So I first check the build summary to find out how many test passed/failed. In the example below, it is…

2

How to enable test agent logs

Here are the steps which you should perform to enable test agent logs. 1. Go to your test agent installation directory (typically it is something like C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\). 2. Open the agent service configuration file (QTAgentService.exe.config) and change the trace level to 4 and enable the trace listener as shown below:  …

6

Test run remains in “Waiting for test controller” state for ever

In this article, I wanted to share what you should do if you have queued an automated test run on a test controller and its remain in "waiting for test controller” state for quite some time (as shown below).  Before we go to the trouble shooting steps, let us spend sometime understanding what happens when…

14

How to enable test controller logs

Here are the steps which you should perform to enable test controller logs. 1. Go to your test controller installation directory (typically it is something like C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\). 2. Open the controller configuration file (QTController.exe.config) and change the trace level to 4 and enable the trace listener as shown below:   <system.diagnostics>   …

8