Nilson Santos Figueiredo Junior wrote: > On 6/28/06, Eduardo Oliveros <[EMAIL PROTECTED]> wrote: >> When you create a Catalyst application some tests are created also. >> I thought calling the Controller actions could be performed by the >> testing framework... (without using a browser)... >> I guess I was wrong :) > > Yes, it can be performed without using a browser. > If you've at least tried running those test you'd have seen it. > > Also, if you were really up to it, you could write something like a > Catalyst::Engine::Tk and have and have a somewhat weird URI-based Tk > handling (i.e. each of your widgets actions would be described by an > URI). It just doesn't make much sense since Catalyst is geared towards > web development, but perfectly possible.
For just a GET request on a URL, the myapp_test.pl script that's generated along with the rest should do the trick. For programmatically calling stuff, look at Catalyst::Test and Test::WWW::Mechanize::Catalyst -- Matt S Trout Offering custom development, consultancy and support Technical Director contracts for Catalyst, DBIx::Class and BAST. Contact Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ + _______________________________________________ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/