Testing File - Merged
Testing File - Merged
GREATER NOIDA
LAB RECORD
BMCA0214P
Master of Computer Applications
(Session : 2024 - 2025)
Affiliated to
4 Write the Test cases based on Terms and Condi ons field of
Registra on Page.
EXPERIMENT - 1
else:
print(num,"is odd")
elif num == 0:
print("zero is neither positive nor negative")
else num<0:
if num%2 ==0:
print(num,"is even")
else:
print(num,"is odd")
3
Experiment 2:
Aim: Write down the possible reason for failure of
matrix multiplication.
Objective: Understand the failure of matrix
multiplication.
Code:
row=int(input("Enter the number of row: "))
col=int(input("Enter the number of column: "))
a=[]
print("Enter the value of a matrix: ")
for i in range(row):
x=[]
for j in range(col):
x.append(int(input()))
a.append(x)
b=[]
print("Enter the value of b matrix: ")
for i in range(row):
x=[]
23
for j in range(col):
x.append(int(input()))
b.append(x)
result=[]
for i in range(row):
x=[]
for j in range(col):
x.append(0)
result.append(x)
for i in range (0,len(a)):
for j in range(0,len(b)):
for k in range(0,len(b)):
result[i][j] += a[i][k]*b[k][j]
Test Cases:
Test case No: 1
Test Case Name: Equal Number of Row and
Column
Input Expected Actual Result
outcome outcome
Enter the number Multiplication of Multiplication of
of row: 2 matrix a and b is : matrix a and b is :
Pass
Enter the number [12, 7] [12, 7]
of column: 2
[11, 7] [11, 7]
Enter the value of
a matrix:
2
3
3
1
Enter the value of
b matrix:
3
2
2
1
25
26
Test Cases:
Test Case No: 2
Test Case Name: Cols of 1st Matrix not equal to row
of 2nd Matrix.
Input Expected Actual Result
Outcome Outcome
Enter the number of Multiplication of Multiplication of
row: 2 matrix a and b is : matrix a and b is :
Pass
Enter the number of [31, 18, 0] [31, 18, 0]
column: 3
[60, 14, 0] [60, 14, 0]
Enter the value of a
matrix:
5
3
7
2
8
1
Enter the value of b
matrix:
2
3
5
7
1
6
27
28
Experiment 3
Aim: Test Case Based on UI of Registration.
Test Test Description Expected Actual Result
case
Input
outcome outcome
I.d
TC2 Verify all Account number, CIF All field All field Pass
input data number, Branch code, IFSC, should be should be
present in country, Registered mobile available available
input field number, facility
required,Captcha
TC5 Verify A/c A/C no. should be correct Should give No popup Pass
No. Should and provided by same bank. popup if A/C for correct
be no. is A/C no.
authenticate incorrect.
d
TC6 Verify CIF Inputting the value of CIF Alphabet Alphabet Pass
number number in terms of value should value should
should be alphabet. be disable be disable
numeric.
TC8 Verify CIF CIF no. should be correct and Should give Should give Pass
Number provided by bank. pop up if CIF pop up if CIF
should be no. is no. is
authenticate incorrect. incorrect
d
TC9 Verify Mobile no. must have a 10 Should pop Should pop Pass
Mobile no. digit limit with registered in up if mobile up if mobile
should be bank. is less than is less than
registered 10 digit or 10 digit or
with bank. incorrect. incorrect.
TC10 Captcha Captcha will be given and Captcha is Captcha is Pass
should be alphanumeric . present. present.
available.
30
31
Experiment 4
Aim: Write the test cases based on terms and conditions
field of registration page.
EXPERIMENT 5:
AIM: Write the Test cases based on Performance in
Registration Page.
5.Form Field Type quickly in all The Fields The field response Pass
Input Lag. input Fields and should quickly.
check for any lag respond
or delay. instantly
without
delay.
6.Database Measure the Queries Queries execute Pass
Query time taken to should within 1 second.
Performance. verify and store execute
user details in the within 1-3
Database upon second.
registration.
Experiment 6:
Aim: Write the Test case for Functionality in Registration Page.
7. Validate Leave the email User should see Error message Pass
email id by field blank. an error displayed:
giving blank. message ”Email address
indicating the is required”.
email address is
required.
10. Validate Enter a valid User should see Error message Pass
password username but an an error displayed:
working. invalid password. message “Invalid
indicating password
Password is not format”.
valid.
41
42
Experiment 7
Objective: Write the test cases based on security in
registration page.
Test Cases Steps Expected Actual Remarks
Outcome outcome
1.Verify Check if the registration The Page should The page PASS
HTTPS page URL start with be secured with start with
encryption. https:// HTTPS HTTPS.
2. SQL Enter SQL queries ( ‘ OR The system The system PASS
injection 1=1--) in input fields should reject shows error
Prevention. and submit. malicious input notification.
and displayed an
error.
3.Cross-site Enter The script should The system PASS
scripting(XSS) <script>alert<(‘XSS’)</s not Execute; an shows error
prevention. cript> error should be message.
In input fields. displayed.
4. Password Register with and check Password should The PASS
Encryption. if it’s stored in plain be hashed and Password
text in the database. salted in the show in
database. form of
asterisk(*).
5.Account Try Registering with an A gentle error Error PASS
Enumeration existing email and message should message
Prevention. observe the error be displayed(e.g. displayed
message. “Unable to “You are
register”) to already
prevent email register”.
enumeration.
6. Brute Force Try Multiple failed The system should Block after 5 PASS
Attack registration with the same implement rate attempted
Prevention. email and incorrect timing rate limiting Alert message
password. or CAPTCHA after send to email.
several failed
attempts.
43
7.CSRF (Cross- Check if the registration A unique CSRF token A unique PASS
site-Request- request include a CSRF should be required CSRF token is
Forgery) token. for form submission. required for
protection. form
submission.
8.Password Enter a weak password like The system should A message PASS
strength 123456 and try to register. enforce strong displayed
Enforcement. password rules (e.g. “enter a
Uppercase, strong
lowercase, special password”.
characters)
9. Email Register with a valid email The system should The system PASS
verification and check if verification is send a verification send a
Process. required. email and require verification
confirmation before email and
login. require
confirmation
before login.
10. Session Stay idle on the registration The session should The session PASS
Timeout page for a long time and expire, requiring the expire after 5
Handling. then submit the form. user to refresh or re- mintute.
enter details.
44
45
Experiment 8
Aim: Write the Test cases for functionality in Login Page.
TEST CASES STEPS EXPECTED ACTUAL RESULT REMARKS
RESULT
5. Verify Leave the Password User should see Error message PASS
Password by field blank. an error displayed:
filling Blank. message “Please fill out
indicating this field”.
Password is
required.
46
8.Verify Login Enter a valid User should see Error message PASS
credentials. username but an an error displayed:
invalid password. message “Invalid
indicating invalid username or
credentials. password.”.
9.Verify Login Enter valid User should see Error message PASS
credentials username and an error displayed:
with leading password, but with message “Invalid
or trailing leading or trailing indicating invalid username or
spaces. spaces. credentials. password.”.
Experiment 9
Aim: Write the Test cases based on UI in Login Page.
1.Verify the Check the The login page should Username Pass
presence of presence of have a username input input field
username username input field. present.
input field. field.
2.Verify the Check the The login page should Password input Pass
presence of presence of have a Password input field present.
Password Password input field.
input field. field.
3.Verify the check the The login page should Login button Pass
presence of presence of login have a login button. present.
login button. button.
5.Verify the Check the The Login page should “Remember Me Pass
presence of a presence of a have a checkbox for “ checkbox
checkbox for checkbox for the “Remember Me” present.
“Remember “Remember Me”. option.
Me”.
6.Verify the Check the layout The username and Input field Pass
layout and and alignment of Password input fields aligned and
alignment of input fields. should be aligned properly
input fields. properly and have spaced.
consistent spacing.
49
7.Verify the Check the Error message for Error messages Pass
visibility and visibility and invalid credentials or displayed near
placement of placement of missing fields should the respective
error message. error message. be displayed fields.
prominently and in an
appropriate location.
8.Verify the Check the The login page should “Create Pass
visibility of a visibility of a a link to create a new Account “ link
“Create “Create Account” account. visible.
Account” link. link.
9.Verify the Check the The login page should Login page Pass
responsiveness responsiveness of adapt to different adjusts well to
of the login the login page. screen sizes and different screen
page. resolutions. sizes.
10.Verify the Check the Overall The login page should Visual design Pass
Overall visual visual design and have a visually follows the
design and branding. appealing design application’s
branding. consistent with the branding
application’s branding. guidelines.
50
51
Experiment 10
Aim- write the Test case based on performance in Login Page.
Test Cases Steps Expected Actual Outcome Remarks
outcome
1.Page Load Time Measure the time The Page The Page is open Pass
taken for the should Load within 1 seconds.
Login page to within 3
fully load. seconds.
2.Response Time for Fill in all details The Form The page is submitted Pass
Form Submission. and submit the should be within 1 second.
form, measuring submitted
the response within 2-5
time. second.
3.System Behavior Simulate a slow The page The Page open with a Pass
with slow Internet. internet should still load slightly delay(2 – 3
connection and properly with a minutes).
try loading the slight delay(2 –
Login page. 3 minutes).
4.Handling High Simulate multiple The Page The page is having Pass
Traffic Load. user(e.g. 100-500 should handle high traffic due to
concurrent users) high traffic which system(Login
accessing the without page) closed down.
Login page. crashing or
slowing down
significantly.
5.Form Field Input Type quickly in all The Fields The field response Pass
Lag. input Fields and should respond quickly.
check for any lag instantly
or delay. without delay.
6.Database Query Measure the time Queries should Queries execute Pass
Performance. taken to verify execute within within 1 second.
and store user 1-3 second.
details in the
Database upon
Login.
52
9.Performance on Open the login The page The page is load Pass
Different Devices. page on various should load smoothly across all
devices (mobile, smoothly across devices.
tablet, desktop) . all devices.
10.Loading time of Open the Login The Page The loading time is 30 Pass
login page in page on various should load second.
different devices. devices (mobile, within 1
tablet, desktop) minutes.
and measure
response time.
Experiment 11
Aim- write the Test case based on security in Login Page.
Test Cases Steps Expected Outcome Actual Outcome Remarks
1.verify HTTPS Check if the The page should be The page start with Pass
encryption Login page URL secured with HTTPS HTTPS.
start with
https://
2. SQL injection Enter SQL The system should The system shows Pass
Prevention queries(‘ OR reject malicious input error notification.
1=1--) in input and display an error
fields and
submit.
3. Cross-site Enter The script should not The system shows Pass
scripting(XSS) <script>alert(‘X Execute ; an error error message.
prevention. SS’) </script>In should be displayed.
input fields.
4. Password Check the login Password should be The password show in Pass
verification. page by giving hashed and salted in form of asterisk(*).
correct id and the login page.
password.
6.Brute Force Try Multiple The system should Block after 5 Pass
Attack failed Login implement rate attempted. Alert
Prevention. with the same timing rate limiting or message popup to
username and CAPTCHA after screen.
incorrect several failed
passwords. attempts.
55
7. CSRF (Cross- Check if the A unique CRSF token The CRSF Token is Pass
Site-Request- login request should be required required.
Forgery) include a CSRF for form submission.
Protection. token.
8. verify Login Try Login with A Error message Error message Pass
credentials. incorrect should be displayed displayed “ Incorrect
username and (e.g. “Wrong Username or
incorrect credentials”). Password.”
password.
10. verify Login Blank both A popup message A popup message Pass
page in term of username and should be displayed displayed “Enter the
field are blank. password filed “Enter the Username Username and
and Try to and Password”. Password”.
login.
56
57
Experiment 12
Aim: Write System Specification for ATM and make report on
various bugs.
Features to be tested:
1. Validity of the Card.
2. Withdraw transaction flow of ATM.
3. Authentication of the User’s.
4. Dispense the cash from the account.
5. Verify the balance enquiry.
6. Change PIN number.
Bugs Identified:
Bug ID Bug Steps to Expected Actual Result Status
description reproduce result
4.Enter the
sufficient
amount to
withdraw
from the
account.
5.Dispense
the cash
screen &
amount to be
Deducted
from the
account.
59
Experiment 13