On Wed, Jan 12, 2011 at 11:17 AM, Doug Sparling <[email protected]> wrote:
> If you're automating your tests, I'd go with something like the Selenium
> library. I haven't done much Perl for three or four years, so I can only
> speak from experience that's non-Perl related. We used Selenium (and
> Cucumber/Webrat, as at the time I was doing RoR) for automated integration
> testing, testing forms, and TDD/BDD. If it's off the cuff/simple testing,
> I'd use curl.

When you used Selenium did you do form testing? I am not sure what all
needs to be tested.

I currently have this(Test::WWW::Mechanize):
$mech->get_ok('http://localhost:3000/form');
$mech->title_is('AppName', 'Make sure were on the AppName page');
$mech->submit_form_ok({form_number => 1, fields => { name => 'test'
}}, 'adding a name worked');

But if I change submit_form_ok to (the test still passes even though I
didn't pass in the name field):
$mech->submit_form_ok({form_number => 1}, 'adding a name shouldn''t work');

Jonathan
_______________________________________________
kc mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/kc

Reply via email to