12.5. Fetching a not-existing static pageExample 12-2. examples/www/static_bad.t #!/usr/bin/perl use strict; use warnings; use Test::More tests => 1; use LWP::Simple; my $home = get 'http://test_server:8080/xx'; ok $home, 'There is a response'; Fetch a page and check if there is response. $ perl static_bad.t not ok 1 - There is a response # Failed test (static_bad.t at line 10) 1..1 # Looks like you failed 1 tests of 1.
|
Follow me: