How to load test web services in Visual Studio?
Ho开发者_运维问答w can i load test web services in visual studio?
This doesn't involve Visual Studio. However, here are some free tools from Microsoft for stress testing web applications.
You have two options with VS Ultimate 2010:
- web tests: if the web service calls are simple enough to make (e.g. a url with query string parameters) and the response is simple enough to parse, you can create web tests (now called 'web performance tests') that exercise the web services.
- unit tests: if the web service calls and responses are more complex, you should try this option. Visual Studio can auto-generate the necessary classes to interface with the web services, given a WSDL file. In your test project, right-click on the project node, choose Add Service Reference, specify the url of the WSDL file, and it will create the necessary code for you. Then you can write unit tests using the generated API.
Also see How to create a web service load test using Visual Studio 2010?
Visual Studio Web & Load Testing Framework is powerful and extensible. For testing Web/WCF/API Services, you can use a Load Test. This test will include a mix of unit test or generated tests from wcf load test.
But there are also many others tools available :
- WCFStorm
- loadUI
- So-Aware Test Workbench
精彩评论