DCSIMG
TFS API,TFS Utilities - Shai Raiten's Blog

Shai Raiten's Blog

It's all about code...

Browse by Tags

All Tags » TFS API » TFS Utilities (RSS)
TFS API Part 49 – Delete Team Project
There are many improvements in TFS API for 2012 version, in my previous post I’ve talked about TFS API Part 48 – WorkItemControl And Bypass Work Item Rules that allow work item creation with bypass rule mode in WorkItemStore that allow you to create and change any field value without applying the WorkItem template rules. in this post I’ll show how to delete Team Project using TFS API, be aware Delete Team Project is unrecoverable! Download Demo Project Step 1: Connect TFS and Getting Team Projects...
TFS API Part 45 (VS11) – Modify Teams and Team Members
Tweet In my previous post “ Teams and Team Members ”  I talked about new Service in TFS API called – TfsTeamService. Using this service we can control Teams and Team Members under TFS. We can create and remove Teams and Team Members using TFS API. I know this can be quite confusing but Teams in TFS are simply Group (Security Group), same as Contributors, Administrators etc. If you open Security tab under TFS Web Management you can see that there is two separate lists of Groups – Teams and TFS...
TFS API Part 42 – Getting Started With Lab Management API
Tweet I did some cool things lately with TFS Lab Management API, from connecting it to TFS Web Access and allow REST access to the lab (if you want to ask why – The customer is always right ). So this part of TFS API will deal with Lab Management API, although Lab Management API is not public I’ll show some cool things you can do but this will be under your own risk. Again, this is just the beginning of the Lab Management API, so let’s get started Download Demo Project Step 1: Located “ Microsoft...
TFS API Part 41–Manage Groups and Members
Tweet In the past I’ve showed some examples on how to work with TFS IGroupSecurityService for getting users list, but you can do much more, Create new Group, Add or Remove users from group etc… TFS API Part 25: Get TFS User List (Mail Sid, Account, Domain) – TFS 2010 TFS API Part 4: Get TFS User List (Mail, Sid, Account, Domain) Download Demo Project Step 1: Connect To TFS and Get All Users and Projects As always we need to start with connecting to TFS, but here we’ll also obtain 2 important services...
My Lecture at Munich ALM Days 2011
Tweet The conference was Amazing!!! I had great time in the conference with partners, customers and friends, I didn’t went to most of the lectures (Ich weiß nicht Deutsch spricht) but from the people who presented the presentation and the title there were plenty of interesting lectures. In my lecture I’ve talked about Applied Software Testing with Visual Studio 2010 , I showed demos on Test Manager, Web Performance Test, Load Testing and of course Coded UI Testing. I’ve also talked about Migration...
TFS API Part 40–Build Service Host
Tweet First, what is the Build Service Host or IBuildServiceHost ? The BuildServiceHost object represent the physical location of the Controller and/or Agent objects. The name property is usually the machine name that the Controller or Agent lives on. In earlier versions, this was simply the Machine Name property on the Agent. Now, I’m working with a customer works with Lab Manager and after upgrading the SCVVM and perform some port changes we faced an issue – The Build Service Host stuck in your...
TFS Integration Platform Updated Mar 11
TFS Integration Platform Updated Mar 11 Brian Harry just post about a new version released for TFS Integration Platform, This release primarily contains a bunch of bug fixes You can Download from here - http://visualstudiogallery.msdn.microsoft.com/f854dd59-8eeb-4673-8d9a-ae012989bfa2 Still not support for copying Test Cases between Team Projects but you can see my free tool here - Test Case Migrator Between Projects The list of bugs fixes is: VC adapter: code review should use cloaked path for pending...
Test Case Migrator Between Projects – WPF Metro
Test Case Migrator Between Projects – WPF Metro This is a common question I keep hearing from customers: Question: How can we copy Test Cases \ Shared Steps from one Team Project to another? Answer:  You can manually duplicate item after item in visual studio but this isn’t a good solution if you have lots of Test Cases to copy. So, to solve this problem I built a tiny little tool to help you accomplish this task. This tool contains 4 steps: Getting Started: 1. Connection Connect to TFS, pick...
ALM Summit Here We Come
ALM Summit Here We Come Application Lifecycle Management for the Microsoft platform will take place as November 16-18, 2010 - Microsoft Redmond. If you are an ALM practitioner, lead, or manager who is passionate about mastering your craft, this is an event you don’t want to miss, and Sela Collage as ALM leader in Israel will be there as a gold sponsor. Sela is going to announce of two tools for TFS and Visual Studio 2010: Scrat – Quality Center 2 TFS 2010 Migration Tool – Home Page Wimbi – More details...
TFS API Part 29 – TFS Impersonation
TFS API Part 29 – TFS Impersonation What is TFS Impersonation? TFS Impersonation is a feature that was introduced in TFS 2010 in order to allow a process running as User A to make web service calls to TFS in such a way that TFS thinks the actions are being performed by User B. A long time ago I wrote about Access Token With C# , a method that will allow you to perform actions with a different user. Why? when writing Tools and services for customers one of the most important features is to perform...
TFS API Part 28 - Test Suite Hierarchy Builder
TFS API Part 28 -Test Suite Hierarchy Builder In my previous post regarding TFS API TFS API Part 27 – Test Plans, Test Suites, Test Cases Mapping , I showed how to create and obtain Test Plans, Test Suite and Test Cases objects. As part of Quality Center to TFS 2010 Migration Tool I’m translating Quality Center hierarchy into Areas in TFS 2010 - as you can see from the following pictures the QC hierarchy(middle picture) looks the same as TFS Areas (left picture) but it’s not feels the same… Feels...
TFS API Part 21: Delete Work Item using WorkItemStore (Demo Application)
TFS API Part 21: Delete Work Item using WorkItemStore Over the last weeks I heard couple of times a fast way to delete work items from Visual Studio 2010, so in this post I’ll show how to build a simple Delete Work Item application using WorkItemStore. *** Deleting Work Item Action Is Not Recoverable ***   Download Demo Project Create WinForm or WPF application project and add the following reference: First add reference for      Microsoft.TeamFoundation.WorkItemTracking...
Problem Creating Work Item Store From Web Service (Work Item Tracking Metadata Cache)
Problem Creating Work Item Store From Web Service (Work Item Tracking Metadata Cache) I create a Web Service for a customer and during the development I had a little problem getting WorkItemStore object. Error 1: Cannot complete the operation. An unexpected error occurred. Stake:   at Microsoft.TeamFoundation.WorkItemTracking.Client.DataStore.HandleComException(Int32 hr)    at Microsoft.TeamFoundation.WorkItemTracking.Client.DataStore.DatastoreClass.ConnectEx(String connectionString...
More About Creating Work Item Using TFS API
More About Creating Work Item Using TFS API In my last post How To: Create Generic Work Item Migration Tool For TFS I explained how to create Work Item Using TFS API. In this post I'll show more options available using the API. First create the connection to TFS and Work Item Store. TeamFoundationServer tfs = TeamFoundationServerFactory.GetServer(ServerName); WorkItemStore store = (WorkItemStore)tfs.GetService( typeof (WorkItemStore)); WorkItemTypeCollection workItemTypes = store.Projects[TFSProject...
How To: Create Generic Work Item Migration Tool For TFS
How To: Create Generic Work Item Migration Tool For TFS I heard people creates Migration Script with tfs command-line tools but in this tutorial I will show how to create Generic Migration Tool using TFS API. Preparing For Migration Before starting the Migration Tool you need to customize the Work Item Definition so you will not have problems during the Migration. For Example: Remove or Modify <REQUIRED> tags to make sure you will not have validation errors. Make sure that the first transition...
More Posts Next page »