~/talk

Design Patterns in Test Automation

TalkinRussianat Selenium Camp 2017 · 2017-02-24..02-25· [testing]
slides:none on file

Concrete test automation design patterns for Java WebDriver are presented, including Page Object, Factory, Composite elements, LoadableComponent, fluent chaining, Decorator, Builder, Data provider, Proxy, Registry, and Steps, with code and real examples (Yandex page, YouTube player). A mini-framework is shown that uses PageFactory, EventFiringWebDriver and integrations (jdi/html-elements, Serenity), caches pages, blacklists heavy resources via a proxy, generates unique users from a registry and serialized test data, and demonstrates that a single locator change can update many tests; runnable samples and readable step reports are provided using Page Object, Decorator, Data provider and Steps.

AI-written summary · about

  1. 0:00Design patterns intro
  2. 7:55Page Object basics
  3. 15:52Factory for Page Objects
  4. 21:30Composite for complex pages
  5. 27:29Loadable Component
  6. 30:20Fluent Interface
  7. 32:28Decorator for elements
  8. 34:38Builder for objects
  9. 36:05Data Provider
  10. 38:30Proxy for network
  11. 39:34Registry for data
  12. 41:20Steps bridging manual and auto
  13. 44:12Conclusion & Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.