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
Ans:
Added in image format as unable to add the Excel fields over here
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.
Ans:
*Test Scenario 1: Role-Based Access Control *
Objective: Verify that Basic, Premium, and Admin users have the correct permissions.
Test Steps:
-
Basic User Access:
- Log in as a Basic User.
- Attempt to access premium features (e.g., advanced settings, paid content).
- Attempt to access admin-only functions (e.g., user management).
-
Premium User Access:
- Log in as a Premium User.
- Verify access to all app features (including premium content).
- Attempt to access admin-only functions.
-
Admin User Access:
- Log in as an Admin User.
- Verify access to all features, including advanced settings and user management.
Expected Results:
- Basic User:
- Can only access limited features.
- Restricted actions show an "Access Denied" error or are hidden.
- Premium User:
- Can access all non-admin features.
- Admin functions are restricted.
- Admin User:
- Can access all features, including admin settings.
Test Scenario 2: Account Creation & Deletion
Objective: Ensure users can create and delete accounts securely, with proper password validation and email confirmation.
Test Steps:
-
Account Creation:
- Register a new account with:
- A weak password (e.g., "1234") → Should fail.
- A valid password (e.g., "Secure@123") → Should succeed.
- Check if a confirmation email is sent upon successful registration.
- Register a new account with:
-
Account Deletion:
- Log in and delete the account.
- Verify the account is removed from the system (cannot log in again).
Expected Results:
- Weak passwords are rejected with an error message (Password is Weak. include Special characters and in alphanumeric format with both upper case and lower case).
- Strong passwords allow successful registration. (Registered successful)
- Confirmation email is received after signup.
- Deleted accounts are permanently removed (no further login possible).
Test Scenario 3: App Navigation & Error Handling
Objective: Ensure smooth navigation, no crashes, and proper error messages for unauthorized actions.
Test Steps:
-
Navigation Testing:
- Open different app screens rapidly.
- Switch between features (e.g., profile, settings, content pages).
- Test on different devices & network conditions (3G, 4G, Wi-Fi).
-
Unauthorized Action Testing:
- As a Basic User, try to access a Premium-only feature.
- As a Premium User, try to access an Admin-only feature.
-
Performance Testing:
- Monitor app responsiveness during heavy usage.
- Check for crashes or freezes.
Expected Results:
- App transitions smoothly between screens without lag/crashes.
- Unauthorized actions show’s error message (e.g., "You do not have permission").
- No performance degradation under normal usage.
Additional Scenarios:
Additional Scenario1: Entering Invalid Inputs and Verify the behavior on iOS & Android if applicable
Objective: Test with invalid inputs by entering invalid inputs and also ensuring the smooth navigation of app in different OS like iOS and Android
Test Steps:
1.Test with invalid inputs:
- Click on submit button without entering any data on the mandatory fields
- Try to access expired sessions
2.Cross-Platform Testing:
- Verify behavior on iOS & Android
Expected Results:
-Error message should be displayed while mandatory field is skipped (e.g., “Fill the required fields”).
-App should run smooth on both OS without any issue

Top comments (0)