Kotlin for Test Automation
summary
Shows concrete refactors: a Java POJO becomes a Kotlin data class that auto-generates equals/hashCode and makes API request/response models concise; IntelliJ Java-to-Kotlin converter and sample GitHub repo are used; default parameters and extension functions replace overloads and wrappers; inner functions and recursion extract text from a nested element tree and sealed classes remove the final else branch; example code runs in IntelliJ, assertions pass, and Java interop remains intact.
AI-written summary · about
chapters (7)
- 0:00Introduction to Kotlin for Test Automation
- 1:45Data classes in Kotlin
- 3:32Functions as first-class citizens
- 8:07Extension functions in Kotlin
- 9:53Working with element trees
- 14:11Sealed classes and simplification
- 14:55Conclusion and resources








