Task 2: Test case designs
Task Description
Q1. You are testing a form that allows users to schedule appointments with the doctor. The form has the following fields: first name, last name, email, phone number and appointment date and 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 is not available, it should display “Please choose another date/time”
If all field are correct and the appointment is available, we should schedule the appointment successfully For these requirements write down the correct list of conditions in form of decision table
Answer
TC1 | TC2 | TC3 | TC4 | TC5 | ||
Condition 1 | If any field is blank in the screen and try to submit it. | TRUE | FALSE | FALSE | FALSE | FALSE |
Condition 2 | If we enter an invalid email | FALSE | TRUE | FALSE | FALSE | FALSE |
Condition 3 | If we enter an invalid Phone number | FALSE | FALSE | TRUE | FALSE | FALSE |
Condition 4 | Appointment date/time is not available | FALSE | FALSE | FALSE | TRUE | FALSE |
Condition 5 | If all fields are correct and appointment is available | FALSE | FALSE | FALSE | FALSE | TRUE |
Action 1 | System should display "All fields are required" | Execute | ||||
Action 2 | System display "Please enter a valid email" | Execute | ||||
Action 3 | System should display "Please enter a valid phone number" | Execute | ||||
Action 4 | System should display "Please choose another date/time" | Execute | ||||
Action 5 | System should schedule the appointment successfully | Execute |
Q2. Suppose you are a software tester, and you are assigned to test a new mobile app that has just been developed. The app has three different user roles: basic user, premium user and admin user. You have been given the following three test scenarios to execute:
Basic users only access limits features of the app, while premium users can access all features.
Admin users have all access to advanced settings and can perform all actions. Users should be able to create and delete their accounts successfully. Passwords must meet the required complexity standards and users should receive a confirmation email upon successful account creation.
Users should be able to navigate the app seamlessly without any crashes or performance issues.
The app also display appropriate error messages when a user attempts to perform an action they are not authorized to perform.
For each of the test scenarios, describe the steps you would take to test them and the expected results
Answer:
1.Test the User Roles and Access Levels:
Basic User vs. Premium User Access:
Test Scenario:
Verify that basic users can access only limited features, while premium users have access to all features.
Steps to Test:
Create a basic user account.
Log in with the basic user account.
Attempt to access various features (e.g., create posts, view premium content, etc.).
Repeat steps 1-3 with a premium user account.
Expected Results:
Basic user:
Should be restricted from accessing premium features.
Should receive appropriate error messages when attempting to access restricted features.
Premium user:
Should have unrestricted access to all features.
Should not encounter any errors related to feature access.
Admin User Access and Account Management:
Test Scenario:
Verify that admin users can perform all actions and manage user accounts.
Steps to Test:
Create an admin user account.
Log in with the admin user account.
Perform various actions (e.g., create posts, delete posts, modify settings, etc.).
Manage user accounts (create, delete, update).
Expected Results:
Admin user:
Should be able to perform all actions without restrictions.
Account management (create, delete, update) should work seamlessly.
Password complexity standards should be enforced during account creation.
Confirmation emails should be sent upon successful account creation.
2. App Navigation and Error Handling:
Test Scenario:
Verify that users can navigate the app seamlessly without crashes or performance issues.
Ensure appropriate error messages are displayed when unauthorized actions are attempted.
Steps to Test:
Navigate through various app screens (e.g., home, profile, settings, etc.).
Perform actions (e.g., create posts, update profile, etc.) and observe app behavior.
Attempt unauthorized actions (e.g., accessing admin-only settings as a basic user).
Expected Results:
App navigation:
Should be smooth without any crashes or performance issues.
Error handling:
Unauthorized actions should trigger relevant error messages.
Error messages should be clear and informative.
Subscribe to my newsletter
Read articles from Jameel M directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by