In the latest “In pursuit of code quality” installment, entitled “Programmatic testing with Selenium and TestNG”, author Andrew Glover provides a tutorial on user interface testing with Selenium, an open-source Web user interface testing framework that drives a user’s Web browser when performing tests.

While programmatic testing isn’t for everyone (non-developers will likely prefer Selenium’s Fit-style tables), it does give you access to TestNG’s exceptional flexibility….

TestNG is an especially good match for Selenium because it enables you to do some things that aren’t possible using other frameworks, such as test using dependencies, rerun failed tests, and set up parametric tests with the parameters defined in separate files.

…. and also allows you to build out your test framework with DbUnit and Cargo, thus ensuring the logical repeatability of your tests.

Don’t miss out on the code quality discussion forum where you can learn first-hand about code metrics, test frameworks, and writing quality-focused code.