Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: When Test Suites Attack

by exussum0 (Vicar)
on Nov 02, 2005 at 16:03 UTC ( [id://504970]=note: print w/replies, xml ) Need Help??


in reply to When Test Suites Attack

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://504970]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-18 02:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found