~/talk

Functional Programming in Test Automation

Talkat Selenium Conf 2022 · 2022-07-29..07-30· [testing]
links:none on file
links:none on file
slides:none on file

Workshop demonstrates refactoring a Selenium 4 UI test suite (JavaScript/Node.js) for the Juice Shop app into layered, reusable code: actions vs calculations vs data, replacing for-loops with map/filter/reduce, isolating pure functions, and exporting driver-bound action factories so tests stop passing driver everywhere. Demo uses Ramda for piping and shows higher‑order functions, currying, and immutability; tests run end-to-end after refactor and reduce duplicated iteration and argument passing while making business rules (bonus, delivery) easy to change.

AI-written summary · about

  1. 0:00Start
  2. 0:36Introduction about Ourselves
  3. 1:51Functional Programming Workshop
  4. 2:52Pure Functions
  5. 4:54Javascript Functions
  6. 11:09Written a Function from a Function
  7. 16:39Summary Recap
  8. 23:50Sample Application
  9. 25:54Payment Options
  10. 26:25Business Case
  11. 26:36Business Use Case
  12. 30:17For Loops
  13. 31:51Add Juices to the Card
  14. 36:15Higher Order Functions
  15. 38:58Map Functions
  16. 39:46Filter Function What Does the Filter Function Does
  17. 41:23Reduce Function
  18. 52:09User Defined Libraries
  19. 52:49Pipe Function
  20. 58:09Sequence of Operations
  21. 1:08:21Practices We Need To Follow To Make It a Very Good Functional Programming Style in Your Test Automation Framework
  22. 1:08:31Separate Out the Business Rules as Functions
  23. 1:09:04Use the Call Graph
  24. 1:10:24Keep Data Immutable
  25. 1:12:09Duplicate Code
  26. 1:21:27Exporting Card Action Methods
  27. 1:30:11References
~/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.