|
Hi,
You cannot specify in ab.exe any parameter (other
than QUERY_STRING of course). What you need to do, is to write yourself a single
script in perl that makes a series of tests. I recommend the
following:
1. Write a perl script that can take the necessary
parameters from QUERY_STRING or that has a list of different usernames and
passwords to be taken randomly.
2. Organize your script in subrutines for every
task (logins, queries, updates, etc).
3. Create a master subrutine that starts by calling
in a fixed order every task, and then starts calling your subrutines in a random
way, several times.
4. Call that script from ab.exe
You can even log to a text file (or a temporary
table in your DB would be better) the start time and end time of every
subrutine, along with the whole script start and end times. This way, you'll be
able to measure where your tasks need improvement.
Make your script so it doesn't need cookies or
browser related stuff. That's my reocomendation.
However, if you still want to test the whole
process as a real user browsing the site, then make a script using the perl
module LWP::UserAgent. You need to read the documentation, but through that
module, you can emulate a real browser, with cookies and ssl if necessary. You
can get urls and post forms. Just like a browser would. However, this would need
you to read several documents about it (your perl distribution comes with them),
and certain level of regular expresion to read the asnwers. Also, SSL protocol
is supported only if you have SSLeay, wich doesn't come with the standar
distribution. You can install it with ppm.exe using a seconday repository (http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?urn:/PPMServer58 is
an excelent place to get modules that you can't find in Active
State).
I hope this helps. :-)
Paco.
|
_______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
