Wednesday, March 25, 2009

Load Testing of SOA - Services

I've been searching for a method by which I can perform Load testing of the services of my application (SOA Based). I wrote few Unit tests which I used to run from the inbuilt Load Agent with VSTS 2008 and get the results.

I was searching for another way by which I can get the counters from the services itself. I figured out how that can be done.

In the app.config of the service we want to host, we can write the following

<diagnostics performanceCounters="All" />

This exposes all the performance counters from the service. There is a good article of this in MSDN

The counters can be viewed in the performance monitor of the machine hosting the service.
For opening this write perfmon.exe in Run

Create a new Log Setting for the required counters. And start the log setting before you perform the Load Test. You have to give a path to the output of the log as per requirement. I did with .blg file and it gives a pretty slick graphical representation of the data for all the counters selected in the profile.

Tuesday, March 17, 2009

Add/Modify Area & Iteration

Atlast I found it!!

I was searching for a option to add Area or Iteration to my Project. I had one option in my WebAccess portal of my Team Project but that didnt reflect in my Creat New work item Classification block.

Searched many things but didnt get any help. (the option is obvious but didnt get any help)

It can be done as below.

Tuesday, March 10, 2009

Auto-Generated Unit Tests for WCF services

A really cool tool that was released by Microsoft enables you to take a WCF trace file and a WCF client proxy, or a WCF interface contract, and generates a unit test that replays the same sequence of calls found in the trace file. The code generated is easily modifiable so that data variation can be introduced for the purpose of doing performance testing. The tool generates code for both Visual Studio 2005 and Visual Studio 2008.

Click here to download the tool

Wednesday, March 4, 2009

VSTS 2008 : Unit Testing - Keyboard Shortcuts

Normally I try to use keyboard shortcuts as much as possible. I believe that it saves time.
Here are some handy unit testing keybaord shortcuts with Visual Studio:
Run Mode
1. Ctrl + R, A – Run all tests
2. Ctrl + R, T – Run tests in context (based on if cursor is in function, class, or namespace)
3. Ctrl + R, F – Runs all tests that are checked in Test Results
Debug Mode:
1. Ctrl + R, Ctrl + A – Run all tests in debug mode
2. Ctrl + R, Ctrl + T – Run all tests in context in debug mode
3. Ctrl + R, Ctrl + F – Run all checked tests in debug mode

Enjoy Testing