OnAfterRequest is called after each single HTTP Request of a user (i.e. clicks, images, frames etc.) and can be used to log data and parse the results. E.g. if you need some part of the HTML code to be reused in subsequent requests this is the place to extract this string from the HTML.
Input Parameters:
|
data.usernumber |
(Integer) |
Number of simulated user (first user is #0) |
|
data.clickcount |
(Integer) |
Number of finished clicks (first click is #0) |
|
data.requestcount |
(Integer) |
Number of finished requests (first request is #0) |
|
data.requesttype |
(String) |
Type of Request (e.g. CLICK, IMAGE, FRAME) |
|
request.html |
(String) |
Resulting HTML of this request (can be raw GIF/JPG data for images) |
|
request.receivedheader |
(String) |
Resulting HTTP Headers from the server |
|
request.result |
(String) |
Result of a request (e.g. OK, Error) |
|
request.resultcode |
(String) |
HTTP-Resultcode of a request (e.g. 200, 404, etc) |
Output Parameters:
|
data.log |
(String) |
if not empty this text is added to the user's log |
|
data.token |
(String) |
Use this variable to store e.g. tokens from one click or request to the next |
|
request.additionalheader |
(String) |
Additional lines for the HTTP header sent to the server |
Webserver Stress Tool is a powerful HTTP-client/server test application designed to pinpoint critical performance issues in your web site or web server that may prevent optimal experience for your site's visitors.
Welcome
Introduction: Testing Basics
Performance, Load or Stress Testing?
Calculation of Load and Load Pattern
Webserver Stress Tool Features
How much load can Webserver Stress Tool generate?
Installation
Configuring Webserver Stress Tool
Selecting the Test Type and the Number of Users
Selecting the URLs or Editing the URL Script
Using Custom URL Scripts for Advanced URL Sequences
Performance Tips&Tricks
Running the Test
Reviewing Logfile Results
Analyzing Graphical Results
Graph Click Times & Errors (per URL)
Graph Click Times, Hits/s and Clicks/s
Graph Server and User Bandwidth
Creating Reports
Additional Features
Appendix
Software License and Contact Information