Browse by Tags

Tagged Content List
  • Blog Post: How to query all the environments in a project collection?

    MTM provides ability to see all the environments within a team project but there is no view in which you can see all the environments across all the projects. Recently one of our customer mentioned that they want to find out this list programmatically. So in this blog, I am sharing how to do that programmatically...
  • Blog Post: How to enable lab management logs at the server side?

    Here are the steps you should follow to enable lab management logs at the server side. Run query on configuration database (typically Tfs_Configuration) DECLARE @Id UNIQUEIDENTIFIER = NEWID() EXEC prc_CreateTrace @traceId = @Id , @area=’LabManagement’, @level=4 Start the ETW trace listener on the AT...
  • Blog Post: SCVMM machines are owned by tfs users

    Last week one of the customer wanted to co-relate the owners of the virtual machines created on SCVMM with the one shown in MTM. I was not aware that you can do it but one of the team member educated that we do ensure that the owner of the machine on SCVMM remains the user who had created it on tfs....
  • Blog Post: How to add/query tags on lab environment machines?

    MTM provides the ability to add/view tags on lab environment machines which helps in associating interesting information with the machine. You can add that using the following Ux in MTM. One of the internal customer asked me that he wants to query these tags programmatically. Here are the steps that...
  • Blog Post: How to find all the automated test runs that happened on a lab environment?

    MTM toolset provides ability to execute automated test runs on lab environments and today one of the internal customer asked me how he can programmatically find out all the automated test runs that happened on a lab environment. In this blog, I am sharing how to do that programmatically. Login to a machine...
  • Blog Post: How to find the test runs associated with a build?

    Visual studio build summary page shows a lot of information about the build and one of them is about test runs associated with that build. In my work, I had to find out the test run Ids associated with a given build but since the Ids are not exposed in the summary page or logs, it is slightly hard to...
  • Blog Post: How to find whether lab environment is in healthy state or not?

    MTM provides ability to see all the environments across your lab and one of the thing it shows is whether the environment is healthy or not. By healthy, I mean whether machines in the environment are ready to run tests or are ready to deploy an application or not. Yesterday one of our customer mentioned...
  • Blog Post: How to compose a lab environment from existing SCVMM based machines?

    MTM provides various workflows to create environments. You can create environments from virtual machine templates, from stored environments in library, from existing physical/virtual machines which are not managed by SCVMM, from existing virtual machines managed by SCVMM. In this flow, we will learn...
  • Blog Post: How to cancel an ongoing operation on lab environment programmatically?

    MTM provides users to do bunch of operations on lab environments and a lot of these operations are long running. MTM also provides a gesture to cancel the operation but in case you want to cancel it programmatically, you can use the following script. Here is how you can use the following script. Login...
  • Blog Post: How to list down all the “importable” virtual machines/templates programmatically?

    MTM provides an ability to import one or more virtual machine/template to your team project. In that flow, it shows you complete list of virtual machines/templates that are available for you to choose from (see below image). There could be scenarios where you would want to get this complete list programmatically...
  • Blog Post: 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 the same...
  • Blog Post: Test management warehouse: Improve deletion performance

    Last week we received a complaint from an internal customer that the test management warehouse adapter is taking a lot of time to process the data. Dhruv took a look at the problem and found that it is slow because the indexes on the test management tables (FactTestResult, DimTestResult, DimTestRun)...
  • Blog Post: Test management features since 2012

    Ravi Shankar, my colleague in the test management team, published a list of features that we added in test case management tool in last 1 year or so. I find that list really useful, so sharing it with all of you here. Here you go: - VS 2012 (Microsoft Test Manager) - RTM : · MTM Performance improvements...
  • Blog Post: How to find the list of test cases that are associated with n attachments

    One of the customer wanted to clean-up attachments from their tfs server using the test attachment cleaner tool . They wanted to find out more details about the attachments that will get cleaned and one of the detail was the list of test cases that will be touched. Since the test attachment cleaner does...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: 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 can...
  • Blog Post: 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...
  • Blog Post: 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 found a good link which talks...
  • Blog Post: 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]:...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: Update TestSettings utility

    In dev10/dev11, test settings in MTM does not expose all the configuration options which are present in Visual Studio. These configuration options include bucket size, deployment timeout among few others. I have created a small utility named UpdateTestSettings which you can use to update these parameters...
Page 1 of 1 (24 items)