| HTTP-WebTest documentation | Contained in the HTTP-WebTest distribution. |
HTTP::WebTest::Plugin::Delay - Pause before running test
plugins = ( ::Delay )
test_name = Name
delay = 10
....
end_test
This plugin module lets you specify pauses before running specific tests in the test sequence.
Duration of pause (in seconds) before running test.
Any number greater that zero.
Copyright (c) 2002-2003 Duncan Cameron. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
HTTP::WebTest::API (HTTP::WebTest::API)
HTTP::WebTest::Plugins (HTTP::WebTest::Plugins)
| HTTP-WebTest documentation | Contained in the HTTP-WebTest distribution. |
# $Id: Delay.pm,v 1.4 2003/03/02 11:52:09 m_ilya Exp $ package HTTP::WebTest::Plugin::Delay;
use strict; use base qw(HTTP::WebTest::Plugin); use Time::HiRes qw(sleep);
sub param_types { return q(delay scalar); } sub prepare_request { my $self = shift; if(my $delay = $self->test_param('delay')) { sleep($delay); } }
1;