Note: “Please keep in mind that this is just an example and may not encompass all possibilities, but it’s intended to provide a helpful starting point for your ideas
Requirement: The system must provide users with the ability to create events by specifying event details like title, date & time, invitees, location, and more.
Decision Table: Create Event – Google Calendar
| Condition | Valid Inputs | Invalid Inputs |
|---|---|---|
| Event Title | Non-empty string (e.g., “Meeting”) | Empty string or missing |
| Date & Time | Valid date and time (e.g., “2024-08-14 10:00 AM”) | Missing or invalid date/time format |
| Invitees | One or more valid email addresses (e.g., “user@example.com“) | Missing or invalid email addresses |
| Location | Valid location string (e.g., “Conference Room A”) | Missing or empty string |
| Notification | Set notification (e.g., “10 minutes before”) | Not set or invalid notification setting |
| Save/Submit Action | User clicks the “Save” or “Submit” button | User does not click or cancel |
| Rules | R1 | R2 | R3 | R4 | R5 | R6 |
|---|---|---|---|---|---|---|
| Event Title Provided | T | T | T | F | T | T |
| Date & Time Provided | T | T | F | T | T | F |
| Invitees Added | T | F | T | T | F | T |
| Location Provided | T | T | F | T | F | T |
| Notification Set | T | F | T | T | T | F |
| Save/Submit Clicked | T | T | T | T | F | F |
| Actions | R1 | R2 | R3 | R4 | R5 | R6 |
|---|---|---|---|---|---|---|
| Event Created Successfully | ✔ | ✔ | ||||
| Error: Date & Time Required | ✔ | ✔ | ||||
| Error: Event Title Required | ✔ | |||||
| Default Values Applied | ✔ | ✔ | ||||
| Event Creation Fails | ✔ | ✔ | ||||
| Notification Not Set | ✔ |
Test Scenarios: 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 all event details (title, date & time, invitees, location, notification) are applied and the event is created. | +ve |
| R2 | TS2 | Ensure event creation with title, date & time, but no invitees and location. | +ve |
| R3 | TS3 | Ensure an error is shown when date & time are missing. | -ve |
| R4 | TS4 | Ensure an error is shown when both date & time and location are missing. | -ve |
| R5 | TS5 | Ensure no event is created when the title is missing. | -ve |
| R6 | TS6 | Ensure default values apply when inputs are invalid. | +ve |