I had a few questions in Denver at the Adopting VSTS 2008 event – I took some of them offline due to the timeline – here’s the info:
Q: How do I enlist a unit test into a performance profiling session?
In the Test Results window, right-click on any test and select Create Performance Session from the context menu. The Performance Wizard will be displayed, which enables you to kick of the performance session and profile the unit test’s execution.
From that point, it’s just like running any other performance session.
Q: How do I test a web service in an automated test?
Steve Lange has just posted a great description of how to do this: http://blogs.msdn.com/slange/archive/2008/05/23/creating-a-data-driven-web-test-against-a-web-service.aspx
Q: How do I spin up a web test from IIS logs?
http://blogs.msdn.com/joshch/archive/2006/07/03/655518.aspx
Q: How do I test an InfoPath form in SharePoint using a VSTS Web Test?
If you’re working with the InfoPath Forms Server, you need to create a custom extractor. In a nutshell, the issue is that InfoPath posts a bag of fairly opaque data back to the server. Some of this data is contextual, and some of it is not. A good description and sample code that we have leveraged can be found on CodePlex at:
http://www.codeplex.com/ipfswebtest
It turns out that MOSS will also use the forms server even in scenarios that don’t seem to use InfoPath. Mike Pham and I ran into this recently for a client, and I had to write a custom extractor that used a different index than used in the above article. I’ll try to clean up the code for an external post, but the only significant change I made from the above project is that I changed the CurrentFormData.CanaryValue to 24 instead of 25. If you stumble onto this blog post via a web search, feel free to drop me an email.
Q: What does an event subscription for a check-in policy override look like?
As I said in my presentation, there are a rather limited set of notification alerts available from the Explorer GUI. You can use bissubscribe.exe to create more sophisticated subscriptions, as described here:
http://blogs.msdn.com/darrenj/archive/2006/06/08/621902.aspx
The idea behind an alert that is triggered for a policy override is that the comment will be non-empty. A command-line for bissubscribe will look like:
bisSubscribe.exe /eventType CheckinEvent /userId corp\myuserid /address mickey@servergeek.com /deliveryType EmailHtml /filter "PolicyOverrideComment <>''"
A more convenient approach is to use Naren’s event subscription tool available here, which takes care of some of the plumbing, and just requires you to supply the filter expression (PolicyOverrideComment <>''):
http://blogs.msdn.com/narend/archive/2006/07/26/679440.aspx
or the newer tool available on CodePlex here:
http://www.codeplex.com/tfseventsubscription
Q: Multiple servers?
I have no idea what that comment means in my notes. I’m sure that at least one person would like information on multiple servers, but I have no idea what the context is. If you know, send me a note at first.last@neudesic.com, and I’ll post a follow-up.
Q: Where’s the TFS migration blog?
http://blogs.msdn.com/tfs_migration/
Q: Where is the tool for SVN->TFS migration?
It seems to have disappeared. If you’re a Neudesic person and you’re looking for a side project, see me.
Q: Where are your slides?
I’ve posted PDFs of my slides on skydrive at:
http://cid-d00ef348fc8a6f04.skydrive.live.com/self.aspx/VSTS-Denver%20May%202008
or
http://snurl.com/2c7wg