Test Case Design Techniques

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:

  1. If any field is blank, we should display “All fields are required”

  2. If the email is invalid, we should display “Please enter a valid email”

  3. If the phone number is invalid, we should display “Please enter a valid phone number”

  4. If the appointment date/time is not available, it should display “Please choose another date/time”

  5. 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 the form of a decision table

ANSWER:-

1.Equivalence class partition(ECP)

TEST DESCRIPTIONVALID PARTITIONINVALID PARTITION
First name (specified character length)John123John
Last name (specified character length)DoeD2
Email (Valid email format with existing domain)john.doe@example.comjohndoe@ or johndoe@example
Phone number (must be 10 digits)987654321045674

2.Decision table testing:

InputTest case 1Test case 2Test case 3Test case 4Test case 5Test case 6Test case 6
First nameYes-NoYesYesYesYes
Last nameYes-YesNoYesYesYes
EmailYes-YesYesNoYesYes
Phone numberYes-YesYesYesNoYes
Date /timeYes-YesYesYesYesNo
statusAppointment sucessfullyAll fields are requiredPlease enter the valid First NamePlease enter the valid Last NamePlease enter the valid emailPlease enter the valid phone numberPlease choose another date/time

3.TEST CASE'S

TEST-CASE-IDTEST DESCRIPTIONTEST CASETEST CONDITIONVALIDINVALIDEXPECTED RESULT
TC_001Verify the first nameEnter valid user nameNeed a valid user name. Example: Enter the character within specified rangeSantoshFirst name is correct
TC_002Verify The first nameEnter invalid user name12datuFirst name is incorrect
TC_003Verify the last nameEnter valid nameNeed a valid name. Example: The character within specified rangesa8Last name is correct
TC_004Verify the last nameEnter invalid namesa8Last name is incorrect
TC_005Verify the email addressEnter the valid email. check the syntax of an email address and check is the domain name exists.Need a valid email format including @ symbol, .com, .org, or any domain name. Example: name@domain.comabcdd@gmail.comEmail is correct
TC_006Verify the email addressEnter the valid email. check the syntax of an email address and check is the domain name exists.Need a valid email format including @ symbol, .com, .org, or any domain name. Example: name@domain.compasdfg999@gmail.comEmail is correct
TC_007Verify the email addressEnter the valid email. check the syntax of an email address and check is the domain name exists.Need a valid email format including @ symbol, .com, .org, or any domain name. Example: name@domain.comgovind@yahoo.comEmail is correct
TC_008Verify the email addressEnter the valid email. check the syntax of an email address and check is the domain name exists.Need a valid email format including @ symbol, .com, .org, or any domain name. Example: name@domain.combhaiya@gmail.comEmail is correct
TC_009Verify the email addressEnter the invalid email addressabcd@domainPlease enter the valid email
TC_010Verify the email addressEnter the invalid email addressabsce@domain.cPlease enter the valid email
TC_011Verify the email addressEnter the invalid mail addresszxcv@--domain.comPlease enter the valid email
TC_012Verify the phone numberEnter the valid phone numberMobile number must accept 10 digits only8208101127Phone number is correct
TC_013Verify the phone numberEnter the valid phone numberValidate text box accepts only digits, not characters8208101127Phone number is correct
TC_014Verify the phone numberEnter the invalid phone numberGetting error message, the phone number must be less than 10 digits546372Please enter the valid phone number
TC_015Verify the phone numberEnter the invalid phone numberGetting error message, the phone number is greater than 10 digits98765432187654Please enter the valid phone number
TC_016Verify the phone numberEnter the invalid phone numberEnter the phone number with blank input space23456 78896Please enter the valid phone number
TC_017Verify the phone numberEnter the invalid phone numberEnter the phone number with special characters2345@#78896Please enter the valid phone number
TC_018Verify the date and timeEnter the valid date and timeCheck the date and time for doctor availability (DD/MM/YYYY) and from 9.00 am to 10.00 pm23/02/2024 & 10.00 amDate and time is correct
TC_019Verify the date and timeEnter the invalid date and time06/07/2023 & 11.00 pmPlease choose another date/time

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.

Mobile App-Test Scenarios for users:

ANSWER:-

  1. Basic User Registration and Login:

    • Scenario: A basic user registers for the app and logs in successfully.

    • Steps:

      1. Open the app and navigate to the registration page.

      2. Fill in the required information (e.g., username, email, password) and submit the registration form.

      3. Verify that the user is redirected to the login page after successful registration.

      4. Enter the registered credentials and log in.

    • Expected Outcome: The basic user should be able to register and log in without any errors.

  2. Premium User Features Access:

    • Scenario: A premium user accesses exclusive features available only to premium users.

    • Steps:

      1. Log in to the app using premium user credentials.

      2. Navigate to the sections of the app that are designated for premium users (e.g., premium content, advanced settings).

      3. Attempt to access and utilize these premium features.

    • Expected Outcome: The premium user should be able to access and utilize all premium features without any issues.

  3. Admin User Management:

    • Scenario: An admin user manages basic and premium user accounts.

    • Steps:

      1. Log in to the app using admin user credentials.

      2. Access the admin dashboard or user management section.

      3. Perform actions such as adding new users, deleting existing users, upgrading basic users to premium, etc.

      4. Verify that all user management actions are reflected correctly in the app.

    • Expected Outcome: The admin user should be able to manage basic and premium user accounts effectively, and all changes made should be accurately reflected in the app's database and user interface.

Test ScenarioTest StepsExpected Results
User Access Levels1. Log in with a basic user account. 2. Attempt to access premium features. 3. Attempt to perform admin actions. 4. Verify feature accessibility.5. Log in with a premium user account. 6. Access premium features. 7. Attempt admin actions. 8. Verify feature accessibility.9. Log in with an admin user account. 10. Access admin settings. 11. Verify all feature accessibility.- Basic users should only access basic features. - Premium users should access all features except admin-only features. - Admin users should access all features, including admin-specific functionalities.
Account Creation and Deletion1. Navigate to account creation page. 2. Fill in required information. 3. Submit the form. 4. Check for successful creation message. 5. Verify email confirmation.6. Log in with the user account to be deleted. 7. Navigate to account deletion section. 8. Confirm deletion. 9. Verify account deletion.- Account creation should result in a success message and confirmation email. - Account deletion should permanently remove the account.
App Navigation and Error Handling1. Log in with different user roles. 2. Navigate through various sections. 3. Interact with different features. 4. Verify smooth navigation.5. Attempt unauthorized actions. 6. Input incorrect login credentials. 7. Attempt to access non-existent pages. 8. Verify appropriate error messages.- App navigation should be smooth without any crashes. - Error messages should accurately indicate the nature of the problem.
  • 4.Below Possible Scenario-

  • Check application can open and close.

  • Check the default application are present on the mobile.

  • check if the user can launch the application.

  • check if the user can able to log in the application.

  • check that the Wi-Fi enables and shows a list of the connecting list available or able to see available networks, when on wifi.

  • check whether enabling WI-FI can connect or not and once it is shown a connected WI-FI name.

  • check whether the wifi setting is enabled or not and show a dropdown list of settings.

  • check if the wifi can be disabled or not.

  • verify that the sound, vibration and mute have shown in the display.

  • check whether the volume can adjust or not. like being able to increase and decrease a volume.

  • verify whether the application goes into a minimized mode at the time of getting notifications, phone calls etc…

  • verify whether the scrolling function is working or not.

  • verify that the text on the mobile app is readable and clear.

  • check that the app supports image capturing.

  • Verify all required fields-username, email, and password to log in to the page.

  • Verify that on passing valid values and user is allowed to log in to the application.

  • Verify if a user cannot log in with a valid username and password.

  • Verify the user is able to log in with a new password after the old password.

  • Verify whether the enter key is working or not.

  • Check if the notification is getting after the account is created successfully or not.

1
Subscribe to my newsletter

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

Written by

Santosh Sonawane
Santosh Sonawane