Test Case Design Techniques


Task 1 : Decision Table for appointment form
The table tests a doctor's appointment form with fields: First Name, Last Name, Email, Phone Number, and Appointment Date.
Each test case (TC01–TC09) checks different combinations of valid and invalid inputs.
Expected results include:
✅ Success when all fields are valid (TC01).
❌ Error messages for:
Invalid email → “Please enter a valid email” (TC02)
Invalid phone number → “Please enter a valid phone number” (TC03)
Unavailable appointment date → “Please choose another date/time” (TC04)
Any missing field → “All fields are required” (TC05–TC09)
This helps ensure the form responds correctly and guides users with clear messages.
Table:
Conditions | TC01 | TC02 | TC03 | TC04 | TC05 | TC06 | TC07 | TC08 | TC09 | |
First Name | TRUE | TRUE | TRUE | TRUE | (BLANK) | TRUE | TRUE | TRUE | TRUE | |
Last Name | TRUE | TRUE | TRUE | TRUE | TRUE | (BLANK) | TRUE | TRUE | TRUE | |
Email Valid | TRUE | Fail | TRUE | TRUE | TRUE | TRUE | (BLANK) | TRUE | TRUE | |
Phone Number Valid | TRUE | TRUE | Fail | TRUE | TRUE | TRUE | TRUE | (BLANK) | TRUE | |
Appointment Date available | TRUE | TRUE | TRUE | Fail | TRUE | TRUE | TRUE | TRUE | (BLANK) | |
Actions | ||||||||||
Error: All fields are required | TRUE | TRUE | TRUE | TRUE | TRUE | |||||
Error: "Please enter a valid email" | TRUE | |||||||||
Error: "Please enter a valid phone number" | TRUE | |||||||||
Error: "Please choose another date/time" | TRUE | |||||||||
Appointment scheduled successfully | TRUE | |||||||||
Screenshot for your reference:
Testing a Mobile App – Test Case Overview
In this blog, I’ve highlighted key test cases for a new mobile app with Basic, Premium, and Admin users. Core features tested include role-based access, account actions, app performance, and permissions.
🔐 1. Role-Based Access
Verified access for each role:
Basic: Limited features
Premium: Full access
Admin: Full + advanced controls
📝 2. Account Creation
Created accounts with valid inputs
Checked error handling for weak/invalid credentials
🗑️ 3. Account Deletion
- Ensured users can delete their accounts and get confirmation
🚀 4. App Stability
- Navigated through the app to check for smooth performance (no crashes)
⛔ 5. Unauthorized Actions
- Verified users get clear error messages when accessing restricted areas
📌 Conclusion:
These cases ensure the app works well, enforces access rules, and handles user actions reliably.
Screenshot for reference:
Table:
Test case ID | Test Scenario | Test Case | Pre-Condition | Test steps | Test data | Expected Result |
1 | Access control for roles | Verify access level for Basic user | App installed and | |||
User is logged in as Basic user | 1. Launch app | |||||
2. Log in with Basic user credentials | ||||||
3. Try accessing premium/Admin features | Basic credentials | Basic user can only access limited features. Premium and Admin features are restricted. | ||||
2 | Access control for roles | Verify access level for Premium user | App installed and | |||
User is logged in as Premium user | 1. Launch app | |||||
2. Log in with Basic user credentials | ||||||
3. Try accessing Basic/Admin features | Premium credentials | Premium user can access all standard features. Admin settings are restricted. | ||||
3 | Access control for roles | Verify access level for Admin user | App installed and | |||
User is logged in as Admin user | 1. Launch app | |||||
2. Log in with Basic user credentials | ||||||
3. Try accessing Basic/premium features | Admin credentials | Admin user can access all features including advanced settings and can perform all actions | ||||
4 | Account creation | Verify account creation and email confirmation | App is launched | 1. Navigate to Sign Up | ||
2. Enter valid info with complex password | ||||||
3. Submit the form | New user details with complex password | Account is created and confirmation email is received. | ||||
5 | Account creation | Verify account creation with weak password or invalid email | App is launched | 1. Navigate to Sign Up | ||
2. Enter invalid email or weak password | ||||||
3. Submit the form | Invalid email/weak password | Relevant error message should be displayed to the user | ||||
6 | Account deletion | Verify account deletion process | User is logged in | 1. Navigate to Profile Settings | ||
2. Click "Delete Account" | ||||||
3. Confirm deletion | Valid user account | Account is deleted and confirmation message is shown. | ||||
7 | App stability | Verify app navigation without crash | App is installed | 1. Navigate through all modules | ||
2. Interact with features | Any user role | App does not crash and functions without performance lag. | ||||
8 | Unauthorized action | Verify error on unauthorized action | Logged in as Basic/Premium user | 1. Try accessing admin-only feature | Basic/Premium User | Proper error message is shown: “You are not authorized to perform this action.” |
Subscribe to my newsletter
Read articles from Bhuvaneswari Rajangam directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
