Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Someone spoke about it earlier, but I'll chime in knowing little about what anyone else has said beyond that.

Hopefully, you've separated out the logic of manipulating some data and performing an action upon it, from the layer. Your unit tests should be as simple as possible, and not dealing w/ your web layer - your presentation layer. It makes your tests simpler w/o debugging the html, the presentation layer AND the business layer.

It sounds like what you are talking about is interface testing, or end to end testing. Unit testing programmatically will be a bitch. What's worse is, you won't be testing the layout, the JS involved, form elements rendering - text area instead text field, radio button instead of checkboxes. There are tools, though I don't know them off the top of my head, to make IE and Firefox emulate a user browsing around. Something like, http://www.worksoft.com/ContentDisplay/G11/G11L60.asp, though I have no clue of the quality of that particular piece. Just an example of what you should look for.

----
Give me strength for today.. I will not talk it away..
Just for a moment.. It will burn through the clouds.. and shine down on me.


In reply to Re: When Test Suites Attack by exussum0
in thread When Test Suites Attack by Ovid

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-24 02:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found