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 machine logman -ets start TraceSession -p "Microsoft-Team Foundation Server" <repro issue>…

0

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…

0

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 you should follow to query…

0

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 with tfs…

0

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,…

0

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…

7

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 about the last flow (of creating lab environments from existing virtual machines…

8

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 to…

0

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. For those scenarios, please…

0

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) is highly fragmented. When he…

0