How Java 8 Exerts Hidden Power on Test Automation
summary
Java 8 features plus small libraries simplify Selenium test automation: Javaslang pattern-matching replaces large switch statements, lambdas and functional interfaces parameterize waits to remove duplicated wait methods, Streams reduce verbose DOM parsing and comparator code, Optional eliminates many null checks, and Moneta/Java Money provides safe currency math. A concrete example is a real e-shop max-discount extractor rewritten to use these techniques, resulting in fewer browser roundtrips and clearer assertions.
AI-written summary · about
chapters (7)
- 0:00Java 8 power for testing
- 1:06Programming languages in testing
- 5:21Pattern matching with Java Slang
- 13:50Lambdas in test expectations
- 22:43Streams for test collections
- 37:25Java 8 testing tips
- 41:00Q&A
related talks
14mAutomated Tests in Java: an Underrated Treasure!
41mFunctional Tests (Selenium) in Practice
08mSpice Up Selenium Test Automation"
46mTest Automation with Selenium WebDriver, Java, and JUnit
39mRethinking Unit Testing: Automating the Generation of Java
40mBenjamin Bischoff: Old Tools, New Tricks: Unleashing the Power of Time-Tested Testing Tools
01h 14mContinuous Testing
46mModern Testing Tools for Java Developers
