Skip Menu |

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

Report information
The Basics
Id: 2877
Status: resolved
Priority: 0/
Queue: WWW-Mechanize-Shell

People
Owner: corion [...] cpan.org
Requestors: pk-cpan [...] kailasa.net
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.26
Fixed in: 0.27



Date: Tue, 1 Jul 2003 16:37:23 -0400
From: Prakash Kailasa <pk-cpan [...] kailasa.net>
To: bug-www-mechanize-shell [...] rt.cpan.org
CC: Prakash Kailasa <pk-cpan [...] kailasa.net>
Subject: Test 14-command-identity.t fails (16 out of 253 times)
Test 14-command-identity.t fails (16 tests out of 253). WWW::Mechanize::Shell::VERSION => 0.26 'perl -v' output: This is perl, v5.8.0 built for i386-linux-thread-multi OS/Environment: Debian GNU/Linux (unstable) Thanks, /prakash -- |quark: | | The sound made by a well bred duck. |
From: Prakash Kailasa <pk-cpan [...] kailasa.net>
Forgot to attach the errors file. I stripped off all the 'ok' lines. Also, all of these errors occur on the same line of the test script (line 210). Thanks, /prakash
1..253 not ok 2 - Shell moved to the specified url for autofill # Failed test (t/14-command-identity.t at line 210) # got: 'http://kailasa2:42529/formsubmit?session=1&query=foo&cat=cat_foo&cat=cat_bar' # expected: 'http://kailasa2:42529/formsubmit' # get http://kailasa2:42529/ # autofill query Fixed foo # autofill cat Keep # fillout # submit # eval $self->agent->uri not ok 30 - Shell moved to the specified url for eval_multiline # Failed test (t/14-command-identity.t at line 210) # got: 'http://kailasa2:42557/formsubmit?session=1&query=(empty)&cat=cat_foo&cat=cat_bar' # expected: 'http://kailasa2:42557/formsubmit' # get http://kailasa2:42557/ # autofill query Keep # autofill cat Keep # fillout # submit # eval "Hello World ", # "from ",$self->agent->uri # content # eval $self->agent->uri not ok 44 - Shell moved to the specified url for eval_sub # Failed test (t/14-command-identity.t at line 210) # got: 'http://kailasa2:42571/formsubmit?session=20030511&query=(empty)&cat=cat_foo&cat=cat_bar' # expected: 'http://kailasa2:42571/formsubmit' # eval sub ::custom_today { "20030511" }; # autofill session Callback ::custom_today # autofill query Keep # autofill cat Keep # get http://kailasa2:42571/ # fillout # eval $self->agent->current_form->value("session") # submit # content # eval $self->agent->uri not ok 51 - Shell moved to the specified url for form # Failed test (t/14-command-identity.t at line 210) # got: 'http://kailasa2:42579/formsubmit?session=1&query=(empty)&cat=cat_foo&cat=cat_bar' # expected: 'http://kailasa2:42579/formsubmit' # get http://kailasa2:42579/ # form 1 # submit # eval $self->agent->uri not ok 58 - Shell moved to the specified url for formfiller_chars # Failed test (t/14-command-identity.t at line 210) # got: 'http://kailasa2:42587/formsubmit?session=1&query=fTiEM&cat=cat_foo&cat=cat_bar' # expected: 'http://kailasa2:42587/formsubmit' # eval srand 0 # autofill cat Keep # autofill query Random::Chars size 5 set alpha # get http://kailasa2:42587/ # fillout # submit # content # eval $self->agent->uri not ok 65 - Shell moved to the specified url for formfiller_date # Failed test (t/14-command-identity.t at line 210) # got: 'http://kailasa2:42595/formsubmit?session=1&query=19810816&cat=cat_foo&cat=cat_bar' # expected: 'http://kailasa2:42595/formsubmit' # eval srand 0 # autofill cat Keep # autofill query Random::Date string %Y%m%d # get http://kailasa2:42595/ # fillout # submit # content # eval $self->agent->uri not ok 72 - Shell moved to the specified url for formfiller_default # Failed test (t/14-command-identity.t at line 210) # got: 'http://kailasa2:42603/formsubmit?session=1&query=(empty)&cat=cat_foo&cat=cat_bar' # expected: 'http://kailasa2:42603/formsubmit' # autofill query Default foo # autofill cat Keep # get http://kailasa2:42603/ # fillout # submit # content # eval $self->agent->uri not ok 79 - Shell moved to the specified url for formfiller_fixed # Failed test (t/14-command-identity.t at line 210) # got: 'http://kailasa2:42611/formsubmit?session=1&query=foo&cat=cat_foo&cat=cat_bar' # expected: 'http://kailasa2:42611/formsubmit' # autofill query Fixed foo # autofill cat Keep # get http://kailasa2:42611/ # fillout # submit # content # eval $self->agent->uri not ok 86 - Shell moved to the specified url for formfiller_keep # Failed test (t/14-command-identity.t at line 210) # got: 'http://kailasa2:42619/formsubmit?session=1&query=(empty)&cat=cat_foo&cat=cat_bar' # expected: 'http://kailasa2:42619/formsubmit' # autofill query Keep foo # autofill cat Keep # get http://kailasa2:42619/ # fillout # submit # content # eval $self->agent->uri not ok 93 - Shell moved to the specified url for formfiller_random # Failed test (t/14-command-identity.t at line 210) # got: 'http://kailasa2:42627/formsubmit?session=1&query=foo&cat=cat_foo&cat=cat_bar' # expected: 'http://kailasa2:42627/formsubmit' # autofill query Random foo # autofill cat Keep # get http://kailasa2:42627/ # fillout # submit # content # eval $self->agent->uri not ok 100 - Shell moved to the specified url for formfiller_re # Failed test (t/14-command-identity.t at line 210) # got: 'http://kailasa2:42635/formsubmit?session=1&query=19810816&cat=cat_foo&cat=cat_bar' # expected: 'http://kailasa2:42635/formsubmit' # eval srand 0 # autofill cat Keep # autofill /qu/ Random::Date string %Y%m%d # get http://kailasa2:42635/ # fillout # submit # content # eval $self->agent->uri not ok 107 - Shell moved to the specified url for formfiller_word # Failed test (t/14-command-identity.t at line 210) # got: 'http://kailasa2:42643/formsubmit?session=1&query=chanter&cat=cat_foo&cat=cat_bar' # expected: 'http://kailasa2:42643/formsubmit' # eval srand 0 # autofill cat Keep # autofill query Random::Word size 1 # get http://kailasa2:42643/ # fillout # submit # content # eval $self->agent->uri not ok 142 - Shell moved to the specified url for get_value2_submit # Failed test (t/14-command-identity.t at line 210) # got: 'http://kailasa2:42683/formsubmit?session=2&query=foo&cat=cat_foo&cat=cat_bar' # expected: 'http://kailasa2:42683/formsubmit' # get http://kailasa2:42683/ # value query foo # value session 2 # submit # eval $self->agent->uri not ok 149 - Shell moved to the specified url for get_value_click # Failed test (t/14-command-identity.t at line 210) # got: 'http://kailasa2:42691/formsubmit?session=1&query=foo&submit=Go&cat=cat_foo&cat=cat_bar' # expected: 'http://kailasa2:42691/formsubmit' # get http://kailasa2:42691/ # value query foo # click submit # eval $self->agent->uri not ok 156 - Shell moved to the specified url for get_value_submit # Failed test (t/14-command-identity.t at line 210) # got: 'http://kailasa2:42699/formsubmit?session=1&query=foo&cat=cat_foo&cat=cat_bar' # expected: 'http://kailasa2:42699/formsubmit' # get http://kailasa2:42699/ # value query foo # submit # eval $self->agent->uri not ok 163 - Shell moved to the specified url for interactive_script_creation # Failed test (t/14-command-identity.t at line 210) # got: 'http://kailasa2:42707/formsubmit?session=foo&query=bar&cat=cat_foo&cat=cat_bar' # expected: 'http://kailasa2:42707/formsubmit' # eval @::list=qw(foo bar xxx) # eval no warnings "once"; *WWW::Mechanize::FormFiller::Value::Ask::ask_value = sub { my $value=shift @::list; push @{$_[0]->{shell}->{answers}}, [ $_[1]->name, $value ]; $value } # autofill cat Keep # get http://kailasa2:42707/ # fillout # submit # content # eval $self->agent->uri # Looks like you failed 16 tests of 253.
From: "Max Maischein" <corion [...] corion.net>
To: <bug-WWW-Mechanize-Shell [...] rt.cpan.org>
Subject: Re: [cpan #2877] Test 14-command-identity.t fails (16 out of 253 times)
Date: Tue, 1 Jul 2003 23:52:32 +0200
RT-Send-Cc:
This problem is caused by the test and/or HTML::Form / WWW::Mechanize creating/returning a different query string. The attached test fixes that problem - there is no functional problem with WWW::Mechanize::Shell. The attached test will be included in v0.27. Thanks for the report, -max

Message body is not shown because sender requested not to inline it.