Browse by Tags

Tagged Content List
  • 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: 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: Interesting problem a customer faced while running x64 based tests through test controller/agent

    Lot of customers today are running x64 based tests via test controller/agent and things works for them by default. Recently one of our customer recently reported that he is not able to run his tests via test controller/agent and in this post, I want to share out how Raju Ranjan , a developer in our team...
  • 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: Test management SQL query to find out the test results associated with a suite

    One of the customer wanted to know the sql query which he can use to find out the results associated with a suite. Nipun sent the following query: -   DECLARE @deletedSuiteId INT SET @deletedSuiteId = 167 –Replace with appropriate suite Id SELECT r.* FROM tbl_testresult r JOIN tbl_point p ON r.PartitionId...
  • Blog Post: Test plan cannot be saved. The structure path XXX is not valid

    Lately one of our customer reported this problem that on hosted tfs service , he is not able to create a test plan and creation/update of test plan fails with the error “Test plan cannot be saved. The structure path XXX is not valid”. Here is how we solved this problem. Nipun & me investigated this...
  • 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: Code snippets on Test Management APIs?

    This post shares code snippets on how to do some common operations using Test Management APIs. Snippet #1 : – Given a test run, find associated test suite. // Query results from the run. ITestCaseResult result = testManagementRun.QueryResults()[0]; // Find the test plan ITestPlan testPlan...
  • 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 (22 items)