How to test webservice simulating several concurrent requests

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 12:05:56

问题


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?


回答1:


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

See also Performing a Stress Test on Web Application?



来源:https://stackoverflow.com/questions/25510493/how-to-test-webservice-simulating-several-concurrent-requests

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!