如何测试web服务模拟serveral的并发请求 [英] How to test webservice simulating serveral concurrent requests

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

问题描述

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

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

该应用程序有一个特殊的过程,它最重的,并在所有的应用程序中最重要的过程。这个过程,我需要测试web服务的一部分。

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.

我从来没有做过这样的事情之前,但有些想法浮现在脑海中,像使用BackgroundWorker类,并在这个BackgroundWorker的调用web服务在Visual Studio中创建也许一个小程序,然后调用该BackgroundWorker的次数由用户指定。

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??

在此先感谢。

推荐答案

不要这样写自己,直行到Web负载测试工具。

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

另请参阅
<一href=\"http://stackoverflow.com/questions/7492/performing-a-stress-test-on-web-application\">Performing在Web应用程序压力测试?

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

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