Recommended: Sing it, brah! 5 fabulous songs for developers
JW's Top 5
Optimize with a SATA RAID Storage Solution
Range of capacities as low as $1250 per TB. Ideal if you currently rely on servers/disks/JBODs
Page 5 of 5
The Page Objects pattern, well supported by Selenium 2/WebDriver in particular, is an excellent choice for ATDD tests. High-level acceptance criteria need to be expressed in high-level business terms (the "what"), and then implemented under the hood using a set of well-structured, maintainable page objects. For example, an automated acceptance test will be expressed in business terms, and implemented as a series of steps. Each step will make use of page objects to interact with the web application. These levels of abstraction make the acceptance tests considerably more stable and maintainable.
Defining and automating your acceptance criteria up front makes a lot of sense. Not only does it provide clear goals for developers, it also gives excellent visibility into what feature are being implemented, how they will work, and how the project as a whole is progressing. And, as a bonus, ATDD will also provide you with a broad set of regression tests.
Many open source tools exist to help you implement an ATDD strategy in your project -- see Resources for a listing of the ones discussed in this article. While you can use conventional unit testing tools for ATDD, dedicated ATDD tools provide a stronger emphasis on communication and reporting, which are key parts of the ATDD approach. And for web applications, automated testing tools based on the Page Objects pattern are an excellent choice when it comes to implementing the tests themselves.
Read more about Tools & Methods in JavaWorld's Tools & Methods section.
Tools discussed in this article
More from JavaWorld