STE_PR2
STE_PR2
a
#include <stdio.h> int
main() {
int i;
printf("Even numbers from 1 to 10 are:\n");
for (i = 1; i <= 10; i++) { if (i % 2 == 0)
{ printf("%d ", i);
}
}
return 0;
}
Test Cases :
TC2 Check for no input No input Program runs Program runs Pass
successfully successfully
without
specifying the
numbers
TC3 Check for negative Numbers -10 to -1 No output No output has been Pass
numbers should be displayed
displayed
1.b
Test Cases for Login Form
TC1 Login with valid Username: user1, Login successful Login Pass
credentials Password: pass123 successful
TC2 Leave both fields Username: (empty), Error: "Fields Error Pass
empty Password: (empty) required"
2.
TC1 All valid inputs Enter the details : Recharge Recharge Pass
Mobile: 9876543210, successful successful
State: MH,
Email
ritisha.bale@gmail.com ,
Amount: 200
TC2 Invalid mobile number Mobile: 123, Error: "Invalid Error Pass
State: MH, mobile number"
Email:
ritisha.bale@gmail.com ,
Amount: 200
TC4 Leave recharge amount Mobile: 9876543210, Error: "Amount Error Pass
blank State: MH, required"
Email:
ritisha.bale@gmail.com,
Amount: (empty)
TC6 Leave all fields blank Mobile: (empty), Error: "Fields Error Pass
State: (empty), required"
Email: (empty),
Amount: (empty)
TC7 Invalid state code Mobile: 9876543210, Error: "Invalid Error Pass
State: XYZ, state code"
Email:
ritisha.bale@gmail.com,
Amount: 200
TC10 Mobile number with Mobile: 98765ABCD1, Error: "Invalid Error Pass
invalid characters State: MH, mobile number"
Email:
ritisha.bale@gmail.com,
Amount: 200
TC11 Valid inputs without Mobile: 9876543210, Error: "Email Error Pass
email required"
State: MH, Email: (empty),
Amount: 200
TC12 Attempt to recharge Mobile: 9999999999, Error: "Mobile Error Pass
for unregistered State: MH, number not
number Email: registered"
ritisha.bale@gmail.com,
Amount: 200
3.
Test Cases for Hostel Admission Form
Test Objective Input Data Expected Result Actual Status
Case Result
No.
TC1 All valid inputs Name: Ritisha bale Admission form Submitted Pass
Age: 18, submitted successfully
successfully
Gender: Female ,
Address: ABC Street,
State: MH,
Email:ritisha.bale@gmail.com,
TC2 Invalid email Name: Ritisha , Age: 18, Error: "Invalid Error Pass
format Gender: Female, Address: ABC email"
Street, State: MH, Email:
test.gmail.com
TC3 Missing Name: (empty), Age: 18, Error: "Name is Error Pass
mandatory field Gender: Female, Address: ABC required"
(Name ) Street, State: MH, Email:
ritisha.bale@gmail.com
TC4 Missing Name: Ritisha , Age: (empty), Error: minimum Error Pass
mandatory field Gender: Female, Address: ABC "Age is
(Age) Street, State: MH, Email: required"
ritisha.bale@gmail.com
TC5 Invalid age (below Name: Ritisha , Age: 10, Error: "Age must Error Pass
minimum) Gender: Female, Address: ABC be at least 16"
Street, State: MH, Email:
ritisha.bale@gmail.com
TC6 Invalid age (above Name: Ritisha , Age:75, Error: "Age must Error Pass
maximum) Gender: Female, Address: ABC not exceed 25"
Street, State: MH, Email:
ritisha.bale@gmail.com
TC7 Invalid gender Name: Ritisha , Age: 18, Error: "Invalid Error Pass
input Gender: ABC, Address: ABC gender selection"
Street, State: MH, Email:
ritisha.bale@gmail.com
TC8 Leave all fields Name: (empty), Age: (empty), Error: "All fields Error Pass
blank Gender: (empty), Address: are required"
(empty), State: (empty),
Email: (empty)
TC9 Address field Name: Ritisha , Age: 18, Gender: Error: "Address Error Pass
exceeding Female, Address: (500 is too long"
character characters), State: MH, Email:
limit ritisha.bale@gmail.com
TC10 Valid inputs with Name: Ritisha , Age: 18, Gender: Admission form Submitted Pass
state dropdown Female, Address: ABC Street, submitted successfully
selection State: Selected, Email: successfully
ritisha.bale@gmail.com
TC11 Special characters Name: ritu@123%, Age: 18, Error: "Name Error Pass
in name Gender: Female, Address: ABC contains invalid
Street, State: MH, Email: characters"
ritisha.bale@gmail.com
TC12 Valid inputs with Name: Ritisha , Age: 18, Gender: Admission form Submitted Pass
alternate address Female, Address: submitted successfully
format House No. 12, State: MH, successfully
Email: ritisha.bale@gmail.com
TC3 Login with valid Username: 9876543210, Password: Login Login Pass
phone and Pass@123 successful successful
password
TC4 Login with invalid Username: 123, Password: Error: "Invalid Error Pass
phone number Pass@123 phone number"
TC5 Login with empty Username: (empty), Password: Error: Error Pass
username Pass@123 "Username
required"
TC10 SQL injection in Username: admin';--, Password: Error: "Invalid Error Pass
username pass123 input"
TC1 Successful Name: Ritisha , Age: 18, Mobile: 9876543210, Account Accoun Pass
account Email: ritisha.bale@gmail.com, Deposit: 5000 created t
creation successfull created
y
TC3 Age less than Name: Ritisha, Age: 15, Mobile: 9876543210, Email: Error: "Age Error Pass
required ritisha.bale@gmail.com, Deposit: 5000 must be 18
(below 18) or older"
TC9 Valid inputs Name:ritisha, Age: 65, Mobile: 9876543210, Email: Account Accoun Pass
for senior ritisha.bale@gmail.com, Deposit: 5000 created t
citizen (age successfull created
60) y
7. MS word
TC001 Verify saving a new New file, text added, Document is saved successfully As Pass
document save button clicked in the specified location expected
TC002 Verify overwriting Existing file, text Existing file is updated with new As Pass
an existing modified, save button content expected
document clicked
TC003 Verify "Save As" Existing file, "Save Document is saved as a PDF file As Pass
functionality for As" selected, PDF in the specified location expected
PDF format format chosen
TC004 Verify auto-save Open file, make changes, Changes are saved As Pass
functionality wait for autosave automatically at defined expected
intervals
TC005 Verify saving a New file, text added, Document is saved with As Pass
document with a password set during password protection expected
password save
TC006 Verify saving with an New file, invalid file Error message displayed As Pass
invalid file name name (e.g., special indicating invalid file name expected
characters)
TC007 Verify saving to a New file, directory Error message displayed As Pass
non-existent directory path does not exist indicating invalid directory expected
path
TC008 Verify saving a Open file, no changes No changes are saved; file As Pass
document without made, save button remains the same expected
changes clicked
TC009 Verify saving a very New file, large File is saved successfully As Pass
large file content (e.g., >1GB), without performance issues expected
save button clicked
TC010 Verify save New file, text added, Error message displayed As Pass
functionality when disk space insufficient indicating insufficient disk expected
disk is full space
TC011 Verify "Save As" Existing file, "Save As" Document is saved in the As Pass
functionality for selected, different specified format expected
different formats formats chosen (e.g.,
.txt, .docx)
TC012 Verify saving a New file, select save Document is saved As Pass
document in location as successfully to the cloud expected
OneDrive/Cloud OneDrive/Cloud location
8
.test Cases for ATM Withdrawal Functionality
Test Objective Input Data Expected Result Actual Result Status
Case
No.
TC002 Verify insufficient Valid card, valid "Insufficient funds" As expected Pass
funds error PIN, amount > message is displayed “Insufficient funds"
balance message is displayed
TC003 Verify error for Valid card, invalid "Invalid PIN" error As expected Pass
invalid PIN PIN message is displayed Invalid PIN" error
message is displayed
9.
TEST PLAN
14 Approvals Lead
Test engineer 1
Test engineer 2
Test engineer 3
Test engineer 4
10.
TEST PLAN save
functionality of Ms word
11 Staffing and Training Needs To perform the tasks, you need to have the
following knowledge and skills:
14 Approvals Lead
Test engineer 1
Test engineer 2
Test engineer 3
Test engineer 4