Requirement: The system must provide users with the ability to apply formatting to selected text by actively selecting it.
Decision table
| Conditions | Valid Inputs | Invalid inputs |
| Font Type | Any | |
| Text Style | Bold/Italic/Underlined | |
| Font Size | Anything from 1- 400 | >400 |
| Text Alignment | Left/Right/Center/Justify | |
| Conditions | R1 | R2 | R3 | R4 | R5 | R6 |
| Font Type | T | T | T | T | D | D |
| Text Style | T | T | T | D | D | D |
| Font Size | T | T | D | D | D | F(>400) |
| Text Alignment | T | D | D | D | D | D |
| Effects | | |
| Selected Font type applied | ✔ | ✔ | ✔ | ✔ | | |
| Default Font type applied | | | | | ✔ | ✔ |
| Selected Text style applied | ✔ | ✔ | ✔ | | | |
| Default Text style applied | | | | ✔ | ✔ | ✔ |
| Selected Font size applied | ✔ | ✔ | | | | |
| Default Font size applied | | | ✔ | ✔ | ✔ | |
| Max font size of 400 is applied | | | | | | ✔ |
| Selected Text alignment applied | ✔ | | | | | |
| Default Text alignment applied | | ✔ | ✔ | ✔ | ✔ | ✔ |
T – True: F – False: D – Default: The column of every rule (combination of conditions) in the table above is translated into a test scenario as below:
| Rule | Test ID | Test Scenario | Type |
| R1 | TS1 | Ensure selected font type, text style, size & test alignment are applied to the selected text | +ve |
| R2 | TS2 | Ensure selected font type, text style(bold/italic/underline) & font size is applied to the selected text | +ve |
| R3 | TS3 | Ensure the selected font type & text style(bold/italic/underline) are applied to the selected text | +ve |
| R4 | TS4 | Ensure only the selected font type is applied to the selected text | +ve |
| R5 | TS5 | Ensure default formatting effects are applied | +ve |
| R6 | TS6 | Ensure any font size >400 is limited to the max value of 400 | -ve |