Test Case Design Techniques
Task Description:
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 form of decision table:
Test Cases | First Name | Last Name | Phone Number | Appointment Date | Expected Result | |
TC1 | Empty | Valid | Valid | Valid | Valid | Display "All fields are required" |
TC2 | Valid | Empty | Valid | Valid | Valid | Display "All fields are required" |
TC3 | Valid | Valid | Empty | Valid | Valid | Display "All fields are required" |
TC4 | Valid | Valid | Invalid | Valid | Valid | Display "Please enter a valid email" |
TC5 | Valid | Valid | Valid | Invalid | Valid | Display "All fields are required" |
TC6 | Valid | Valid | Valid | Valid | Empty | Display "All fields are required" |
TC7 | Empty | Empty | Valid | Valid | Valid | Display "All fields are required" |
TC8 | Valid | Empty | Empty | Valid | Valid | Display "All fields are required" |
TC9 | Valid | Valid | Empty | Empty | Valid | Display "All fields are required" |
TC10 | Valid | Empty | Valid | Empty | Valid | Display "All fields are required" |
TC11 | Empty | Valid | Empty | Valid | Valid | Display "All fields are required" |
TC12 | Valid | Valid | Invalid | Valid | Valid | Display "Please enter a valid email" |
TC13 | Valid | Valid | Invalid | Valid | Valid | Display "Please enter a valid email" |
TC14 | Valid | Valid | Valid | Invalid | Valid | Display "All fields are required" |
TC15 | Valid | Valid | Valid | Valid | Valid | No message (Form submission successful) |
TC16 | Empty | Empty | Empty | Empty | Empty | Display "All fields are required" |
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 can only access limited features of the app, while premium users can access all features. Admin users have 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 through the app seamlessly without any crashes or performance issues. The app should 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.
Test Scenario | Steps to Test | Expected Results |
Basic User Role | 1. Log in with a basic user account. | Basic user can access only few features, Access to premium features or admin settings is restricted, They can create and delete their account successfully with password meeting complexity standards. They receive confirmation upon successful account creation. |
Premium User Role | 1. Log in with a premium user account. | 1.Premium user can access all features including premium content and advanced settings,, They can perform actions exclusive to premium users, App does not crash during navigation, They can create and delete their account successfully with password meeting complexity standards .They receive confirmation upon successful account creation. |
Admin User Role | 1. Log in with an admin user account. | Admin user can access advanced settings and can perform all actions, They can navigate through the app smoothly, They can create and delete user accounts successfully with passwords meeting complexity standards .They receive confirmation upon successful account creation.. |
Subscribe to my newsletter
Read articles from Mourice Seraphine directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by