Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

STE_PR

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

1.

a) Write program for calculating even numbers from 1 to 10 and design test cases for the same (4 M
Program) (5 test cases).
#include <stdio.h>
int main()
{
for (int i = 1; i <= 10; i++)
{
if (i % 2 == 0)
{
printf("%d\n", i);
}
}
return 0;
}

Sr. Test Test Case Steps to be Expected Result Actual Result Status
No. Case Description followed
ID
1 TC_1 Verify even 1. Run the program. The program The program Pass.
numbers are 2. Observe the should print the prints the even
printed. output. even numbers: 2, numbers: 2, 4, 6,
4, 6, 8, 10. 8, 10.
2 TC_2 Check if no 1. Run the program. Only even Only even Pass.
odd numbers 2. Verify that no numbers 2, 4, 6, numbers 2, 4, 6,
are printed. odd numbers (1, 3, 8, 10 should be 8, 10 are printed.
5, 7, 9) are printed. printed. No odd No odd numbers
numbers should appeared.
appear.
3 TC_3 Verify the 1. Run the program. The loop should The loop runs for Pass.
loop runs from 2. Check that the run for all all numbers from
1 to 10. loop runs for values numbers from 1 1 to 10, and prints
between 1 to 10. to 10, and print only even
only even numbers (2, 4, 6,
numbers (2, 4, 6, 8, 10).
8, 10).
4 TC_4 Verify correct 1. Run the program. The program The program Pass.
even number 2. Check the order should print the prints the even
sequence. of the printed even even numbers in numbers in the
numbers. the correct order: correct order: 2,
2, 4, 6, 8, 10. 4, 6, 8, 10.
5 TC_5 Verify loop 1. Run the program. The program The program Pass.
runs exactly 5 2. Count the should print prints exactly 5
times. number of times an exactly 5 even even numbers.
even number is numbers.
printed.

b) Design test cases for login form (4 test cases).


Sr. Test Test Case Steps to be Expected Result Actual Result Status
No. Case ID Description followed
1 TC_1 Valid User 1. Open the login User should User successfully Pass.
Login form. successfully log logs in and is
2. Enter valid in and is redirected to the
username (e.g., redirected to the dashboard or
"testuser"). dashboard or home page.
3. Enter correct home page.
password (e.g.,
"password123").
4. Click "Login".
2 TC_2 Invalid Login 1. Open the login Error message Error message Pass.
with Incorrect form. should appear: appears:
username. 2. Enter invalid "Incorrect "Incorrect
username (e.g., username or username or
"invaliduser"). password." password."
3. Enter valid
password (e.g.,
"password123").
4. Click "Login".
3 TC_3 Invalid Login 1. Open the login Error message Error message Pass.
with Incorrect form. should appear: appears:
Password 2. Enter valid "Incorrect "Incorrect
username (e.g., username or username or
"testuser"). password." password."
3. Enter incorrect
password (e.g.,
"wrongpassword").
4. Click "Login".
4 TC_04 Login Attempt 1. Open the login Error message Error message Pass.
with Empty form. should appear: appears: "Please
Fields 2. Leave both "Please enter both enter both
username and username and username and
password fields password." password."
empty.
3. Click "Login".

2. Design test cases for online mobile recharge (Data fields are Mobile number, state, email id, recharge
amount) (12 test cases).
Sr. Test Test Case Steps to be Expected Result Actual Result Status
No. Case ID Description followed:
1 TC_1 All valid Enter the details : Recharge should Recharge is Pass.
inputs. Mobile: be successful. successful.
6473648678,
State: MH,
Email:
example@email.com
Amount: 200
2 TC_2 Invalid mobile Enter the details : Error message Error message Pass.
number. Mobile: 98765, should appear: appears: "Invalid
State: MH, "Invalid mobile mobile number".
Email: number".
example@email.com
Amount: 200
3 TC_3 Invalid email. Enter the details : Error message Error message Pass.
Mobile: should appear: appears: "Invalid
6473648678, "Invalid Email". Email".
State: MH,
Email:
example@com
Amount: 200
4 TC_4 Leave Enter the details : Error message Error message Pass.
recharge Mobile: should appear: appears:
amount empty. 6473648678, "Amount "Amount
State: MH, required". required".
Email:
example@email.com
Amount:
5 TC_5 Invalid Enter the details : Error message Error message Pass.
recharge Mobile: should appear: appears: "Invalid
amount (Small 6473648678, "Invalid amount" amount"
Amount). State: MH,
Email:
example@email.com
Amount: 1
6 TC_5 Invalid Enter the details : Error message Error message Pass.
recharge Mobile: should appear: appears: "Invalid
amount (Large 6473648678, "Invalid amount" amount"
Amount). State: MH,
Email:
example@email.com
Amount: 99999
7 TC_6 Leave all Mobile: Error message Error message Pass.
fields empty. State: should appear: appears: “Enter
Email: “Enter details”. details”.
Amount:
8 TC_7 Invalid state. Enter the details : Error message Error message Pass.
Mobile: should appear: appears: “Invalid
6473648678, “Invalid state”. state”.
State: MHH,
Email:
example@email.com
Amount: 499
9 TC_8 Recharge for Enter the details : Error message Error message Pass.
unregistered Mobile: should appear: appears: “Mobile
number. 1111111111, “Mobile number number not
State: MH, not registered”. registered”.
Email:
example@email.com
Amount: 499
10 TC_10 Mobile Enter the details : Error message Error message Pass.
number with Mobile: should appear: appears: "Invalid
invalid 6473648abc, "Invalid mobile mobile number".
characters. State: MH, number".
Email:
example@email.com
Amount: 499
11 TC_11 Leave email Enter the details : Error message Error message Pass.
empty. Mobile: should appear: appears: "Email
6473648678, "Email required". required".
State: MH,
Email:
Amount: 200
12 TC_12 Leave mobile Enter the details : Error message Error message Pass.
number Mobile: , should appear: appears: "Mobile
empty. State: MH, "Mobile number number
Email: required". required".
example@email.com
Amount: 499

3. Design test cases for hostel admission form of your institute (12 test cases).
10. Write test plan for whatsapp (Consider chat functionality and write test plan).

1. Test Plan Identifier: TP_01


2. Introduction: To ensure WhatsApp's chat functionality is working smoothly, allowing
users to send, receive, and manage messages.

3. Test Items: 1. Sending messages


2. Receiving messages
3. Deleting messages
4. Group chat functionality

4. Features to be tested: 1. Send and receive text messages


2. Send multimedia (images, videos, files)
3. Group chat creation and management
4. Message deletion (for self and all)
5. Star/mark messages

5. Approach: - Functional testing for all chat-related actions


- Non-functional testing for performance and usability.
- Positive and negative tests for edge cases.

6. Item Pass/Fail Criteria: - All test cases must pass with no major issues.
- System must handle large group chats efficiently.

7. Suspension / Resumption Suspend if major bugs or crashes occur.


Criteria: Resumption after the bug fixes.

8. Test Deliverables: 1. Test Plan


2. Test Cases
3. Test Case Specification
4. Defect Report
5. Test Summary Report

9. Test Tasks: 1. Writing the test plan


2. Writing test cases
3. Developing success criteria for testing
4. Conducting tests
5. Creating and reviewing test reports
10. Environmental Needs: WhatsApp mobile app, Smartphone, Internet connection.
11. Responsibilities: - Test Engineer 1: Sending and receiving messages, group chat.
- Test Engineer 2: Message deletion, starred messages, multimedia sending.

12. Staffing and Training Knowledge of mobile app testing and WhatsApp's chat features.
needs:
13. Schedule: Deadline is 31/12/24 by 5:00 PM.

14. Risks and App server downtimes or update issues.


Contingencies:
15. Approvals: Lead Test Engineer, Test Engineer 1, Test Engineer 2.

You might also like