STE_PR
STE_PR
STE_PR
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.
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).
6. Item Pass/Fail Criteria: - All test cases must pass with no major issues.
- System must handle large group chats efficiently.
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.