Testing Automation Patterns
In the last three chapters, we explored the concept of the test pyramid in a deeper and unique way. If you are skipping those chapters and reading this one directly, we recommend you go over the previous one for a better understanding of UI testing.
Most developers are familiar with development design patterns. In testing, we also have patterns, best practices, and ways of dealing with automation writing that have proven useful and can be re-used systematically. The most well-known of these patterns is the POM. In this chapter, we are going to cover some versions of it that have been useful in my career, and I hope they help you achieve reliable, maintainable, and faster automation code.
In this chapter, we are going to cover the following main topics:
- The Page Object Model (POM) for UI automation
- A Page Factory Model (PFM) – an antipattern?
- A file objects model (FOM)
- An enhanced POM (EPOM)
- A remote POM (RPOM) ...