Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 13717
Status: resolved
Priority: 0/
Queue: Test-WWW-Mechanize

People
Owner: Nobody in particular
Requestors: steve [...] fisharerojo.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.06
Fixed in: (no value)



Subject: t/get_ok.t test failures in 1.06
I get several test failures from t/get_ok.t in version 1.06. ok 1 - use Test::WWW::Mechanize; ok 2 - HTTP Server started HTTP::Server::Simple: You can connect to your server at http://localhost:13432/ ok 3 - The object isa Test::WWW::Mechanize ok 4 - sanity check: we can load goodlinks.html ok 5 - Gets existing URI and reports success not ok 6 - get_ok() should only return a scalar # Failed test (t/get_ok.t at line 34) # got: 'HTTP::Response' # expected: '' ok 7 - And the result should be true not ok 8 - sanity check: we can't load NONEXISTENT.html # Failed test (t/get_ok.t at line 41) not ok 9 - Fails to get nonexistent URI and reports failure # Failed test (t/get_ok.t at line 48) # STDOUT is: # ok 1 - Try to get bad URL # # not: # not ok 1 - Try to get bad URL # # as expected # STDERR is: # # not: # # Failed test (t/get_ok.t at line 47) # # 500 # # Can't connect to wango.nonexistent.xx-only-testing:80 (Bad hostname 'wango.nonexistent.xx-only-testing') # # as expected not ok 10 - get_ok() should only return a scalar # Failed test (t/get_ok.t at line 50) # got: 'HTTP::Response' # expected: '' not ok 11 - And the result should be false # Failed test (t/get_ok.t at line 51) FAILED tests 6, 8-11 Failed 5/11 tests, 54.55% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/get_ok.t 11 5 45.45% 6 8-11 Failed 1/1 test scripts, 0.00% okay. 5/11 subtests failed, 54.55% okay.
From: SMPETERS [...] cpan.org
Upgrading to WWW-Mechanize-1.22 and trying Test-WWW-Mechanize-1.12, and bleadper, the situation is much worse. t/00load................ok 1/1# Testing Test::WWW::Mechanize 1.12, Perl 5.009005, /tmp/ bleadperl/bin/perl5.9.5 t/00load................ok t/content_contains......ok t/content_lacks.........ok t/follow_link_ok........NOK 4/6 # Failed test 'Go after first link' # at t/follow_link_ok.t line 29. # 500 Can't connect to localhost:13432 (connect: Connection refused) # Content-Type: text/plain # Client-Date: Sun, 04 Mar 2007 23:28:13 GMT # Client-Warning: Internal response # # 500 Can't connect to localhost:13432 (connect: Connection refused) t/follow_link_ok........FAILED test 4 Failed 1/6 tests, 83.33% okay t/followable_links......ok t/get_ok-parms..........ok t/get_ok................NOK 5/11 # Failed test 'Gets existing URI and reports success' # at t/get_ok.t line 35. # STDOUT is: # not ok 1 - Try to get goodlinks.html # # not: # ok 1 - Try to get goodlinks.html # # as expected # STDERR is: # # Failed test 'Try to get goodlinks.html' # # at t/get_ok.t line 34. # # 500 # # Can't connect to localhost:13432 (connect: Connection refused) # # not: # # as expected t/get_ok................NOK 7/11 # Failed test 'And the result should be true' # at t/get_ok.t line 37. t/get_ok................NOK 9/11 # Failed test 'Fails to get nonexistent URI and reports failure' # at t/get_ok.t line 50. # STDERR is: # # Failed test 'Try to get bad URL' # # at t/get_ok.t line 49. # # 500 # # Can't connect to wango.nonexistent.xx-only-testing:80 (connect: Connection refused) # # not: # /#\s+Failed\ test.*?\n?.*?at\ t\/get_ok\.t line 49.*\n?/ # # # 500 # # # Can't connect to wango.nonexistent.xx-only-testing:80 (Bad hostname 'wango.nonexistent.xx-only-testing') # # as expected t/get_ok................FAILED tests 5, 7, 9 Failed 3/11 tests, 72.73% okay t/has_tag...............ok t/link_content..........NOK 5/9 # Failed test 'Handles All page links contents successful' # at t/link_content.t line 40. # STDOUT is: # not ok 1 - Checking all page links contain: Test # # not: # ok 1 - Checking all page links contain: Test # # as expected # STDERR is: # # Failed test 'Checking all page links contain: Test' # # at t/link_content.t line 39. # # goodlinks.html # # badlinks.html # # goodlinks.html # # not: # # as expected t/link_content..........NOK 9/9 # Failed test 'Handles link unlike content found' # at t/link_content.t line 68. # STDOUT is: # ok 1 - Checking all page link unlike content failures # # not: # not ok 1 - Checking all page link unlike content failures # # as expected # STDERR is: # # not: # /#\s+Failed\ test.*?\n?.*?at\ t\/link_content\.t line 67.*\n?/ # # # goodlinks.html # # # badlinks.html # # # goodlinks.html # # as expected t/link_content..........FAILED tests 5, 9 Failed 2/9 tests, 77.78% okay t/link_status...........NOK 4/8 # Failed test 'Handles All Links successful' # at t/link_status.t line 33. # STDOUT is: # not ok 1 - Checking all links status are 200 # # not: # ok 1 - Checking all links status are 200 # # as expected # STDERR is: # # Failed test 'Checking all links status are 200' # # at t/link_status.t line 32. # # goodlinks.html # # badlinks.html # # goodlinks.html # # not: # # as expected t/link_status...........NOK 6/8 # Failed test 'Handles bad links' # at t/link_status.t line 46. # STDOUT is: # ok 1 - Checking all links some bad # # not: # not ok 1 - Checking all links some bad # # as expected # STDERR is: # # not: # /#\s+Failed\ test.*?\n?.*?at\ t\/link_status\.t line 45.*\n?/ # # # goodlinks.html # # as expected t/link_status...........NOK 8/8 # Failed test 'Handles all links mismatch' # at t/link_status.t line 59. # STDOUT is: # ok 1 - Checking all links not 200 # # not: # not ok 1 - Checking all links not 200 # # as expected # STDERR is: # # not: # /#\s+Failed\ test.*?\n?.*?at\ t\/link_status\.t line 58.*\n?/ # # # goodlinks.html # # as expected t/link_status...........FAILED tests 4, 6, 8 Failed 3/8 tests, 62.50% okay t/links_ok..............NOK 4/8 # Failed test 'Handles All Links successful' # at t/links_ok.t line 33. # STDOUT is: # not ok 1 - Checking all links successful # # not: # ok 1 - Checking all links successful # # as expected # STDERR is: # # Failed test 'Checking all links successful' # # at t/links_ok.t line 32. # # goodlinks.html # # badlinks.html # # goodlinks.html # # not: # # as expected t/links_ok..............NOK 5/8 # Failed test 'Specified link' # at t/links_ok.t line 35. # goodlinks.html t/links_ok..............NOK 6/8 # Failed test 'Specified link list' # at t/links_ok.t line 37. # goodlinks.html # badlinks.html t/links_ok..............NOK 7/8 # Failed test 'Handles bad links' # at t/links_ok.t line 49. # STDOUT is: # ok 1 - Checking all links some bad # # not: # not ok 1 - Checking all links some bad # # as expected # STDERR is: # # not: # /#\s+Failed\ test.*?\n?.*?at\ t\/links_ok\.t line 48.*\n?/ # # # bad1.html # # # bad2.html # # # bad3.html # # as expected t/links_ok..............FAILED tests 4-7 Failed 4/8 tests, 50.00% okay t/new...................ok t/page_links_content....NOK 5/9 # Failed test 'Handles All page links contents successful' # at t/page_links_content.t line 39. # STDOUT is: # not ok 1 - Checking all page links contain: Test # # not: # ok 1 - Checking all page links contain: Test # # as expected # STDERR is: # # Failed test 'Checking all page links contain: Test' # # at t/page_links_content.t line 38. # # goodlinks.html # # badlinks.html # # goodlinks.html # # not: # # as expected t/page_links_content....NOK 9/9 # Failed test 'Handles link unlike content found' # at t/page_links_content.t line 67. # STDOUT is: # ok 1 - Checking all page link unlike content failures # # not: # not ok 1 - Checking all page link unlike content failures # # as expected # STDERR is: # # not: # /#\s+Failed\ test.*?\n?.*?at\ t\/page_links_content\.t line 66.*\n?/ # # # goodlinks.html # # # badlinks.html # # # goodlinks.html # # as expected t/page_links_content....FAILED tests 5, 9 Failed 2/9 tests, 77.78% okay t/page_links_ok.........NOK 4/5 # Failed test 'Handles All page links successful' # at t/page_links_ok.t line 33. # STDOUT is: # not ok 1 - Checking all page links successful # # not: # ok 1 - Checking all page links successful # # as expected # STDERR is: # # Failed test 'Checking all page links successful' # # at t/page_links_ok.t line 32. # # goodlinks.html # # badlinks.html # # goodlinks.html # # not: # # as expected t/page_links_ok.........NOK 5/5 # Failed test 'Handles link not found' # at t/page_links_ok.t line 44. # STDOUT is: # ok 1 - Checking some page link failures # # not: # not ok 1 - Checking some page link failures # # as expected # STDERR is: # # not: # /#\s+Failed\ test.*?\n?.*?at\ t\/page_links_ok\.t line 43.*\n?/ # # # bad1.html # # # bad2.html # # # bad3.html # # as expected t/page_links_ok.........FAILED tests 4-5 Failed 2/5 tests, 60.00% okay t/pod-coverage..........ok t/pod...................ok t/stuff_inputs..........ok Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------ - t/follow_link_ok.t 6 1 4 t/get_ok.t 11 3 5 7 9 t/link_content.t 9 2 5 9 t/link_status.t 8 3 4 6 8 t/links_ok.t 8 4 4-7 t/page_links_content.t 9 2 5 9 t/page_links_ok.t 5 2 4-5 Failed 7/17 test scripts. 17/106 subtests failed.
See RT #26602 for the fixx.