Results 1 to 5 of 5
  1. #1
    Join Date
    February 1st, 2006
    Perl Test Scripts
    I want to learn how to write scripts in perl for testing other applications or the code. I have some perl programming books, but i cant figure how to write scripts for testing other applications using that.

    Could someone help me on this or tell me the sites or free books that are available online that can help me in this?

    Thanks & Regards,

  2. #2
    ABW Ambassador cusimano's Avatar
    Join Date
    January 18th, 2005
    Toronto, Canada
    What do you mean that you want to write a perl script to test "other applications or the code"?

    The perl interpreter itself has a built-in syntax checker. For example, to test a file you would type the command:

    perl -cW

    Options start with a - (hyphen). The c option causes the syntax of the specified perl script to be checked rather than running the specified perl script. And the W (capital W) option enables all possible warnings to be displayed.

    Note that all the scripts that we make are encoded and will not return any useful results from "perl -cW".

    See also:

    Yours truly,
    Cusimano.Com Corporation
    per: David Cusimano

  3. #3
    Join Date
    February 1st, 2006
    Perl Test Scripts
    To test other applications i meant to test applications other than perl, ie;to test applications like PHP.

  4. #4
    I like traffic lights
    Join Date
    January 18th, 2005
    Southern hemisphere - away from Fukushima
    So you want to write an application in PERL that makes queries to a PHP-based website, to test for??????

  5. #5
    Member SeanW's Avatar
    Join Date
    July 28th, 2005
    There's a Test::WWW::Mechanize module that lets you build perl test cases using the mech interface. So you'd write a test case that loads a page, checks for the elements you want, maybe follows some links, etc. Put that under a Test::Harness and then you can group multiple tests under a nice interface. Both of these are on CPAN, and have good documentation.

    I've also been reading PHP Hacks from O'Reilly, and the author has a few hacks on how to do unit testing in PHP. The book isn't handy now, but you might consider having a look.


  6. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Replies: 0
    Last Post: February 11th, 2012, 06:06 PM
  2. Replies: 0
    Last Post: January 19th, 2011, 09:22 AM
  3. Perl Test Scripts
    By guest in forum Scripts
    Replies: 2
    Last Post: February 1st, 2006, 10:40 PM
  4. Anyone come across any free affiliate management Perl scripts?
    By m3p in forum Starting an Affiliate Program & Merchant Q&A
    Replies: 2
    Last Post: May 28th, 2003, 07:59 PM
  5. Free Affiliate Management Perl Scripts?
    By m3p in forum Programming / Datafeeds / Tools
    Replies: 1
    Last Post: May 23rd, 2003, 09:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts