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

How to enable logs for MTM?

Here are the steps you should perform to enable MTM logs: – Go to the MTM installation directory (typically it is something like C:\Program Files\Microsoft Visual Studio 11.0\Common7\IDE\) Open the MTM configuration file (mtm.exe.config) from an administrative prompt. Change the trace levels to 4/verbose and add a trace listener. <system.diagnostics> <switches> <!– Trace settings for…

6

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 listen for TestRunChanged notification on tfs server?

In one of my previous post, I talked about what all test management related events are being published by the server. In this post, I want to share a sample code snippet that you can use to listen to one such event (TestRunChangedNotification).  To make sense of the code snippet and how to use it,…

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