RE: Using Perl in QA departments

2006-06-18 Thread Shivakumar Venkatappa
 Thanks much. This is really worth to read.



From: Gabor Szabo [mailto:[EMAIL PROTECTED]
Sent: Sat 6/17/2006 12:12 PM
To: perl-qa@perl.org
Subject: Using Perl in QA departments



If anybody is interested on this list,
the slides and the examples of my 2 days course are available here:

http://www.szabgab.com/perl_in_test_automation.html

regards
   Gabor




RE: WWW::Mechanize Can't locate auto/HTML/TokeParser/get_phrase.al

2005-08-16 Thread Shivakumar Venkatappa
Hi All,

Thanks all for the responses.

Michael G Schwern was right I am using old version and issue
fixed by upgrading HTML-Parser to latest.

Thanks
Shiv


-Original Message-
From: Michael G Schwern [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 16, 2005 11:45 PM
To: Shivakumar Venkatappa
Cc: perl-qa@perl.org
Subject: Re: WWW::Mechanize Can't locate
auto/HTML/TokeParser/get_phrase.al

On Tue, Aug 16, 2005 at 06:12:35AM -0700, Shivakumar Venkatappa wrote:
> I get error
> Can't locate auto/HTML/TokeParser/get_phrase.al in @INC (@INC
contains:

What's likely happening is your installation of HTML::TokeParser is a
couple 
years old and does not have the get_phrase() method.  That weird error 
message is due to the accidental inheritance of AutoLoader from which
all 
XS modules suffer.

get_phrase was added in version 3.33 of HTML-Parser (which contains 
HTML::TokeParser).  WWW::Mechanize should have warned you that your
version
was not new enough upon installation.


-- 
Michael G Schwern [EMAIL PROTECTED]
http://www.pobox.com/~schwern
'All anyone gets in a mirror is themselves,' she said. 'But what you
gets in a good gumbo is everything.'
-- "Witches Abroad" by Terry Prachett


WWW::Mechanize Can't locate auto/HTML/TokeParser/get_phrase.al

2005-08-16 Thread Shivakumar Venkatappa
Hi,

I am having issue running WWW::Mechanize script; any help on this will
be much appreciated.

Thanks
Shiv

I get error
Can't locate auto/HTML/TokeParser/get_phrase.al in @INC (@INC contains:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at
/usr/lib/perl5/site_perl/5.8.0/HTML/Form.pm line 139

Script executed
#!/usr/bin/perl
use WWW::Mechanize;
my $mech = WWW::Mechanize->new();
$url = 'https://test/main.jsp';
$mech->get( $url );


$mech->submit_form(
form_name => 'form',
fields  => {
username=> 'admin',
password=> 'admin',
}
);

$mech->submit_form(
form_name => 'search',
fields=> { query  => 'pot of gold', },
button=> 'Search Now'
);
~