~/talk

Scaling Selenium to infinity using AWS Lambda

Talkat SeleniumConf Chicago 2018 · 2018-10-18..10-19· [testing, serverless]
name:Wes Couch
linkedin:wesley-couch
links:none on file
slides:none on file

UI tests move from hours to minutes by running Selenium with a packaged Chrome and Xvfb inside AWS Lambda, pulling large binaries from S3 into /tmp and reusing in-memory copies to speed cold starts. Framework deploys an uber-jar, invokes Lambda executors, stores videos/logs in S3, and reports via Allure. Result: 800 tests run at 60 tests in 6 minutes (previously ~60 minutes), uses full Chrome in Lambda with S3-staged binaries and Xvfb, and it works reliably for parallel, debuggable runs.

AI-written summary · about

  1. 0:00Intro
  2. 0:36Outline
  3. 1:14The 'Bad Old Days': Test Ice Cream Cone
  4. 2:15Practical Test Pyramid
  5. 4:06Happy Path
  6. 4:17Test Hygiene
  7. 5:01Goals
  8. 7:51Selenium in AWS Lambda: Why?
  9. 8:36First Iteration
  10. 9:15Running a Full Browser
  11. 9:48Full Browser in Lambda: The Screen
  12. 10:23Full Browser in Lambda: Chrome
  13. 12:02Keeping the Footprint Small Challenges
  14. 12:30Keeping the Footprint Small: Solution
  15. 14:09Debugging: Video recordings using FFmpeg
  16. 15:46Debugging: Logs
  17. 17:20Debugging: STDOUT in Cloudwatch
  18. 17:42Allure Reporting: Tying it all together
  19. 21:40Java JUnit Lambda Test Runner
  20. 30:20Speed Improvements
  21. 31:09With Great Speed Comes Great Responsibility
  22. 33:20Lessons Learned
  23. 36:34Shout outs!
  24. 38:05Github
  25. 39:06Questions?
~/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.