| [reply] |
Perl would be an excellent choice for doing performance tests on your web applications. You can use the various LWP modules to build HTTP requests and go from there. | [reply] |
Perl is a generally excellent language for gluing applications
together for the purpose of testing them. For your application,
it sounds like you want an automated web client that fetches pages,
stuffs them with info, and submits them. There are a number of
CPAN modules that help you do just this.
I have used LWP::Simple to good effect. Here is a
snippet that gets a weather web page:
use LWP::Simple;
my $state = shift;
my $url_base = 'http://iwin.nws.noaa.gov/iwin/';
$state = uc $state;
# get the raw HTML page for $state
my $url = lc($url_base . "$state/zone.html");
my $raw_data = get($url);
There are many other LWP modules that offer great flexibility in
web programming.
-Mark | [reply] [d/l] |
Test Automation is now my job, and I can tell you that my tasks are much easier accomplished with Perl than any of the other languages I have been using which include TCL\Expect, and VB (*shudder*), as well as a couple proprietary ones: Visual Test, based on VB and WinRunner, based loosly on C.
I still use the others for tasks which they are superior for but everything is glued together with Perl and Perl is the bulk of my new code.
"Nothing is sure but death and taxes" I say combine the two and its death to all taxes! | [reply] |
Biased community here. Yes, Perl is a good tool for this. Use LWP and see examples about UserAgent to see how to store cookie and session information. | [reply] |
Definitely. With Perl's amazing text munging capabilities and the LWP modules it can make things a snap.
You might also want to check out this Web Application Test Suite Generator.
-Lee
"To be civilized is to deny one's nature." | [reply] |