Test Automation: Do the Same but Better
summary
A tiny Rails app that calculates an average rate and tests written in Ruby move from Selenium Firefox UI tests to direct DB inserts then to an internal JSON API, then to a pulled‑out calculation class RatesBroker and a RatesProvider data layer. Experiments show 5 UI runs in ~12s, a 100‑call API check in ~1s (projecting ~25,000 in five minutes), and unitized broker tests hitting 10,000 in 2s (extrapolated to >1,000,000 in five minutes). Trade‑offs and setup cost remain.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 8:40Test Automation
- 14:30Ruby Magic
- 16:30Database
- 18:15API
- 22:30Testing
- 25:15Web Server
- 29:20Run 1000 tests
- 31:10Data Provider
- 32:30Unit Test
- 40:10Conclusion








