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.
public class Load
public void BeepTest()
int frequency = new Random().Next(1000, 5000);
I then created a simple load test called Symphony.loadtest and added the BeepTest to it.