~/talk

Hands-On Web UI Testing

Talkat PyOhio 2019 · 2019-07-27..07-28· [testing]
slides:none on file

Hands-on demo shows a runnable Web UI test suite built with Python 3 + pytest + Selenium WebDriver, using the page object model to test DuckDuckGo search. Tests create a fresh ChromeDriver per test with an implicit 10s wait, use a pytest fixture that yields the driver and always calls quit to avoid zombie processes, and a single end-to-end search test runs in ~10–30 seconds; scaling options include pytest-xdist and Selenium Grid for hundreds or 1,500 nightly tests.

AI-written summary · about

  1. 0:00Start
  2. 2:09Agenda
  3. 3:31Test Project Setup
  4. 5:53Testing Types
  5. 8:13The Testing Pyramid
  6. 11:25Python Developers Survey 2018: Testing Frameworks
  7. 12:43What is Web UI Testing?
  8. 14:17Web UI Testing Pros and cons
  9. 15:43What Makes a "Good" Web UI Test?
  10. 20:18Solution Sketch
  11. 22:23Solution Diagram
  12. 23:35Why Not Use Django Testing Tools?
  13. 25:01Why Not Use Codeless Tools?
  14. 26:02Our Web App to Test
  15. 26:43Everyone Do a Search!
  16. 30:03Navigate to DuckDuckGo
  17. 30:16Step 2: Enter a search phrase
  18. 30:26Verify query on results page
  19. 31:22Our First Test Case
  20. 34:59pytest in Our Project
  21. 36:03Running pytest Tests
  22. 42:56Our First Test in Comments
  23. 43:56What is a Page Object?
  24. 45:41Our Pages Under Test
  25. 46:44Page Object Class Stubs
  26. 48:26Add Page Object Calls to the Test
  27. 58:41Our First Test with Page Objects
  28. 59:44Selenium WebDriver
~/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.