Re: [Catalyst] Automated testing of Captcha?

2008-01-28 Thread Matt S Trout
On Sat, Jan 26, 2008 at 02:07:04PM +0100, Sébastien Wagener wrote: > On Fri, 2008-01-25 at 06:53 +, Matt S Trout wrote: > > If you're outside, then either forcing the captcha to a particular string or > > disabling it entirely are probably your only options - but that wasn't the > > case here i

Re: [Catalyst] Automated testing of Captcha?

2008-01-26 Thread Sébastien Wagener
On Fri, 2008-01-25 at 06:53 +, Matt S Trout wrote: > If you're outside, then either forcing the captcha to a particular string or > disabling it entirely are probably your only options - but that wasn't the > case here if you read carefully :) > For me, it was important to test whether the sa

Re: [Catalyst] Automated testing of Captcha?

2008-01-24 Thread Matt S Trout
On Thu, Jan 24, 2008 at 12:07:15PM +0100, Michele Beltrame wrote: > Hi! > > > He wanted to get $c->captcha_string from *outside* of the Catalyst app. > > You don't have $c there. Also, he never said he was using > > Catalyst::Plugin::Captcha. > > Well, if he's completely outside the App, then th

Re: [Catalyst] Automated testing of Captcha?

2008-01-24 Thread Michele Beltrame
Hi! > He wanted to get $c->captcha_string from *outside* of the Catalyst app. > You don't have $c there. Also, he never said he was using > Catalyst::Plugin::Captcha. Well, if he's completely outside the App, then this is likely not possible at all (if the CAPTCHA is well crafted). Isn't "no-acc

Re: [Catalyst] Automated testing of Captcha?

2008-01-21 Thread Jonathan Rockway
On Tue, 2008-01-22 at 06:27 +0100, Yves Räber wrote: > The captcha value can be accessed here : $c->captcha_string > > >From the CPAN Documentation : > http://search.cpan.org/dist/Catalyst-Plugin-Captcha/lib/Catalyst/Plugin/Captcha.pm > > #validate with CP::FormValidator::Simple > sub do_post

Re: [Catalyst] Automated testing of Captcha?

2008-01-21 Thread Yves Räber
The captcha value can be accessed here : $c->captcha_string >From the CPAN Documentation : http://search.cpan.org/dist/Catalyst-Plugin-Captcha/lib/Catalyst/Plugin/Captcha.pm #validate with CP::FormValidator::Simple sub do_post : Local { my ($self, $c) = @_; $c->form( validate => [

Re: [Catalyst] Automated testing of Captcha?

2008-01-21 Thread Jonathan Rockway
On Mon, 2008-01-21 at 14:19 -0700, Christopher Dorman wrote: > I am using T::W::M::C to test a page that has a (required) Captcha > field. In order for it to pass validation, the correct value needs to > be passed in. > > Is it possible to grab the "correct" captcha value in the test script so

[Catalyst] Automated testing of Captcha?

2008-01-21 Thread Christopher Dorman
I am using T::W::M::C to test a page that has a (required) Captcha field. In order for it to pass validation, the correct value needs to be passed in. Is it possible to grab the "correct" captcha value in the test script so that validation can succeed, or do we need to set some environment v