webbot -timeout 3 -l file-l-timeout.log

Hello again :)
I have another problem. Its: how to simulate timeout? I have following timeout.php script:

<?php

$timeout = 10;

sleep($timeout);
echo "We waited $timeout s.";

?>

and when running command:

webbot -n -depth 10 -prefix http://localhost.localdomain/test/ -timeout 3 -l file-l-timeout.log http://localhost.localdomain/test/index.html

I can see, that webbot is waiting 10 secs (not 3 as specified with "-timeout" option). When command ends, there is a following line in file-l-timeout.log:

...
localhost - - [Fri, 01 Dec 2006 11:02:53] GET http://localhost.localdomain/test/timeout.php 200 15
...

Will be happy for any comments.

Thanks,
Jan



--
Jan Hutar   Quality Assurance Engineer
jhutar@redhat.com        Red Hat, Inc.

Received on Friday, 1 December 2006 10:13:23 UTC