Decision Table for the appointment form validation

2 min read
Question: You are testing a form that allows users to schedule appointments with a doctor. The form has the following fields: first name, last name, email, phone number, and appointment date/time.
Answer:
Conditions and Actions
Condition No. | Condition Description |
C1 | Any field is blank |
C2 | Email is invalid |
C3 | Phone number is invalid |
C4 | Appointment date/time is unavailable |
Actions
Action No. | Action Description |
A1 | Display "All fields are required" |
A2 | Display "Please enter a valid email" |
A3 | Display "Please enter a valid phone number" |
A4 | Display "Please choose another date/time" |
A5 | Schedule the appointment successfully |
Decision Table
Rule No. | C1 (Blank) | C2 (Invalid Email) | C3 (Invalid Phone) | C4 (Date Unavailable) | A1 | A2 | A3 | A4 | A5 |
R1 | Yes | - | - | - | Yes | - | - | - | - |
R2 | No | Yes | - | - | - | Yes | - | - | - |
R3 | No | No | Yes | - | - | - | Yes | - | - |
R4 | No | No | No | Yes | - | - | - | Yes | - |
R5 | No | No | No | No | - | - | - | - | Yes |
0
Subscribe to my newsletter
Read articles from Bharath Nu directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
