how to test aspx page behaviour when multiple requests(~50) are made simultaneously using visual studio
I have to test my asp.net web application for performance when there are simultaneous requests for the web site in my developer machine before deploy in production. how can i achieve this using Vis开发者_运维知识库ual Studio?.(without using third party tools preferably Visual studio 2010 professional edition
You mentioned you only want to use Visual Studio but real benchmarking tools have very little to do with your IDE.
WCAT is quite useful.
I recommend of course you try this on a development or staging server, don't even think about trying this in a live environment!
If you look here you'll note that load testing doesn't come with VS 2010 Professional.
Since you've removed Third Party tools you're left with rolling your own. This will require that use threads to make calls to your web app via the HttpRequest object.
Rolling your own would likely cost your business more than what your time costs.
I'd note that load testing on your developer machine tells you squat in most cases. The environment is vastly different enough that the only thing you can usually figure out is "do we have a race condition here with more than one simultaneous request to this app?"
Best bet is to use a real load testing tool or service on a setup that mirrors your production environment as much as possible. For new apps, consider using the production environment before you go live for this.
I'll also note you should use a third party tool over rolling your own.
精彩评论