Glad I could help. One thing you'd have most likely noticed if you were to run those 66 separate functions is an "RPC Error" that would stop your testing cold. Eventually IE can't open/close fast enough to keep up with the script, and basically crashes itself. So, you're already one step ahead on best practices there.
I generally keep my test cases organized by objective or method of testing. For instance, if it's a simple navigation test, I'll keep all the sidebar navigation element testing in one case, and the main div navigation elements in another, etc. If I'm testing forms, each form will get a separate case, etc. However, I also have one script that checks our dynamically created pages for a specific link -- I query the DB for the pages that should exist and check each for the target link in a loop. That single test case has around 16,000 assertions because of that loop. The one thing that makes this test remain useful is effective logging and error reporting. Thanks, Adam -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lauren Sent: Monday, June 18, 2007 3:41 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Method Precedence confusion Yes Indeed! Your reply was a great help! Your explanation was so clear - I don't know how I missed that in the first place! I have redesigned my tests. There are only 4 tests now with 66 assertions only because I didn't want my browser to open and close 66x. Now it opens and closes 4 times. It does bring up an interesting discussion on method organization "best practices". For example, is it better to have one or two assertions per test case, or 4 test cases with 66 assertions between them... Anyway. I am all set for now...Onward and upward! Many thanks to you, Adam. _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general