[Opensource] awbot-a compact Web Site Testing Tool

Source: Internet
Author: User

By fenng
Date: OCT 03, 2004
Http://www.dbanotes.net

Awbot Introduction

Awbot is an easy-to-use tool for testing web sites. Site on http://awbot.sourceforge.net. This is a secondary project of the AWStats project.
The awbot function can simulate the user's Website access behavior, test the site response and load pressure, and perform a benchmark test.

Specifically, awbot has the following features:

  • Ease of use.
  • Supports basic HTTP verification requests.
  • Different pre-submission tasks (external scripts, SQL commands, etc.) can be created before and after the test ).
  • You can check the HTTP request results of each HTML page to verify whether the content contains the keyword of the feature or the value to be parsed.
  • You can dynamically define the URL and parameters used for testing.
  • You can run multiple sessions to test the load pressure.
  • Reports errors, response times, and average response times for each page
  • Open source code (GNU General Public License)
  • Awbot has an XML pad (portable application description ).
  • Other features

Installation requirements

Awbot requires the system to meet the following requirements:

  • The system must be supported by Perl and can run Perl scripts. Otherwise, download Perl: ActivePerl (win32) or perl.com (Unix/Linux/other ).
  • You must add the Perl module time: hires to get the time to milliseconds.
  • To run the SQL command before submission, add the DBI/DBD database Perl module.

Installation Reference

The following is an installation log:

############ Installing time: hires ####################
# Download time: hires module note: the file name and connection 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 an error message is displayed, it indicates that your environment variables are different. You need to perform the following operations:
Export lc_all = C
Perl makefile. pl
Make
Make install
# Installation time: hires complete
############# Installing awbot ###################### wget http://awbot.sourceforge.net/files/awbot.tgz
# Decompress
Tar-zxvf awbot. tgz
CD awbot-1.0/
# Copy the configuration file template:
CP awbot. Test. conf awbot. dbanotes. conf
VI awbot. dbanotes. conf
# Perform basic configuration:
Outputdir = "./output" # output file location (must exist and writable)
Server = "www.dbanotes.net" # domain name of the site to be tested
# User = "test" # If the web application requires authentication, add the username here and remove the comment.
# Password = "test" # If the web application requires authentication, add the user password here and remove the comment
Rd that awbot will use
Botname = "awbot" # string value to force bot name used in the user agent string
Delay = 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)
Timeout = 120 # timeout (when waiting for a server response after sending a request)
Lang = "en" # language of the output content

 

The awbot script also has many Parameter options. Let's take a look at the parameters:

# Perl awbot. pl
----- Awbot 1.0 (build 1.3 )-----
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 Authentication
Easy to configure (one config file)
Configuration and test plan can be defined dynamically (using variables
Catched from a previous test)
Possible use of several simultanous sessions (with awbotlaunch. pl)

 

The parameters are explained in detail. In other words, awbot is a simple and easy-to-use tool.

Basic usage

# Perl awbot. pl-Config = awbot. dbanotes. conf-verbose

Test awbot 1.0 (build 1.3)
---------------------------
Config File: awbot. dbanotes. conf
Server: www.dbanotes.net-user:-delay: 0
Botname: awbot-Timeout: 120-maxsize: 0
Date: 2004-10-13 13:13:15
Process ID: 21139

Pre actions
---------------------------

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: 1
Total requests sent: 1 (1 answered)
Total requests Duration: 2771.027 MS
Average requests response time: 2771 MS/Request
Total check YES: 0/0 No: 0/0
Faster Request Response Time: URL 1-2771 MS
Slower Request Response Time: URL 1-2771 MS
URL 1-Duration: 2771 MS-cumul: 2771 MS-Check YES: 0/0 No: 0/0

 

References

Awbot http://awbot.sourceforge.net
Awbot official documentation http://awbot.sourceforge.net/docs/
If SourceForge is not accessible, visit the online document http://www.dbanotes.net/awbot/awbot.sourceforge.net/docs/index.html on this site

Author

FenngDBAs of an American company, who spent their spare time on database-related technical forums, are still happy. Currently, we focus on how to use Oracle databases to effectively build enterprise applications. I have a research on Oracle tuning and troubleshooting.
Personal technical site: http://www.dbanotes.net /. You can contact him by email dbanotes@gmail.com.

Source

Http://www.dbanotes.net/awbot/AWBot.htm

Home Page



All articles (by fenng) are licensed under a Creative Commons license.
I wocould welcome any feedback. Please send questions, comments or corrections to dbanotes@gmail.com

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.