PuttingSeleniumInTheRightPlace

From CitconWiki
Revision as of 06:44, 19 September 2009 by 80.13.242.45 (Talk) (numbering)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

AM suggested not using page objects but focusing on the goals-activities-tasks

  1. Goals: Buy a book
  2. Activities: Add the following items to the cart
  3. Tasks: click this, check this, open that...

Activities span multiple pages and people think about the functionality in terms of activities, not pages (from user interaction design??).

Selenium steps are in the last level (tasks). this allows you to write tests with activities on a much higher level (similar to testing DSL idea) and easily maintain them when UI changes (just change task implementation)

this also allows you to plug in a different implementation of tasks, to go below or above the UI