One of the new features in VSTS 2010 is Data Collectors. Data collectors can run as part of your test run and then associate the data collected with the test. This is also an extensibility point. You can create your own data collectors and store any kind of data with your test runs. The following are available out of the box:
This link can give you more high level information about data collectors: Data Collectors
I am going to focus on the ASP.NET Profiler collector and show you how this can integrate with load tests. First off this collector profiles the IIS process, so it will not work against the development web server. For this demo I setup the IbuySpy website. To profile the web site, you need to install an agent on the machine that the IIS is running on. This agent will not be generating load, but will be a collection only agent. The link above goes into detail about how to create and configure these types of agents. So let’s walk through process of running a load test with the ASP.NET profiler collector running.
In future posts I will show you how to create your own data collectors. For now please try out this data collector and others and let us know what you think.