Test Case design techniques
Q1: Decision Table for form field validations
Testing scenario | First Name | Last Name | Phone number | Appointment date/time | Expected Output | |
All fields are blank | - | - | - | - | - | All fields are required |
Incorrect email | Value-1 | Value-1 | incorrect email | xxxxxxxxxxx | xx/xx/xxxx 12:30 | Please enter a valid email |
Invalid phone number | Value-2 | Value-2 | correct email | invalid number | xx/xx/xxxx 12:30 | Please enter a valid phone number |
Appointment date not available | Value-3 | Value-3 | correct email | xxxxxxxxxxx | xx/xx/xxxx 12:30 | Please choose another date/time |
All fields are correct, schedule appointment | Value 4 | Value 4 | Value 4 | Value 4 | Value 4 | Appointment scheduled successfully |
Q2: Mobile App testing
Test Scenario 1: User Roles and Account Management
Steps:
User Creation:
Create a basic user account.
Create a premium user account.
Create an admin user account.
User Access Control:
Log in with the basic user account and attempt to access premium and admin features.
Log in with the premium user account and attempt to access admin features.
Log in with the admin user account and access all features.
Account Deletion:
- Log in with each user role and delete the respective account.
Password Complexity:
Attempt to create an account with a weak password and ensure it's rejected.
Create an account with a strong password and ensure it's accepted.
Confirmation Email:
- Check for the confirmation email upon successful account creation.
Expected Results:
Basic users should have limited access.
Premium users should have access to all features.
Admin users should have access to advanced settings and all actions.
Accounts should be deletable by respective users.
Weak passwords should be rejected, and strong passwords accepted.
Confirmation emails should be received.
Test Scenario 2: App Navigation and Performance
Steps:
Navigate Through App:
Log in as each user role and navigate through the app.
Check various features, menus, and options.
Performance Testing:
Perform actions within the app and monitor for any performance issues.
Check for smooth transitions between screens.
Error Messages:
- Attempt to perform unauthorized actions and check for appropriate error messages.
Expected Results:
Seamless navigation for all user roles.
No crashes or performance issues.
Appropriate error messages displayed for unauthorized actions.
Test Scenario 3: Error Handling
Steps:
Unauthorized Action:
Log in with a basic user and attempt to access admin features.
Log in with a premium user and attempt an admin action.
Attempt actions with incorrect permissions.
Invalid Input:
Submit forms with invalid data and check for appropriate error messages.
Ensure error messages are clear and user-friendly.
Expected Results:
App should display clear error messages for unauthorized actions.
Proper handling of invalid input with appropriate error messages.