Using decision tables
To capture complex interactions between dependent variables and system behavior, it can be helpful to write out the possibilities in a table. This provides a basis for writing test cases and ensures that all conditions are covered. By expanding out the variables in a systematic way, you confirm you haven’t missed any combinations.
Consider a web application with basic or advanced support depending on the operating system and web browser it runs on. The advanced mode isn’t a replacement for the basic mode; some users may choose the basic mode even though the advanced mode is available.
The specification states the following:
- Chrome supports basic and advanced modes on Windows and macOS
- Edge supports only basic mode on macOS
- Safari only supports basic mode and only on macOS
- Edge supports basic and advanced modes on Windows
Do those requirements cover all possible cases? They do, although that isn’t immediately...