Check this out..
An article on automated testing best practices: http://www.autotester.com/content/pdfs/BPG-pdf.PDF