Click here to Skip to main content
14,921,745 members
Articles / Programming Languages / C
Posted 27 Aug 2003


14 bookmarked

Another webtester

Rate me:
Please Sign up or sign in to vote.
1.00/5 (14 votes)
27 Aug 20031 min read
A stress tester for web apps

Image 1


Don't get cheated! If you really need a test tool, then do not use the ridiculous implementation, rather take a look at this message , where Daniel Turini points to a lot of better free tools.

This article will stay here though, untill a better implementation is posted, don't expect me to assemble it though :-)

This is a stress tester developed for testing a webshop, it will work its way through a list of URLs, and send a request. Optionally it will test the response for a string value. The app was developed for speed, in development hours as well as performance, so it lacks a lot in user friendliness, but, hey, who wants to befriend users anyway.


Here is how to set up the list, it is important to avoid empty lines:

# The name of the server
# Number of repetitions of the whole sequence
# The following should be a list of pairs of an URL and 
# a string to find in the response.
# An URL
# Something to find in the response
# An URL 2
# Something to find in the response 2

When running it will put some log info into this file: C:\\webtestlog.txt, so you better have a C drive. As I said, this is a very primitive tool, so besides some readable log text, there is also some binary values thrown in, so don't get scared if you see sometnig weird in the start of the file.

Here is what the, readable part, of the log looks like:

Num Requests = 242
Ms. Pr. Request = 21141
Num error requests = 0
Num error responses = 0 

First there is the number of requests performed, next is the average millisecs used per request. The next value is the number of requests that failed, and after that follows the number of responses that didn't contain the wanted response string.

The sourcecode in plain C is added, so any changes to the app is possible, if you do it yourself.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

jan larsen
Software Developer (Senior)
Denmark Denmark
No Biography provided

Comments and Discussions

GeneralRegarding C drive Pin
Nish Nishant28-Aug-03 22:32
sitebuilderNish Nishant28-Aug-03 22:32 
GeneralRe: Regarding C drive Pin
jan larsen28-Aug-03 23:18
Memberjan larsen28-Aug-03 23:18 
GeneralRe: Regarding C drive Pin
[James Pullicino]28-Aug-03 23:48
Member[James Pullicino]28-Aug-03 23:48 
GeneralRe: Regarding C drive Pin
jan larsen29-Aug-03 0:35
Memberjan larsen29-Aug-03 0:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.