Task 2: Test Case Design Techniques
Q1. 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. Some more inputs:
If any field is blank, we should display "All fields are required"
If the email is invalid, we should display "Please enter a valid email"
If the phone number is invalid, we should display "Please enter a valid phone number"
If the appointment date/time is not available, it should display "Please choose another date/time"
If all fields are correct and the appointment is available, we should schedule the appointment successfully.
For these requirements write down the correct list of conditions in the form of decision table
Ans:
Here's a decision table that outlines the conditions for the given requirements:
First Name | Last Name | Email Validation | Phone Validation | Appointment Availability | Expected Result |
- | T | T | T | T | "All fields are required" |
T | - | T | T | T | "All fields are required" |
T | T | F | T | T | "Please enter a valid email" |
T | T | T | F | T | "Please enter a valid phone number" |
T | T | T | T | F | "Please choose another date/time" |
T | T | T | T | T | Schedule the appointment successfully |