A unique load testing experiment

A unique load testing experiment

Posted by richard | October 21, 2014 | Conferences, Development, Visual Studio 2013

Most of the guidance you’ll find about Visual Studio Ultimate Load Tests suggests that they are only for load testing Web Performance tests. Actually, they can be used to load other types of tests, such as unit tests. I demonstrated this at STARWEST last week. Instead of load testing the execution of a database or other service, I thought I would try something fun. I created a simple unit test that played a random tone using the beep command and then placed that under load.

using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Cool.Tests
  public class Load
    public void BeepTest()
      int frequency = new Random().Next(1000, 5000);
      Console.Beep(frequency, 50);

I then created a simple load test called Symphony.loadtest and added the BeepTest to it.
Load test running

The resulting load test was fun to listen to. Click the image below to see for yourself.
Symphony Load Test Running

Attachment: LoadTestProject.zip

Add a comment

*Please complete all fields correctly

Related Blogs

Posted by richard | June 3, 2015
Visual Studio Live! in Austin
Update: Added additional links for my same talks at VSLive! in San Francisco today (17 June, 2015) Thank you to those who attended my two talks today. I enjoyed our...
Posted by richard | May 9, 2014
Develop.Idaho 2014 Videos Published
Updated 20 May: Added presentations (but no videos) from the "Business of Software" track. It took a few extra days to get these produced and published, but they are now...
Posted by richard | February 26, 2014
The ProcessTemplateEditorPackage package did not load correctly
Yesterday, while using Team Explorer for Visual Studio 2013 to customize a process template, I ran into this error … As suggested, I checked the ActivityLog.xml, but it didn’t offer...