Hello All:

I've written some mod_perl scripts that need testing 
over a million hits or so before I deploy it.  I need 
to prove to myself and my marketing guy that my script
has certain statistical properties, not the least of 
which is the question of whether my activity logs match 
what actually happened.  Also, there's concurrency 
issues to make sure I've got right.

Fortunately, I have lots of nice logfiles that I could 
use to very closely simulate the traffic my scripts 
will see.

It seems like I need a script that sends out requests 
taken from a logfile to a responding mod_perl script 
running my script as a subrequest, and then tranmogifies 
the headers in the subrequest's response so that they 
can be sent back with the proper headers, perhaps by
prepending an "X-Test-Response-" to each of the sub-
request's headers.  The requester script would then
process the response, say by putting the subrequest's 
headers and the MD5 checksum of the content into a 
database, for later analysis.

For the visually oriented, this is a diagram of what I 
want:

                           +-- Test request with headers that
                           |   my script will actually see w/
                           |   "X-Test-Request-" prepended
                           |
           +-- Log entry   |               +-- subrequest w/ 
+--------+ |               |               |   faked headers
|        | |               |               |
|  Logs  | V +-----------+ V +-----------+ V +---------+
|        |-->|           |-->|           |-->|         |
+--------+   | Requester |   | Responder |   | Script  |
+--------+   |  Script   |   |  Script   |   | to Test |
|        |<--|           |<--|           |<--|         |
|   DB   | ^ +-----------+ ^ +-----------+ ^ +---------+
|        | |               |               |
+--------+ |               |               +-- subrequest
           +-- DB table    |                   response
               row w/      |
               relevant    +-- Test response with my script's 
               headers &       response headers having
               MD5 chksum      "X-Test-Response-" prepended
               of content

Questions:

1)  Is there a more elegant way of solving my problem?
2)  Has this been done before?
2a) If so, is the source for that available?
2b) If not, is a tool like this useful for anyone else,
    so that I should build it better than I would a once-off?
    What would make it more useful?

Thanks in advance for your help.

  --Christopher Everett

[EMAIL PROTECTED]
641-472-4178

Reply via email to