Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Test Driving User Interfaces

Test Driving User Interfaces

Test Driving business and persistence logic has been proven to be an effective technique for incremental design, reduced complexity, and easy automated regression testing. Many teams struggle with how to achieve these same benefits for User Interfaces. The traditional notion is that a UI is too fragile and hard to test until it is already built.

This session will consist of a brief explanation of the Page Object pattern, followed by a live coding demo showing the integration of Cucumber-JVM with Selenium via Page Objects. Code is available at https://github.com/nhajratw/test-driving-user-interfaces

Nayan Hajratwala

January 11, 2013
Tweet

More Decks by Nayan Hajratwala

Other Decks in Programming

Transcript

  1. What we’re not test driving • User Experience • To

    the pixel placement (though possible) 5 Monday, January 14, 13
  2. Page Object • An object that represents a page or

    a section of a page for testing. • A single source for knowledge about the page. 6 Monday, January 14, 13
  3. Alternatives • Java: Roll your own • Groovy: Geb •

    Ruby: page-object gem 8 Monday, January 14, 13