Author: Fenng Date: Oct 09 2004http: //www.dbanotes.net
AWBOT Introduction AWBOT is an easy-to-use test web site gadget. Site at http://awbot.sourceforge.net. The project is an auxiliary project for the AWSTATS project. The features of AWBOT are simple to simulate the behavior of the user access to the site, the test site's response and load pressure, and the benchmark test can be performed. Specifically, AWBOT has the following features:
It is easy to use. Support basic HTTP verification requests. You can set different pre-submission tasks (external scripts, sql commands, etc.) before and after testing. You can check the result of each HTML page's HTTP request to verify the content containing characteristics. Keywords Or the value to be parsed. You can dynamically define the URLs and parameters used to test. You can run multiple sessions to test load pressure. For each page report error, response time and flat response time open source (GNU General Public License) AWBOT has XML PAD (Portable Application Description). Other Features Installation requirements AWBOT requires that the system must meet the following requirements:
The system must be supported by Perl to run Perl scripts. Otherwise, you want to download Perl: ActivePerl (Win32) or in Perl.com (UNIX / Linux / Other). You must add Perl module Time :: HIRES, so that the time can take milliseconds. If you want to execute the SQL command before submission, Add a DBI / DBD database Perl module. Installing Reference The following is a installation log:
############# Installing Time :: hires ############ # Download Time :: HIRES Module Note: File Name and Connections may change wget http://www.cpan.org/modules/by-module/time/time-hires-1.65.tar.gz tar -zxvf time-hires-1.65.tar.gz cd time-hires- 1.65 Perl Makefile.pl Make # If there is an error message indicates that your environment variables are different, you need to do the following operations export lc_all = c perl makefile.pl make make install # installation Time :: hires finished ####### ####### installing awbot ##################### wget http://awbot.sourceforge.net/files/awbot.tgz # decompression TAR -ZXVF AWBOT.TGZ CD AWBOT-1.0 / # copys the configuration file template: cp awbot.test.conf awbot.dbanotes.conf vi awbot.dbanotes.conf # Basic configuration: OutputDir = "./output" # The location of the output file (must be written) Server = "www.dbanotes.net" # 点 点 # # # = = # # # 名 名 名 名 名 名 名 名 名 名 名 名 名 名 名 名 名 名 名 名 名 名 名 用户 名 名 用户 名 名 名 名 用户 用户 用户 用户Note #password = "test" # If the web application needs to be authenticated, add the user password here, and remove the comment RD That awbot will usebotname = "awbot" # string value to force bot name buying in the user agent stringdelay = 0 # Delay Beetween Each Http Request (-1 Wait A Key, 0 no delay, n number of seconds) maxsize = 0 # maximum size of http response (0 = no limit) Tim Eout = 120 # timeout (WHEN WAITI for a Server Response After Sending A Request) Lang = "En" # Output content language AWBOT scripts can also have a lot of parameter options, let's take a look at the parameters:
# perl awbot.pl ----- awbot 1.0 (build 1.0) ----- Advanced Web Bot IS A TOOL TO TEST A Web Server.usage: awbot.pl -config = testconfigfile [options] Where options Are: - server = xxx Overwrite SERVER value of testconfig file.-user = xxx Overwrite USER value of testconfig file.-password = xxx Overwrite pASSWORD value of testconfig file.-delay = n Overwrite DELAY value of testconfig file.-timeout = n Overwrite tIMEOUT value of testconfig file.-loadimages Load image files.-nostopiferror Awbot continues with next test when an error occurs.-prepareonly Only execute pre-actions.-executeonly Do not execute any pre-actions nor post-actions.-id Output file name contains process ID number.-verbose Output file is also reported on std output (screen) .- silent Nothing on std output (screen) .- debug = X To add debug informations lesser than level X Now supports / detects: Several predefined post-test Or Pre-Test Actions (Scripts, SQL Request ...) Web Sites with Basic HTTP / Proxy AuthenticationEasy To Configure (One Config F ile) Configuration and Test plan can be defined dynamically (using variablescatched from a previous test) Possible use of interpretation several simultanous sessions (with awbotlaunch.pl) parameters in more detail, or how to say AWBot is a simple-to-use tool for it. Basic usage
# perl awbot.pl -config = awbot.dbanotes.conf -verbose test awbot 1.0 (build 1.3) ------------------------- Config File: awbot.dbanotes.confserver: www.dbanotes.net - User: - Delay: 0botname: awbot - timeout: 120 - maxsize: 0date: 2004-10-13 13: 13: 15Process ID: 21139 pre actions ---- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -2004 / 10 / 13-13: 13: 15: 534 URL 1 - http://www.dbanotes.net/---> OK - 2771.027 MS Post Actions ------------- -------------- Summary -------------------------- Total Requests to do: 1Total Requests SENT : 1 (1 answered) Total requests duration: 2771.027 msAverage requests response time: 2771 ms / requestTotal Check Yes: 0/0 No: 0 / 0Faster request response time: URL 1 - 2771 msSlower request response time: URL 1 - 2771 msURL 1 - DURATION: 2771 MS - Cumul: 2771 MS - Check Yes: 0/0 NO: 0/0 Reference Information AWBOT http: //awbot.SourceForge.Netawbot's official document http://awbot.sourceforge.net/docs/ SourceForge is not accessible, you can browse online documents at this site http://www.dbanotes.net/awbot/awbot.sourceforge.net/docs/index.h TML The author of this article, a US-raising company DBA, spare time, mixed with various databases, and it is not tired. Currently payment of how to use the Oracle database effectively build enterprise applications. A little study on Oracle Tuning, Troubleshooting. Personal technology site: http://www.dbanotes.net/. You can contact him by email dbanotes@gmail.com.
Original version http://www.dbanotes.net/awbot/awbot.htm
Back home
All Articles (by Fenng) Are Licensed Under a Creative Commons License.i Would Welcome Any Feedback. Please send Questions, Comments or Corrections to dbanotes@gmail.com