TFS Performance Tips – Cache

Sunday, August 17, 2014

There is always a way to make thing work faster, my customer has two App Tiers controlled by NLB and DB Cluster and still there is ways to improved TFS Performance. I’ve wrote on DB Resizing and Management - Control\Reduce TFS DB Size I demonstrate how to clear IIS Logs - Clear IIS Logs Using Task Scheduler – Although some people prefer to disable log by Running the following command: (I don’t like it – If there is a problem disabling information will not help you solving the problem…..) %windir%\system32\inetsrv\appcmd set config -section:system.webServer/httpLogging /dontLog:"True"  /commit:apphost Separate I/O...
no comments

How To: Run Tests On Different Machines In Parallel

Wednesday, June 18, 2014

I’m getting this question a lot, how to run multiple tests on different machines in parallel? Every customer that I work with has over 100 tests and some has more than 1000+. So how to improve test execution time? running 1000+ tests can take a while and we want to get the results as fast as possible. So, for Unit Tests there is a nice trick (Wrote about it in 2010 –>Run Unit Tests in Parallel using Visual Studio 2010) that allow you to run those tests in parallel on the same machine. But what about Coded UI Tests? you most know we...

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 ...

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...