Partager via


Visual Studio Load Test Performance Testing

Recently, my team needed to do some perf testing on some ASP.NET application with sql backend.  After some research, I discovered two ways to approach the problem that seemed easier than the rest:

Option 1:

Create what's known as web tests within Visual Studio.  Plug these into the load test framework in Visual Studio and off you go.  Here is a link that will give you more information that I can ever tell you:

https://blogs.msdn.com/b/edglas/archive/2007/12/17/content-index-for-web-tests-and-load-tests.aspx

Pros: Quick and fast.  No programming knowledge required at all since everything is down via an action recorder.  Basic XML knowledge can help.

Con: Hard to modify.

Option 2:

This is the option that I picked.  Write a bunch of unit tests inside Visual Studio using WatiN(https://watin.sourceforge.net/).  Then plug the unit tests into the load test framework.

Pros: Quick still, but not as fast as web tests.  Customizable just like any other desktop application.  Ability to have static initializers that run per performance test run and per performance unit function call.  Absolutely necessary if you want to query a database to form an url.

Cons: Not as easy as web test.