Summary
Our focus in this chapter was to understand the common issues and anti-patterns in test automation. We started by looking at how unrealistic expectations affect test automation and also how not selecting the right things to automate can impact test maintenance. We also reviewed the significance of investing in test environments and taking a whole-team and lean approach to test automation. We concluded the section by understanding the need for planning around test data. Next, we reviewed a few coding- and process-oriented anti-patterns in test automation. Some of the notable coding and design anti-patterns are compromising the code quality in tests, code duplication, incorrect use of assertions, and inefficient code reviews. Subsequently, we reviewed process-oriented anti-patterns such as test automation efforts not being assessed, test automation commencing late, and so on. This brings us to the end of our joint exploration of test automation. We have come a long way from learning...