Feb 20

No matching items found in version control in your workspace, or you do not have permission to access them

Many TFS version control got the error below when they do a checkout folder. The first thing you will do is to ask the TFS administrator to give you a sufficient permission to do you operation.Make sure you have permission to that folder and make sure the folder is not empty and contains at least one single file, since you cannot checkout an empty folder in TFS version control.

Feb 15

Update TFS WorkItem from Microsoft Access using VBA Code

Many IT users are not familiar with C# code or other languages to create small applications. Usually they build their applications using Microsoft Access/Excel since it does not require any programming experience. They can add forms/reports without writing a single line of code. In my organization, some departments like release management and IT testing have small applications developed in Microsoft Access or Microsoft Excel to track and manage their own work. Continue reading

Feb 14

Setup and Configure LAB Center for Automation Testing Using MTM -Part 2

In previous post i gave an introduction to MTM 2010, creating test plan and test suite.
In this post i will show step by step how to configure LAB center to run automated tests using MTM.
To run automated tests using MTM first you have to setup  Test Agent and Test Controller.
You can download the Test agent and Test controller from the link below
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=1334 Or from Microsoft Visual Studio Agent CD if you have it.
It’s better to install the test controller on separate virtual machine or you can install it in same TFS server machine, in this demo i will install the controller in TFS server machine. Continue reading

Feb 14

Getting Started with Microsoft Test Manager 2010 – Part 1

It’s really a great effort from Microsoft when they introduced a separated IDE for testing. Testers now can create their own test cases, test scenarios, test scripts, test plans, test configurations and perform a manual/automated tests using the testing IDE called Microsoft Test Manager (MTM).

MTM IDE is available when you install VS 2010 Test Professional or Ultimate edition. You can download the trial version of Visual Studio Test Professional from here:

MTM is fully integrated with team foundation server 2010, you can integrate a test plan with your development plan as a part of Application Life cycle Management (ALM) to have a full life cycle of software development. Continue reading

Feb 13

Get Queued Build using TFS API

In this post i will show how to get running build in all builds controllers / Agents.

TFS explorer shows the running build information for each TFS projects one by one, suppose you have many TFS project in your single collection and you want to track whats running now, you will send a lot of time to select all all build definitions and while you finish may other build has triggered. Continue reading

Feb 13

Refresh Wrokitem Cache for TFS Clients

Some users complain that many workitems not exist or not getting refreshed because it’s cached.
You have 2 ways to refresh the workitem cash:

  • From Team web access web site
Feb 13

Clone Build Definition using TFS 2010 API

When you branch from Main or Dev branch you will move all source files and artifact to the new branch since build architecture will be the same. You have the option to create or clone the build definition. Personally i prefer to clone the parent build definition instead of creating new one because may you have a specific configuration for that build and you don’t want to lose it or create it each time.
For more information about branching architecture you can refer to this link http://vsarbranchingguide.codeplex.com/

Below is the code how to clone the build definition using TFS API Continue reading

Feb 10

Get Branch Relatives from TFS Version Control

In this post I will Implement how to get server path branches and branch history from version control in tfs

1. Add the connect method to the form from this
2. Use this Code to get the information

DataTable _data = new DataTable(”Branches”);
_data.Columns.Add(”Branch Path”,typeof(string));
_data.Columns.Add(”Created Date”, typeof(DateTime));
_data.Columns.Add(”ChangesetId”, typeof(int));

Continue reading

Jan 18

Remove User Security Permissions from TFS

  • Before going to this, make sure you remove all user pending changes from TFS version control [last post]
  • List all application groups, using TF SECURITY [tfssecurity /im n:[user ID] / /collection:http://[servername]:8080/tfs/[CollectionName]]
  • If you got [Error: The identity cannot be resolved that means (User not exists in TFS or User already deleted).
  • Remove application group : [tfssecurity /g Continue reading
Jan 18

Remove Version Control Pending Changes from TFS 2010

Every time when any user leave the IT department there are steps to remove pending changes and security permission from TFS version control. Below is the steps to remove any user changes and groups security permissions. Continue reading

Jan 18

Manage Global List in TFS API 2010

GLOBALLIST is shared XML configuration across all team projects for a specific team project Collection, we can you use it for many workitem types to share the same list.

Usually when you want to add/remove item from the GL you would use the command line tool (widadmin) or if you install team foundation power tools [TFPT] you can import/Export using Continue reading

Jan 15

Connect to TFS 2010 using API

Using TFS API, you can access/manage  any part in team foundation server. The most common use of API’s is to create custom service to help better on your work, such as ( build automation, workitem management , migration from other tools, create custom tool, reports ,collect measurements….ect) Continue reading

Jan 15

Set TFS permission using Microsoft Outlook

The purpose for this post is to give step by step instructions to get user control TFS version control from outlook email, This is not intended just connect to version control; it is a way to connect to TFS while you are not available in your office, in my case I need to control giving TFS permissions from outside my office.

TFS Service Continue reading

Jan 15

Get Latest ChangeSet History From Version Control

In this Post I will show how to get all changesets history from source control

  • Add new C# project.
  • Add these API’s references to the project

Continue reading

Jan 15

Get All team project from TFS collection

In this post i will show the users how to get all team project and the sub system base on your version control structure.

1. Create new C# project

2. Add team foundation server Dll references as

Continue reading