Design patterns in web testing automation with WebDriver

8,838 views

Published on

Design patters exist for years in software development. Some developers love them, some think they are useless. But design patters has very clear goals: describe common solutions for common problems, create shared language for community, improve understanding and reuse of existing approaches. Testing automation has its own set of problems, so there is a set of helpful design patterns for this area. In this talk I will run through all known patterns and describe them in details with several practical samples.

Published in: Technology

Design patterns in web testing automation with WebDriver

  1. 1. Design patterns in web testing automation with WebDriver Mikalai Alimenkou http://xpinjection.com @xpinjection
  2. 2. Design pattern? What is it?
  3. 3. Classical Design Patterns
  4. 4. Index Page Main Page login Search Page search filter ordersearch Details Page open see more show me like this close #1. Page Object
  5. 5. Page structure
  6. 6. Available methods
  7. 7. #2. Page Factory
  8. 8. #3. Page Element/Composite List of Items Link Menu PanelCheckbox
  9. 9. No duplicated code
  10. 10. LoadableComponent
  11. 11. #4. Invocations chain
  12. 12. #5. Decorator Driver in driver in driver in driver in driver in driver in driver in driver in driver in driver in driver in driver in driver in driver in driver…
  13. 13. #6. Proxy
  14. 14. @xpinjection http://xpinjection.com mikalai.alimenkou@xpinjection.com

×