Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

Dear Master Monks,
I have a web application I need to test, and wanted some advice before I start writing. I have two ideas that follow;

1. Custom Module:

  • Contains all the functions I would like to test e.g. uploads, logging in, navigation etc.
  • Tested via simple ok tests with Test::Simple or if it gets a bit more complicated, via Test::More
  • Seperate program that uses this module to run the tests
  • Create Module with Module::Starter

2. Perl Test files:

  • Each .t is a test for a feature of the web application
  • Seperate program that calls prove to run them all

I have recently bought Perl Testing: A Developer's Notebook and Perl Best Practices, so they will probably help me out on the finer points ;-)

I think that maybe 1. would be the best way to go, as it would be a proper module, easier to manage, but might duplicate testing, i.e. testing the test functions. But then again, you can't test enough.

I will probably be using a bit of WWW::Mechanize and HTTP::Recorder to start me off.

I know a lot of Monks would have been in the same situation as me at some point, so if one of you kind souls would put me on the right path, I would be very grateful.


Walking the road to enlightenment... I found a penguin and a camel on the way.....
Fancy a Just ask!!!

In reply to Application Testing: Custom Module or Perl Test Files? by ghenry

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others making s'mores by the fire in the courtyard of the Monastery: (12)
    As of 2019-10-17 15:16 GMT
    Find Nodes?
      Voting Booth?