What makes a scenario complex?
Complexity is a relative concept. It highly correlates with the perspective and expertise of the person or team facing it. Nevertheless, there are generic, common facets that can introduce complexity. In the context of test automation, complexity can be found in the following factors:
- Data setup
- Verification
- End to end code execution path
- Dependencies on other systems
Recognizing each of these factors in general terms – and, of course, even more in specific circumstances – helps you a lot in reducing the complexity. Or should I say: handling the complexity? It will support you to deconstruct a complex issue into a collection of simpler things. Even though this collection may still be overwhelming as a whole, it enables you to solve it step-by-step, a recurring approach in this book. An approach that allows you to take small steps and gives you a great chance to design reusable, readable, and minimalistic code.
...