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:

ConditionsTC01TC02TC03TC04TC05TC06TC07TC08TC09
First NameTRUETRUETRUETRUE(BLANK)TRUETRUETRUETRUE
Last NameTRUETRUETRUETRUETRUE(BLANK)TRUETRUETRUE
Email ValidTRUEFailTRUETRUETRUETRUE(BLANK)TRUETRUE
Phone Number ValidTRUETRUEFailTRUETRUETRUETRUE(BLANK)TRUE
Appointment Date availableTRUETRUETRUEFailTRUETRUETRUETRUE(BLANK)
Actions
Error: All fields are requiredTRUETRUETRUETRUETRUE
Error: "Please enter a valid email"TRUE
Error: "Please enter a valid phone number"TRUE
Error: "Please choose another date/time"TRUE
Appointment scheduled successfullyTRUE

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 IDTest ScenarioTest CasePre-ConditionTest stepsTest dataExpected Result
1Access control for rolesVerify access level for Basic userApp installed and
User is logged in as Basic user1. Launch app
2. Log in with Basic user credentials
3. Try accessing premium/Admin featuresBasic credentialsBasic user can only access limited features. Premium and Admin features are restricted.
2Access control for rolesVerify access level for Premium userApp installed and
User is logged in as Premium user1. Launch app
2. Log in with Basic user credentials
3. Try accessing Basic/Admin featuresPremium credentialsPremium user can access all standard features. Admin settings are restricted.
3Access control for rolesVerify access level for Admin userApp installed and
User is logged in as Admin user1. Launch app
2. Log in with Basic user credentials
3. Try accessing Basic/premium featuresAdmin credentialsAdmin user can access all features including advanced settings and can perform all actions
4Account creationVerify account creation and email confirmationApp is launched1. Navigate to Sign Up
2. Enter valid info with complex password
3. Submit the formNew user details with complex passwordAccount is created and confirmation email is received.
5Account creationVerify account creation with weak password or invalid emailApp is launched1. Navigate to Sign Up
2. Enter invalid email or weak password
3. Submit the formInvalid email/weak passwordRelevant error message should be displayed to the user
6Account deletionVerify account deletion processUser is logged in1. Navigate to Profile Settings
2. Click "Delete Account"
3. Confirm deletionValid user accountAccount is deleted and confirmation message is shown.
7App stabilityVerify app navigation without crashApp is installed1. Navigate through all modules
2. Interact with featuresAny user roleApp does not crash and functions without performance lag.
8Unauthorized actionVerify error on unauthorized actionLogged in as Basic/Premium user1. Try accessing admin-only featureBasic/Premium UserProper error message is shown: “You are not authorized to perform this action.”
0
Subscribe to my newsletter

Read articles from Bhuvaneswari Rajangam directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Bhuvaneswari Rajangam
Bhuvaneswari Rajangam