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

前端 未结 3 1763
-上瘾入骨i
-上瘾入骨i 2021-01-16 16:28

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 r

相关标签:
3条回答
  • 2021-01-16 16:55

    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.

    0 讨论(0)
  • 2021-01-16 17:17

    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.

    0 讨论(0)
  • 2021-01-16 17:20

    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

    0 讨论(0)
提交回复
热议问题