http://blog.csdn.net/chenggong2dm/article/details/10106517
Pylot is a Web stress test tool written by Python. The use is relatively simple. And the test results are relatively stable.
I have to despise the Apache AB test, the result is really a pain, the same URL, test results erratic, see people gripped, not touch the mind.
Download
Pylot official website: www. pylot. org/
:
Http://www.pylot.org/download.html
The latest version is pylot_1.26.zip-07/06/2009 (not updated for a long time)
Installation
Simple installation:
Decompression can be. (Board brick flew over ⊙﹏⊙ b)
The installation method on the official website is more troublesome. In fact, if you don't need a graphical report, just download the pylot_1.26.zip and unzip it to use the command line.
Full installation (complex installation):
According to the official website method:
1th Step: Download Pylot ( required )
2nd step: Install Python 2.5 + ( required )
3rd Step: Install Wxpython (optional-for GUI mode)
Get the installer from here: http://www.wxpython.org/download.php
4th Step: Install NumPy (optional-for reports with charts)
Get the installer from here: Http://sourceforge.net/projects/numpy
5th Step: Install Matplotlib (optional-for reports with charts)
Get the installer from here: Http://sourceforge.net/projects/matplotlib
--------------------------------------------------------------------------
Ps. I estimate that the full installation under the MAC is the most appropriate. If installed under Windows, Matplotlib can be cumbersome and requires GCC support. I've been tinkering with this for a while.
Use of command line methods
Configure the URL to be tested:
In the Pylot directory, edit the Testcases.xml file.
[HTML]View Plaincopy
- <testcases>
- <!--SAMPLE TEST Case---
- <case>
- <URL>http://www.xxxxx.com/test11.php</url>
- </Case>
- <!--SAMPLE TEST Case---
- <!--
- <case>
- <URL>http://search.yahooapis.com/websearchservice/v1/websearch</url>
- <method>post</method>
- <body><![ cdata[appid=yahoodemo&query=pylot]]></body>
- <add_header>content-type:application/x-www-form-urlencoded</add_header>
- </Case>
- -->
- </testcases>
command to run:
Generate 500 clients, test time 20 seconds:
Python run.py-a 500-d 20
Result description
The specific has been said to be more clear.
And, finally, you will be prompted with an HTML test results page for your reference.
Because in Windows, I did not install the matplotlib, so I can not see the Pylot graphical report, only under the ceonts, Run command.
There is time, you must ponder, the graphical interface to run up.
Python's web stress test Tool-pylot installation use