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 the form of a decision table
ANSWER:-
1.Equivalence class partition(ECP)
TEST DESCRIPTION | VALID PARTITION | INVALID PARTITION |
First name (specified character length) | John | 123John |
Last name (specified character length) | Doe | D2 |
Email (Valid email format with existing domain) | john.doe@example.com | johndoe@ or johndoe@example |
Phone number (must be 10 digits) | 9876543210 | 45674 |
2.Decision table testing:
Input | Test case 1 | Test case 2 | Test case 3 | Test case 4 | Test case 5 | Test case 6 | Test case 6 |
First name | Yes | - | No | Yes | Yes | Yes | Yes |
Last name | Yes | - | Yes | No | Yes | Yes | Yes |
Yes | - | Yes | Yes | No | Yes | Yes | |
Phone number | Yes | - | Yes | Yes | Yes | No | Yes |
Date /time | Yes | - | Yes | Yes | Yes | Yes | No |
status | Appointment sucessfully | All fields are required | Please enter the valid First Name | Please enter the valid Last Name | Please enter the valid email | Please enter the valid phone number | Please choose another date/time |
3.TEST CASE'S
TEST-CASE-ID | TEST DESCRIPTION | TEST CASE | TEST CONDITION | VALID | INVALID | EXPECTED RESULT |
TC_001 | Verify the first name | Enter valid user name | Need a valid user name. Example: Enter the character within specified range | Santosh | First name is correct | |
TC_002 | Verify The first name | Enter invalid user name | 12datu | First name is incorrect | ||
TC_003 | Verify the last name | Enter valid name | Need a valid name. Example: The character within specified range | sa8 | Last name is correct | |
TC_004 | Verify the last name | Enter invalid name | sa8 | Last name is incorrect | ||
TC_005 | Verify the email address | Enter 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.com | abcdd@gmail.com | Email is correct | |
TC_006 | Verify the email address | Enter 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.com | pasdfg999@gmail.com | Email is correct | |
TC_007 | Verify the email address | Enter 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.com | govind@yahoo.com | Email is correct | |
TC_008 | Verify the email address | Enter 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.com | bhaiya@gmail.com | Email is correct | |
TC_009 | Verify the email address | Enter the invalid email address | abcd@domain | Please enter the valid email | ||
TC_010 | Verify the email address | Enter the invalid email address | absce@domain.c | Please enter the valid email | ||
TC_011 | Verify the email address | Enter the invalid mail address | zxcv@--domain.com | Please enter the valid email | ||
TC_012 | Verify the phone number | Enter the valid phone number | Mobile number must accept 10 digits only | 8208101127 | Phone number is correct | |
TC_013 | Verify the phone number | Enter the valid phone number | Validate text box accepts only digits, not characters | 8208101127 | Phone number is correct | |
TC_014 | Verify the phone number | Enter the invalid phone number | Getting error message, the phone number must be less than 10 digits | 546372 | Please enter the valid phone number | |
TC_015 | Verify the phone number | Enter the invalid phone number | Getting error message, the phone number is greater than 10 digits | 98765432187654 | Please enter the valid phone number | |
TC_016 | Verify the phone number | Enter the invalid phone number | Enter the phone number with blank input space | 23456 78896 | Please enter the valid phone number | |
TC_017 | Verify the phone number | Enter the invalid phone number | Enter the phone number with special characters | 2345@#78896 | Please enter the valid phone number | |
TC_018 | Verify the date and time | Enter the valid date and time | Check the date and time for doctor availability (DD/MM/YYYY) and from 9.00 am to 10.00 pm | 23/02/2024 & 10.00 am | Date and time is correct | |
TC_019 | Verify the date and time | Enter the invalid date and time | 06/07/2023 & 11.00 pm | Please 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:-
Basic User Registration and Login:
Scenario: A basic user registers for the app and logs in successfully.
Steps:
Open the app and navigate to the registration page.
Fill in the required information (e.g., username, email, password) and submit the registration form.
Verify that the user is redirected to the login page after successful registration.
Enter the registered credentials and log in.
Expected Outcome: The basic user should be able to register and log in without any errors.
Premium User Features Access:
Scenario: A premium user accesses exclusive features available only to premium users.
Steps:
Log in to the app using premium user credentials.
Navigate to the sections of the app that are designated for premium users (e.g., premium content, advanced settings).
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.
Admin User Management:
Scenario: An admin user manages basic and premium user accounts.
Steps:
Log in to the app using admin user credentials.
Access the admin dashboard or user management section.
Perform actions such as adding new users, deleting existing users, upgrading basic users to premium, etc.
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 Scenario | Test Steps | Expected Results |
User Access Levels | 1. 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 Deletion | 1. 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 Handling | 1. 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.