开发者

How to load test REST WCF service?

开发者 https://www.devze.com 2023-02-18 04:18 出处:网络
How can i load test REST WCF service? Is it possible with Web performance testing and Load testing in Visual Studio 2010 Ultimate.

How can i load test REST WCF service?

Is it possible with Web performance testing and Load testing in Visual Studio 2010 Ultimate.

Please help. Than开发者_JAVA技巧x in advance.


This knowledgebase article has information on the tools available for stress testing web apps from Microsoft. I've used the Web Capacity Analysis Tool mentioned there in the past.

You can also look at the fiddler plugin stresstimulus. I've used fiddler for non load testing, but I have not used the stresstimulus plugin.


Disclosure: I work for StresStimulus maker. In case you need to test with more than 250 users allowed by VS 2010 Ultimate, you can still record HTTP sessions in Fiddler, as described by @Nat, and then use StresStimulus for load testing in Fiddler. StresStimulus is not nearly as complete as VS 2010 Ultimate, but it’s free and you can check if it’s sufficient for your case. You can parameterize requests using .CSV files and load test with up to 1500 virtual users per client.


At the end of the day, a WCF web service still relies on good old http calls.

You are not really going to be able to record the webtest the same as for a webpage, but Fiddler will allow you to record the http calls made, so fire fiddler and then use the interface for your service to record some actions.

You can then save the fiddler http calls as a webtest for Visual Studio.

I personally would turn the test into a coded test so that items in the Webservice can be parameterised nicely, but it depends on what you need to do. Once a test is recorded, you can easily change the base url to point it to pre-production test environments or whatever is required.

Visual Studio 2010 Ultimate is a really nice tool for load testing and with 250 virtual users available for load testing, you can simulate a lot of actual users with it.

0

精彩评论

暂无评论...
验证码 换一张
取 消