Well,
Loadrunner costs thousands and thousands of dollar for each computer you
want to simulate. The advantage is that it also has some nice reporting and
statistical analysis tools.
WebTest is free, you can use some other Perl modules to do any stat
analysis, but you will have a week or so work to do. I've done something
similar with Perl for a UNIX app. that worked really well and then I used
the GD graphing module and my own statistical routines (just mean, max, ..)
Doing concurrent things with Perl is sometimes difficult because fork()
isn't normally built in, so you will need to get around that with shell
scripts or compile Perl with multithreading, ...
Ed Fancher
Ethercube Solutions
http://www.ethercube.net
PHP, Perl, MySQL, Javascript solutions.
----- Original Message -----
From: "Jieming Wang" <Jie...@en...>
To: <htt...@li...>
Sent: Friday, February 28, 2003 8:31 PM
Subject: [Http-webtest-general] RE: Http-webtest-general digest, Vlol 1
#69 - 3 msgs
> Hello everyone,
>
> A few questions:
>
> -How do we compare wt with loadrunner ?
> -is it possible to use wt to do load testing ?
>
> Basically, there are 2 scenarios:
> 1) login once and access/hit the page in a loop (or repeated, see 10,000
> times);
> 2) from within one script, login multiple times concurrently and hit the
> resources;
>
> Thanks.
> Jieming
>
> -----Original Message-----
> From: htt...@li...
> [mailto:htt...@li...]
> Sent: Tuesday, January 28, 2003 3:07 PM
> To: htt...@li...
> Subject: Http-webtest-general digest, Vol 1 #69 - 3 msgs
>
>
> Send Http-webtest-general mailing list submissions to
> htt...@li...
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/http-webtest-general
> or, via email, send a message with subject or body 'help' to
> htt...@li...
>
> You can reach the person managing the list at
> htt...@li...
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Http-webtest-general digest..."
>
>
> Today's Topics:
>
> 1. control the test flow in wtscript? (u.b...@gm...)
> 2. Re: control the test flow in wtscript? (il...@ma...)
> 3. Re: control the test flow in wtscript? (u.b...@gm...)
>
> --__--__--
>
> Message: 1
> Date: Tue, 28 Jan 2003 17:14:00 +0100 (MET)
> From: u.b...@gm...
> To: htt...@li...
> Subject: [Http-webtest-general] control the test flow in wtscript?
>
> Hi,
> is there an elegant solution for controlling the test flow within a
> wtscript?
> Is it possible to skip testcases or explicitely to define the successor
> testcase?
>
> I want to run dynamic tests whereby the sequence of testcases may vary
> depending on a response.
>
> in a wtscript there are 6 tests listed: A, B, C, D, E, F
> in general these tests run in this sequence
>
> is it possible to define a test flow like
>
> A, B, C (if X then D else E, F)
> X may be computed in a on_response hook
>
> if this is not possible (yet) I would try to implement theses tests
> splitting the flow into three scripts ((A,B,C), (D), (E,F))
> and managing the flow in the calling perl script...
> just another (related) question:
>
> <example_code>
> $webtest->run_wtscript('case1');
> my $content = $webtest->current_response->content;
> my ( $Next_Start_URL ) = $content =~ /action='(.+?)'/;
> if ( $content =~ /something/ ) {
> $webtest->run_wtscript('case2.1');
> }
> else {
> $webtest->run_wtscript('case2.2');
> }
> </example_code>
>
> is there a possibility to make the $Next_Start_URL
> available in the lateron called wtscripts case2.1
> or case2.2?
>
> sorry if the answers to my questions are obvious,
> HTTP::WebTest is new for me.
>
> Thanks for any help,
> Udo
>
>
>
>
>
>
>
>
> --
> +++ GMX - Mail, Messaging & more http://www.gmx.net +++
> NEU: Mit GMX ins Internet. Rund um die Uhr fur 1 ct/ Min. surfen!
>
>
>
> --__--__--
>
> Message: 2
> From: il...@ma...
> To: u.b...@gm...
> Cc: htt...@li...
> Date: Tue, 28 Jan 2003 19:51:48 +0300
> Subject: [Http-webtest-general] Re: control the test flow in wtscript?
>
> >>>>> "UB" == u burghardt <u.b...@gm...> writes:
>
> UB> Hi,
> UB> is there an elegant solution for controlling the test flow within a
> UB> wtscript?
> UB> Is it possible to skip testcases or explicitely to define the
successor
> UB> testcase?
>
> UB> I want to run dynamic tests whereby the sequence of testcases may vary
> UB> depending on a response.
>
> UB> in a wtscript there are 6 tests listed: A, B, C, D, E, F
> UB> in general these tests run in this sequence
>
> UB> is it possible to define a test flow like
>
> UB> A, B, C (if X then D else E, F)
> UB> X may be computed in a on_response hook
>
> UB> if this is not possible (yet) I would try to implement theses tests
> UB> splitting the flow into three scripts ((A,B,C), (D), (E,F))
> UB> and managing the flow in the calling perl script...
> UB> just another (related) question:
>
> No, currently HTTP-WebTest doesn't have builtin support for such
> control of test flow. Though splitting test case into parts will work.
>
> UB> <example_code>
> UB> $webtest->run_wtscript('case1');
> UB> my $content = $webtest->current_response->content;
> UB> my ( $Next_Start_URL ) = $content =~ /action='(.+?)'/;
> UB> if ( $content =~ /something/ ) {
> UB> $webtest->run_wtscript('case2.1');
> UB> }
> UB> else {
> UB> $webtest->run_wtscript('case2.2');
> UB> }
> UB> </example_code>
>
> UB> is there a possibility to make the $Next_Start_URL
> UB> available in the lateron called wtscripts case2.1
> UB> or case2.2?
>
> You can use global vars to pass this information into the next test
> case:
>
> test_name = N/A
> url = "$main::Next_Start_URL"
> end_test
>
> this example assumes that $Next_Start_URL is declared in package main
> and it is a global var (i.e. not 'my').
>
> --
> Ilya Martynov, il...@ip... CTO IPonWEB (UK) Ltd Quality Perl
> Programming and Unix Support UK managed @ offshore prices -
> http://www.iponweb.net Personal website - http://martynov.org
>
>
> --__--__--
>
> Message: 3
> Date: Tue, 28 Jan 2003 18:28:29 +0100 (MET)
> From: u.b...@gm...
> To: htt...@li...
> Subject: [Http-webtest-general] Re: control the test flow in wtscript?
>
> > UB> <example_code>
> > UB> $webtest->run_wtscript('case1');
> > UB> my $content = $webtest->current_response->content;
> > UB> my ( $Next_Start_URL ) = $content =~ /action='(.+?)'/;
> > UB> if ( $content =~ /something/ ) {
> > UB> $webtest->run_wtscript('case2.1');
> > UB> }
> > UB> else {
> > UB> $webtest->run_wtscript('case2.2');
> > UB> }
> > UB> </example_code>
> >
> > UB> is there a possibility to make the $Next_Start_URL
> > UB> available in the lateron called wtscripts case2.1
> > UB> or case2.2?
> >
> > You can use global vars to pass this information into the next test
> > case:
> >
> > test_name = N/A
> > url = "$main::Next_Start_URL"
> > end_test
> >
> > this example assumes that $Next_Start_URL is declared in package main
> > and it is a global var (i.e. not 'my').
>
> at least for my special question also
> $webtest->run_wtscript('case2.1', { url => $Next_Start_URL} );
> will work (I found out), but your solution is more general and can be used
> for passing any variables
>
> thanks for the fast help,
> Udo
>
> --
> +++ GMX - Mail, Messaging & more http://www.gmx.net +++
> NEU: Mit GMX ins Internet. Rund um die Uhr fur 1 ct/ Min. surfen!
>
>
>
>
> --__--__--
>
> _______________________________________________
> Http-webtest-general mailing list
> Htt...@li...
> https://lists.sourceforge.net/lists/listinfo/http-webtest-general
>
>
> End of Http-webtest-general Digest
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Http-webtest-general mailing list
> Htt...@li...
> https://lists.sourceforge.net/lists/listinfo/http-webtest-general
|