Browse by Tags

Tagged Content List
  • 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: How to create an ordered test programmatically?

    Yesterday an internal customer asked me on how he can create an ordered test programmatically. This was the first time someone had asked me this but I could imagine that it is useful if you have a fixed logic to define the order and have reasonable # of ordered tests to create/maintain. Since ordered...
  • Blog Post: How does testsettings file get used in vstest.console?

    In this post, I want to talk about the settings switch and what do we do when a user has passed testsettings file in vstest.console command-line. Vstest.console runner exposes a command-line switch called /settings in which it accepts both runsettings file as well as test settings file. But the test...
  • Blog Post: How to specify results directory with vstest.console

    VSTest.console command line runner creates the results in the current directory of the command prompt by default but you can change and this post talks about how you can do that. 1. Create a run settings file specifying the results directory. For example the following content in runsettings file will...
  • Blog Post: How to run tests on a machine without Visual Studio/Team Build/Test agent etc?

    I have heard a lot of customers ask about how to make the tests run on a machine without visual studio components or whether you have xcopy-able install etc. The official answer to all these questions is that you should have a visual studio or team build or test agent installed on the box, but unofficially...
  • 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 run test explorer based tests from a stand-alone executable?

    To run test explorer based tests from your own custom exectuable (32 bit/64 bit does not matter), you should do the following steps: -   Ensure that you have visual studio 2012 or above installed on your machine. Download this sample (RunTests.exe) and extract it on your machine. You can use this...
  • Blog Post: Change ClassCleanup timeout

    I have seen few people writing a lot of code in their class cleanup and then complaining that the clean-up is timing out and how they can increase this timeout. To do this, I suggest them the following steps: - Ensure that your class cleanup is indeed timing out. To do this, please check whether you...
  • 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: BuildShadowTask fails with error C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\TeamTest\Microsoft.TeamTest.targets (14): Object reference not set to an instance of an object.

    I have seen customers running into this problem once in a while where they mention that their build is failing intermittently with the following error. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\TeamTest\Microsoft.TeamTest.targets (14): Object reference not set to an instance of an object...
  • Blog Post: How to configure test controller with tfspreview?

    Here are the steps which I typically do to configure the test controller with tfspreview. - Install 2012 RTM Test Controller. - Launch test controller configuration tool and point it to my tfspreview.com account ( http://blah.tfspreview.com ) - Specify the lab service account so that MTM as well as test...
  • 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...
Page 1 of 2 (37 items) 12