Brief introduction:
Webbech can test the performance of different services on the same hardware, as well as the health of the same service on different hardware. Webbech's standard tests can show us two things about the server: The corresponding number of requests per second and the amount of data transferred per second. Webbench can not only have a quasi-static page testing ability, but also to Dynamic page (asp,php,java,cgi) into The ability to test. And he supports static or dynamic performance testing of secure websites that contain SSL, such as e-commerce sites.
Xxxxxxxxxxxxxxxxxxxxxxxxx Spit groove, can be ignored xxxxxxxxxxxxxxxxxxxxxx
OK, I admit good high-end, but the whole code is hundreds of lines, or count the comments ah, after reading, there is no dynamic web testing, SSL security website test what options Ah!!!!
, only select the HTTP protocol request Header option Yes, what get,head, and so on
Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Understanding the code, you need to understand its business process first
Difficulty one: Get Web server information
Solve this problem, first of all you understand what you want to test? What you want to test is the ability of a Web server to respond to a large number of requests, which is called stress testing. All you have to do is construct a large number of requests at the same time to achieve the test purpose.
The request is indicated by a URL-address connection , and you need to understand what the URL-address connection consists of, and where you want to get the necessary information to make up the request. The general mode of the URL is
Http://myname:[email protected]: 80/mydir/myfile.html?myvar=myvalue#myfrag
|
URI section |
Significance |
|
http |
Agreement name |
|
MyName |
User name (optional) |
|
Mypass |
Password (optional) |
|
www.vimer.cn |
Host Network Address |
|
80 |
Port number (optional) |
|
/mydir/myfile.html |
Resource Path |
|
Myvar=myvalue |
query string (optional) |
|
Myfrag |
Anchor Point (optional)
|
Webbench Code Reading