TFS API Part 52 – Getting Work Item History

Wednesday, October 30, 2013

Tweet Work Item History field isn’t just a Text field that shows all the changes in a specific work items, it’s a collection of Revision object. Each time you save a Work Item a new revision object is been create and represent the Work Item Latest values. You can use the History to get previous values from Fields, Links and Attachments history. In this post I’ll show how to get Work Item revision list and display the Fields of specific revision. Download Demo Project Step 1: Connecting To TFS And Getting Work Item Store private void btnConnect_Click(object sender, RoutedEventArgs e) { TeamProjectPicker tpp...

TFS API Part 51 – Adding Test Step & Shared Step

Monday, October 7, 2013

Working TFS API for Test Cases is different from Work Items, the usage is different and this cause many of customer to send me questions regarding Test Case API. This post will demonstrate how to create new Test Case, Adding Steps, Step Attachments, Shared Steps and more. As always we need to start with connecting TFS Object Model: TeamProjectPicker tpp = new TeamProjectPicker(TeamProjectPickerMode.SingleProject, false); if (tpp.ShowDialog() != System.Windows.Forms.DialogResult.OK) return; TfsTeamProjectCollection Tfs = tpp.SelectedTeamProjectCollection; For Work Items we need to obtain WorkItemStore object, but for Test Cases we need to work with ITestManagmentTeamProject object. ITestManagementServiceservice = (ITestManagementService)Tfs.GetService(typeof(ITestManagementService)); ITestManagementTeamProject TestProject = (ITestManagementTeamProject)service.GetTeamProject(tpp.SelectedProjects.Name); The ITestManagmentTeamProject contains many helpers for Test API TestPlans...

TFS API Part 50 – Get Team Project Template

Sunday, July 21, 2013

In my last post TFS 2012 Upgrade Process Template–Guide I’ve talked about upgrading an existing Team Project Template to another or a newer template. An important part of the upgrading process is knowing from what template you are upgrading from – although this is not really important because the base template can be modified completely. So here is a simple tool to display the Base Process Template name. Download Demo Project Step 1: Connect TFS and Getting Team Projects Create WPF Application, and add the basic code for connecting...

TFS 2012 Upgrade Process Template–Guide

Thursday, July 18, 2013

Many customers are upgrading from TFS 2010 or earlier versions to TFS 2012 and in near future will upgrade to TFS 2013. As Microsoft making the upgrade process of TFS a very smooth process there are still things we need to upgrade in our Team Project process template things that will not happened in the TFS Upgrade Process. So which things? the Team Project Process Template – Work Items, Queries, Reports, Categories and more. There are couple of scenarios you interesting in: Upgrade the same Process Template to the latest version. ...

VS/TFS 2012 Update 2 & Update 3 CTP

Wednesday, May 8, 2013

Couple of days ago Brian Harry post about the new release of Update 2 for Visual Studio and TFS 2012, and today another release of Update 3 that isn’t big a Update 1 and 2 but contains a set of bug fixes that can ease you work. Before jumping to Update 3, if for some reason you’re not using Update 2 this is the time to read about it and install it! Update 2 VS/TFS 2012.2 (Update 2) Visual Studio 2012 Update 2 (VS 2012.2) ISOs available ...

איך להגדיר ימי חופש של סבב פיתוח – יום שישי במקום ראשון

Sunday, March 3, 2013

אחד השינויים ב – TFS 11 מאפשר לנו להגדיר קבוצות פיתוח והגדרה של סבבי פיתוח עם תאריך התחלה וסיום (Sprint, Iteration וכו). כאשר מתחילים לתכנן סבב פיתוח נראה חישוב של סה”כ ימי העבודה בסבב הנוכחי, אך סה”כ הימים לא יסתדר לכם כי הוא מחשב שיום ראשון אינו יום עבודה. זאת שאלה שאני מקבל מהרבה לקוחות – איך אני משנה את תצוגת ה – Backlog שתתאים לימי המנוחה בארץ (שישי ושבת ולא שבת וראשון). לדוגמא – אם הגדרנו סבב פיתוח מה – 3 לפברואר עד ה – 14 לפברואר – מדובר על 12 ימים סה”כ ו-10 ימי פיתוח אבל אנחנו נראה סה”כ 9 ימי...

TFS API Part 49 – Delete Team Project

Wednesday, February 20, 2013

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 Create WPF Application, and add the basic...

TFS API Part 48 – WorkItemControl And Bypass Work Item Rules

It’s been a while since I wrote about TFS API, not because there is no more about it is because I worked on Windows Store for the past couple of months so I didn’t had the time. More About TFS API So today post will be about two changes in TFS 2012, the first one is WorkItemControl based on WPF that replaced the WorkItemFormControl based on WinForms, the second will be about WorkItemStore bypass rule – Allowing you to save and change work item values without obeying the work item rules. Download Demo Project...

Getting Started With Git-TF Tool

Monday, December 31, 2012

Git-TF tool release by Microsoft allowing developers to work locally using Git repository without any connection to TFS, if you wanted to work on your files locally (In case you don’t have internet connection) you had reopen the solution and work offline. TFS 2012 comes with new feature called – Local Workspace allowing developers to work locally on their files but without tracking the changes history – here comes Git-TF tool. Brian Harry’s Blog Distributed Version Control (DVCS) has a growing following. It enables a set of workflows that can be very handy and...

Visual Studio\TFS 2012 Update 1 is available

Wednesday, November 28, 2012

In previous post “Visual Studio 2012–News (iPhone, Web Test Management, 260 Limit and more)” I talked about the new Visual Studio 2012 Update 1 and what’s new for Visual Studio and TFS 2012. So today Microsoft release : Visual Studio 2012 Update 1 – Download TFS 2012 Update 1 – Download Update: Error when installing TFS 2012 Update 1 - dbo.typ_BuildControllerTableV2 is incompatible with dbo.typ_BuildControllerTable 260 Character Path Limit Some call this Microsoft “Achilles’ heel” but I’ll not do so far, this is with no doubt a very annoying bug that not once cause me to change and...