[Http-webtest-general] Re: Benchmarks
Brought to you by:
m_ilya,
richardanderson
From: Ilya M. <il...@ma...> - 2002-10-16 08:06:45
|
>>>>> On Sat, 12 Oct 2002 13:14:13 -0700 (PDT), "Dr. Tolga Yalcinkaya" <tya...@ya...> said: TY> First of all great work! Many thanks for to Ilya and TY> Richard (and other who have contributed) for putting TY> together a geat peice testing code. Thanks for you kind words. TY> I have a very simple question/request: TY> If there an easy way to generate a report that has TY> following information: TY> 1. The time it took to perform each test case. TY> 2. Total time it took to perform the whole test suite. TY> 3. Final count on successful/failed test cases TY> Now this particularly important for monitoring a TY> production web site and determining problem areas. TY> Thanks in advance for your response. HTTP::WebTest does collect this kind of statistics (in 1.99xx beta versions). Though it is not published in default report. You can read it via HTTP::WebTest API: use HTTP::WebTest; my $wt = new HTTP::WebTest; $wt->run_wtscript('test.wt'); my $i = 1; my $total = 0; for my $test (@{$self->webtest->tests}) { my $response_time = $test->response_time; $total += $response_time; print "Test #$i: response time = $response_time\n"; $i ++; } print "Total: response time = $total\n"; You can take default report plugin and hack it to output this information too. -- 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 |