如何测试网络服务以模拟多个并发请求 [英] How to test webservice simulating several concurrent requests

查看:103
本文介绍了如何测试网络服务以模拟多个并发请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这种情况. 我需要测试使用asp.net和c#创建的Web应用程序.

此应用程序具有一个特殊的过程,该过程在所有应用程序中执行最重,最重要的过程.此过程是我需要测试的Web服务的一部分.

现在,我被要求提出一种程序,以模拟特定数量的同时请求进程,以查看它对一定数量的试图调用和使用同一进程的用户有何反应./p>

我以前从未做过这样的事情,但是我想到了一些想法,例如,也许可以使用BackgroundWorker类在Visual Studio中创建一个小程序,并在此backgroundworker中调用webservice,然后将其称为由用户指定.

正如我所提到的,我从未做过任何类似的事情,因此我愿意接受建议.

如果您做了类似的事情,您会怎么做?

解决方案

不要自己写这个,直接使用Web负载测试工具.

另请参阅 对Web应用程序执行压力测试?

I've got this situation. I need to test a web application that was created with asp.net and c#.

This application has one special process that does the heaviest and the most important process in all the application. This process is part of the webservice that I need to test.

Now I've been asked to come up with any kind of program to simulate a specific number of simultaneous requests to the process, to see how it reacts to a certain number of user trying to call and use the same process.

I've never done anything like this before, but some ideas have come to mind, like maybe creating a little program in visual studio using the BackgroundWorker class and in this backgroundworker call the webservice , then call this backgroundworker the number of times specified by the user.

As I mentioned, I've never done anything similar, so I'm open to suggestions.

What would you do if you had do something similar?

解决方案

Don't write this yourself, go straight to a web load testing tool.

See also Performing a Stress Test on Web Application?

这篇关于如何测试网络服务以模拟多个并发请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆