how to create simulator for web application for load test and stress test

匿名 (未验证) 提交于 2019-12-03 02:29:01

问题:

how can i record the web server log files and replay the the recorded server logs so that i can latter run the logs and check the load on sql server.

ex. number of request on and the number of resposes on sql server

回答1:

Build a tool that can parse the log files from the web server and replay the requests again. Then you generate test cases by accessing your site using a normal web browser and record the log files.

You can then replay the same sequence over and over again and your tool could also read multiple logs and play them back simultaneously to simulate concurrency.

Make sure that the log files include all GET and POST request parameters as well as timestamps.



回答2:

Here are a couple tools that you might find useful:

Selenium is a suite of tools specifically for testing web applications. http://seleniumhq.org/

ab (Apache HTTP server benchmarking tool) is a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server. It is designed to give you an impression of how your current Apache installation performs. This especially shows you how many requests per second your Apache installation is capable of serving. http://httpd.apache.org/docs/2.0/programs/ab.html



回答3:

What's wrong with using a tool? Tools like selenium will exercise the front-end, you can probably setup a server and a collection of clients running on separate machines to simulate user interaction.

If you want to exercise the backend more directly you could write a unit test I suppose, but unit testing isn't really designed for doing that sort of thing.



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