Canberra VSTS User Group – October Meeting

3 09 2009

0810 – 0830: VSTS Breakfast

Share a bite to eat with the Canberra VSTS group. Bring your VSTS queries and triumphs and share them!
Quiz your peers on how they are getting the most out of VSTS, and maybe pick up some ideas you can take to work with you.

0830 – 0930 : Session – Using TFS in High Performance Teams

Tatham Oddie – Senior Consultant at Readify, Technical Lead at graysonline.com and an ASP.NET MVP presents a session on his experiences with working in a high performance team with TFS. In his own words…

The redevelopment of graysonline.com, Australia’s largest e-commerce site, was a relatively typical IT project; short deadlines, massively changing scope, and a high level of resource churn. Come along to this month’s Canberra VSTS Breakfast to hear how TFS made the delivery of this project possible.

We’ll discuss the development processes we used, how we extended TFS to enable these processes and the myriad of lessons we learnt along the way. Some of the things we’ll cover are:

  • Empowering developers & testers to work together
    • TFS deployer
    • Environment pooling
  • Decoupling deployments from sprints
    • Branch strategies
    • Rapid & Regular delivery
    • Flickr: “10 deployments a day”
  • Work Management
    • What we customised and why
    • The life of a Product Backlog Item

This is a session not to be missed! Register now at http://cvstsoct09.eventbrite.com/





What’s happening with the Canberra VSTS User Group?

31 08 2009

It’s been a little while since we kicked things off again, and it must almost appear as if nothings happening! Rest assured, I’m working hard on locking in more presenters to continue the successful start we had with Anthony back in July. The next session was due to fall during the week of Tech Ed, so I’ve suspended for a month to avoid a numbers drain on the Tech Ed crowd.

The details of the October session should be up soon – I’m just finalising the little things for hopefully what will be another fantastic session. Stay tuned to canberravsts.org for more info as I publish it!





TFS and Excel – The Basics

18 08 2009

Flicking through my blog stats on a Friday shows an interesting trend. On Friday my most common search term is generally “connecting to TFS in Excel”. This tells me 2 things – lots of reports are being written on a Friday, and there’s some demand for a starter guide for TFS and Excel integration!

First things first – licensing. The licensing requirements to connect to TFS from Excel and generate reports is fairly simple. You need a CAL. The people you distribute your reports to as either an xls(x) or hard copy won’t require a CAL, with the restriction that they can’t access the server to refresh/update/create data. For more info on licensing you can get the appropriate white papers for 2005 from here, and for 2008 from here.

Right, now we’ve made sure we’re covered by the right license we need a way to connect to TFS.

1. Install Team Explorer

If you’re using 2005, and have the TFS install media you can find it in the TFC directory of the media. Don’t have access to the install media? It’s also available for download from here.

If you’re looking for the 2008 version, you can get it from here.

The downloads both come in the form of an ISO, so you’ll need some kind of ISO reader. WinRAR and 7-zip will both let you extract what you need to do the install. Once you’ve got the files out, it’s a matter of following the bouncing ball through the setup wizard.

2. Open Excel

Now we’ve got a way to connect to TFS, the next step is to open your flavour of Excel. If you’re working with 2003 you should see a toolbar similar to the image below:

Excel 2003 Team Toolbar

Excel 2003 Team Toolbar

If you’re using 2007, you’ll get a ribbon that looks like this:

Excel 2007 Team Ribbon

Excel 2007 Team Ribbon

If you don’t see one of the above, check your install to make sure it completed successfully. You should see an item in your add/remove programs that looks a bit like this

Team Explorer

Team Explorer

–Update–

If you’re running Office 2007 you can also check the status of the add-in in Excel. Instructions on the WIT Tools blog here.

3. Get a list of work items

To get the list of work items you’d like to work with you’ll need to click the ‘New List’ button in the toolbar installed with Team Explorer. Depending on your configuration, you might get a credential prompt at this point. If you do, enter the credentials that you usually use to connect to TFS (if you’re unsure, best to contact your TFS admin to find out which set you should be using).

You should then see a dialog asking you to pick a server, and team project to connect to. You’ll need to specify a server if you haven’t already. You can do this by clicking the servers button, then the Add… button.

Connect to TFS Server

Connect to TFS Server

Finally enter the URI and the configuration used to connect to your TFS instance. Once again, if you’re unsure – best to contact your TFS admin for these values.

Once you’ve set up a server, pick the team project you’re interested in reporting on and click OK. Double clicking the team project also works.

You’ll now be prompted to pick a query that will form the basis of your work item list. If you like, you can also pick the ‘Input List’ option to enter work items. The queries listed are those specified against the team project you selected. This means if none of those presented suit your needs and you’re not that keen on re-filtering every time you open excel you can go define a new work item query that you can use later to generate lists.

Once you’ve picked a query and clicked OK, Excel will head off to TFS and start building your list. From here on in you’re in Excel land and can generate pivot tables, charts and filtered lists all based off the data you’ve extracted. You can also add work items by entering data into the blank row at the bottom of your list that is denoted with an asterisk.

If you are adding new data – or updating items via the Excel list, you’ll need to hit the publish button to push this data back to TFS before it’s in the system though. An important thing to note here is that if you refresh your data set before publishing any changes you’ve made will be lost. This also applies to any custom formatting you’ve applied to the work item list (though this scenario is addressed in the 2010 integration model).

Well that’s about that. A basic guide to getting a work item list from TFS in Excel that will hopefully simplify the reporting story that most of us go through at some point.





TFS to Quality Centre Connector – The Official Word

21 07 2009

If you go looking for info on the quality center connector you’ll most likely find Jim Lambs blog entry which points back to the connect site for the connector. The problem here is that the connector documentation clearly specifies that this release is of pre-release quality and should not be considered for production systems.

While this isn’t an issue in itself – there’s not much more info out there on the path forward for the connector. I sent an email through to Jim via his blog to see if I could get an idea on what the plan was for the connector. He got back to me within a day to indicate that the connector was effectively not resourced and most likely won’t achieve a production release quality.

With 2010 on the horizon, this isn’t all that surprising as the team is quite busy. The good news is that Jim also indicated that the team are working on a connector for the next version of the product to ensure a path forward for those intending to use Quality Centre with TFS!





VSTS presence on MSDN grows

15 07 2009

I’ve been looking around at integration tools for TFS this afternoon and have just come across a new MSDN page on the VSTS subsite. There’s now a TFS migration and integration tools site, cataloging both free and paid solutions to various client stories for different tool sets.It’s already put me onto a couple of tools I hadn’t seen yet!

Thanks for the awesome resource guys!





VS2010 Team Build Fails on x64 Build Server – Cannot find targets

2 06 2009

I finally got everything set up this evening in my virtual environment so that I was ready to bring across some source code and start exercising the VSTS 2010 beta bits. So I imported the source for (shameless plug) the Canberra VSTS User Group website into my development VM, fixed up the MVC issues and checked in the source skeleton. Next step, define some builds to test out the gated check in and CI capabilities – with a view to also exercising the test data collection.

No sooner had I attempted my first check in, and watched with glee as the gated build initiated correctly did my happiness turn to confusion. The build had failed with a could not find targets error…

Build Target Failure

Build Target Failure

Why would that happen I wondered? Then I realised that my build server was a Windows 7 Server x64 machine. This meant the C:\Program Files it was referencing was an x64 version. Since VS is an x86 only application the build targets live in C:\Program Files(x86)\etc.

Unfortunately at this point I can’t find a way around the issue, though it’s reported on Connect (in another guise as a C++ build target failure), so go vote the issue up and hopefully a resolution will be found. As a workaround it would be nice to be able to target either the x86 or x64 Program Files paths based on the build configuration e.g. Any CPU – use default, x86 – use C:\Program Files(x86).

For now though I guess I’ll be configuring an x86 build machine!





VS2010 – Reports not working? Enhanced security may be the culprit

1 06 2009

Playing around with the 2010 beta bits in my little virtual server world I noticed that basically anywhere I went I’d get an IE warning about site content being blocked. I didn’t really mind, being that I don’t actually allow my virtual network to have internet connectivity. That is, until I went to play with the reporting bits and couldn’t view any of my reports!

The culprit for the consistent security warnings is IE’s Enhanced Security Configuration. This little baby is designed to stop me from hurting myself by only allowing me to view ’safe’ web sites. If you’re interested in the details – this Microsoft whitepaper will get you started in the right direction. Suffice to say, it jacks up your browser security settings to the point of disabling animations and sounds and clearing your local cache when you close the browser.

IE ESC Blocked Site Screen

IE ESC Blocked Site Screen

So – how to fix the problem? There are really 2 routes we can take. Your configuration and exposure will really dictate which suits you. Keeping in mind of course that ESC is there for a good reason (see previously linked white paper) and you should only really be taking these measures if you have a server OS operating as a client e.g. SharePoint dev machine.
The first, and most drastic way to get your reports working is to turn the enhanced security off. This can be achieved in Server 2003 by removing the component through the Add/Remove Programs menu and in Server 2008 through the server configuration utilities IE ESC config utility.

IE ESC Configuration Utility

IE ESC Configuration Utility

Obviously if you’ve got internet connectivity, and/or you really want to limit your servers exposure through your browser you’ll need to find another way. This means adjusting the trust settings in IE set it up to consider your TFS site as a trusted host. The easiest way to allow access to all your TFS based sites (reporting, web access, team site) is to add the TFS host name with a wildcard mapping e.g. http://tfs2010/* to the trusted sites collection. You can either do this on a server by server basis, or you can configure it for the domain as per the instructions referenced by this knowledge base article.

So there you have it. How to get around IE’s enhanced security and get your tfs sites up and running as they should be!





Canberra VSTS User Group – Call for Speakers!

30 05 2009

A short time ago I was talking to a friend of mine Sean Ferguson about VS2010 and some of the things I talked about at Code Camp. During the talk we spoke about how it’s a real shame that the Canberra VSTS User Group was no longer in action. After I went home that night I decided I’d get in contact with a few people and investigate what it would take to get it off the ground again. A couple of months and a fair few emails and a website later and I’m putting out a call for speakers to get content for the re-launch of the group!

Who am I looking for?

If you’ve done something interesting with VSTS, fixed a tricky issue or just have some ideas around how to get things done with any of the parts of the VSTS product suite then I’d love to hear from you.

What’s the format?

I’m looking at either formal presentations or community discussion facilitation. If you’ve got something that fits into either of these categories – make sure you contact me!

I’ve never presented before…

No problems! First time presenters are more than welcome – and are in fact, encouraged. I’m happy to help out with content and presentation reviews, and put you in touch with people with years of presentation experience if you’re after advice. The best advice I ever got was to jump in. Presentation is an extremely rewarding endeavor both personally and professionally.

How can you contact me?

There’s a couple of ways to get in contact with me. You could head over to the canberravsts.org website and use the contact form, leave a comment on this blog or contact me directly via email.





TFS and Excel – Did you know?

21 04 2009

One of my favorite integration points for TFS is Office. Seriously! I find excel the most intuitive and natural way to work with my iteration plans, bug lists and perform general task management. Having talked to a few people about this recently it seems that a lot of the TFS and Office integration is going unused, so I decided to start a living post to catalog some of the Q & A I come across to hopefully increase the use of some of my favorite features….

1. Excel as a task entry system

Excel works really well as a list management tool. What people don’t realise is that it can also be used to create lists for publishing to TFS, and it’s really quite simple.

a. Connect to your team project in Excel and get a list of work items from a query (n.b. you can also pick the ‘Input List’ option here which will open an empty list for entry).
b. Note the empty line at the end of the list marked with a *
c. Start entering your data into the empty line, and be sure to fill out all mandatory fields (you’ll get a prompt later if you don’t, so it’s not a show stopper)
d. Once you’re done entering your new tasks, hit publish to push these back to TFS.
e. If you get a prompt regarding required fields, update your data and try publishing again.

That’s it! You’ve just added a list of work items to your Team Project!

2. Excel, TFS and Concurrency

I was doing a pre-presentation review last week, and a discussion started about the Excel and TFS concurrency model. During the discussion I was asked if 2010 addresses the issue of ‘last-in-wins’ concurrency that exists in 2008. This seemed a little strange to me as I wasn’t aware of the issue but I answered that it did – as I had seen the resolution dialogue in 2010.

Having answered the immediate question, I decided that I’d find out exactly what the case was in 2008 as looking at the work item tracking tables I didn’t see a reason that work item version changes couldn’t be identified between fetch and publish in Excel. It turns out that the concurrency model for 2008 behaves the same (on the surface at least) as that in 2010.

The behavior is that when you publish back to TFS a conflict check occurs. If a non-blocking conflict – users have edited different fields in the same work item, is detected an auto-resolution will occur and the publish will complete. If a blocking conflict – users have edited the same fields in a work item, is detected then a conflict resolution dialog will be shown. This dialog allows you to select the change you want to keep, and then to continue with the publish operation.

Conclusion

So, there’s a couple of features around Excel and TFS integration that I’ve been asked about recently. If you have any other questions on any version of the integration (including any for any of the other Office integration points) leave them in the comments and I’ll do my best to get an answer!