KEMBAR78
Testing File - Merged | PDF | Password | Computing
0% found this document useful (0 votes)
15 views71 pages

Testing File - Merged

The document is a lab record for the Software Testing Lab course at Noida Institute of Engineering & Technology, detailing various experiments and test cases related to programming constructs and software testing. It includes specific test cases for constructs like if...else, for, while, do...while, and switch, as well as UI testing for registration and login pages in an online banking system. Additionally, it discusses matrix multiplication failure reasons and includes test cases for validating input fields in a registration form.

Uploaded by

bijendra3mr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views71 pages

Testing File - Merged

The document is a lab record for the Software Testing Lab course at Noida Institute of Engineering & Technology, detailing various experiments and test cases related to programming constructs and software testing. It includes specific test cases for constructs like if...else, for, while, do...while, and switch, as well as UI testing for registration and login pages in an online banking system. Additionally, it discusses matrix multiplication failure reasons and includes test cases for validating input fields in a registration form.

Uploaded by

bijendra3mr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 71

NOIDA INSTITUTE OF ENGINEERING & TECHNOLOGY

GREATER NOIDA

LAB RECORD

SOFTWARE TESTING LAB

BMCA0214P
Master of Computer Applications
(Session : 2024 - 2025)
Affiliated to

Dr. A.P.J. Abdul kalam Technical University, Lucknow (U.P.)

Under Guidance of: Submitted by:


Sachin Kashyap Name: MANISH KUMAR SINGH
(Asst. Professor) Roll No: 2401330140179
(Department of Computer Applications) ERP: - 0241MCA350
INDEX

S. No. Experiment Date Sign


1 Write the Test cases for programs in any language which
demonstrate the working of the following constructs
i) do-while ii) while iii) if…else iv) switch v) for.
2 Write down the possible reasons for failure of Matrix
mul plica on.

3 Write the Test cases based on UI of Registra on Page in


Online Banking System.

4 Write the Test cases based on Terms and Condi ons field of
Registra on Page.

5 Write the Test cases based on Performance in Registra on


Page.

6 Write the Test cases for Func onality in Registra on Page.

7 Write the Test cases based on Security in Registra on Page.

8 Write the Test cases for Func onality in Login Page.

9 Write the Test cases based on UI in Login Page.

10 Write the Test cases based on Performance in Login Page.

11 Write the Test cases based on Security in Login Page

12 Write system specifica ons for ATM and make report on


various bugs.

13 Write the Test cases for Banking applica on in respect of


Registra on Page and Login Page.
1

EXPERIMENT - 1

1)Write the test case for program in any language which


demonstrate the working of the following construct
i) if...else
ii)For
iii)While
iv)do…while
v)switch
2

Aim 1: To demonstrate the working of if...else construct.


Code :
num=int(input("Enter the number: "))
if num>0:
if num%2 ==0:
print(num,"is even")

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

Test case1-Positive value

Input Expected outcome Actual Outcome Result


5 5 is odd number 5 is odd number Pass
7 7 is odd number 7 is odd number Pass
2 2 is even number 2 is even number Pass
196 196 is even number 196 is even number Pass
4

Test case2: Negative number

Input Expected output Actual Output Result


-7 -7 is odd number -7 is odd number Pass
-2 -2 is even number -2 is even number Pass
-5 -5 is odd number -5 is odd number Pass
-196 -196 is even number -196 is even number Pass
5

Test case 3: Out of the Range


Input Expected output Actual outcome Result
527687273 527687273 is odd 527687273 is Pass
odd
-23762572 -23762572 is even -23762572 is Pass
even
298653757 298653757 is odd 298653757 is Pass
odd
-29816370 -29816370 is even -29816370 is Pass
even
6

Aim2: To demonstrate the working of For construct.


Code:
for i in range(4):
num=int(input("Enter the number: "))
if num>0 or num<0:
if num%2==0:
print(f"{num} is an even number")
else :
print(f"{num} is odd")
else:
print("zero is neither positive nor negative")
7

Test case1-Positive value

Input Expected outcome Actual Outcome Result


5 5 is odd number 5 is odd number Pass
7 7 is odd number 7 is odd number Pass
2 2 is even number 2 is even number Pass
196 196 is even number 196 is even number Pass
8

Test case2: Negative number

Input Expected output Actual Output Result


-7 -7 is odd number -7 is odd number Pass
-2 -2 is even number -2 is even number Pass
-5 -5 is odd number -5 is odd number Pass
-196 -196 is even number -196 is even number Pass
9

Test case 3: Out of the Range


Input Expected Actual Result
output outcome
527687273 527687273 is 527687273 Pass
odd is odd
-23762572 -23762572 is -23762572 Pass
even is even
298653757 298653757 is 298653757 Pass
odd is odd
-29816370 -29816370 is -29816370 Pass
even is even
10

Aim 3: To demonstrate the working of while construct.


Code:
i=0
while i<4:
num=int(input("Enter the number: "))
i+=1
if num>0 or num<0:
if num%2==0:
print(f"{num} is an even number")
else :
print(f"{num} is odd")
else:
print("zero is neither positive nor negative")
11

Testcase1: positive value

Input Expected outcome Actual Outcome Result


5 5 is odd number 5 is odd number Pass
7 7 is odd number 7 is odd number Pass
2 2 is even number 2 is even number Pass
196 196 is even number 196 is even number Pass
12

Test case2: Negative number

Input Expected output Actual Output Result


-7 -7 is odd number -7 is odd number Pass
-2 -2 is even number -2 is even number Pass
-5 -5 is odd number -5 is odd number Pass
-196 -196 is even number -196 is even number Pass
13

Test case 3: Out of the Range


Input Expected Actual Result
output outcome
527687273 527687273 is 527687273 Pass
odd is odd
-23762572 -23762572 is -23762572 Pass
even is even
298653757 298653757 is 298653757 Pass
odd is odd
-29816370 -29816370 is -29816370 Pass
even is even
14

Aim 4: To demonstrate the working of Do...While


construct.
CODE:
#include <stdio.h>
int main() {
int num,i;
i=0;
do {
printf("Enter a number : ");
scanf("%d", &num);
if (num == 0) {
printf(“zero is neither even nor odd”);
}
if (num % 2 == 0) {
printf("%d is even\n", num);
} else {
printf("%d is odd\n", num);
}i+=1;
} while (i<4);
return 0;
}
15

Test case 1: Positive value

Input Expected outcome Actual Outcome Result


5 5 is odd number 5 is odd number Pass
7 7 is odd number 7 is odd number Pass
2 2 is even number 2 is even number Pass
196 196 is even number 196 is even number Pass
16

Test case2: Negative number

Input Expected output Actual Output Result


-7 -7 is odd number -7 is odd number Pass
-2 -2 is even number -2 is even number Pass
-5 -5 is odd number -5 is odd number Pass
-196 -196 is even number -196 is even number Pass
17

Test case 3: Out of the Range


Input Expected Actual Result
output outcome
52768727356 52768727356 is 1229119804 is Fail
even even
-2376257223 -2376257223 is 1918710073 is Fail
odd odd
29865375787 29865375787 is -199395285 is Fail
odd odd
-2981637028 -2981637028 is 1313330268 is Fail
even even
18

Aim5- To demonstrate the working of Switch construct.


Code:
#include <stdio.h>
int main() {
int num;
printf("Enter an integer: ");
scanf("%d", &num);
int remainder = num % 2;
switch (remainder) {
case 0:
printf("%d is even.\n", num);
break;
case 1:
case -1:
printf("%d is odd.\n", num);
break;
}
return 0;
}
19

Test case 1: Positive value

Input Expected outcome Actual Outcome Result


5 5 is odd number 5 is odd number Pass
7 7 is odd number 7 is odd number Pass
2 2 is even number 2 is even number Pass
196 196 is even number 196 is even number Pass
20

Test case2: Negative number

Input Expected output Actual Output Result


-7 -7 is odd number -7 is odd number Pass
-2 -2 is even number -2 is even number Pass
-5 -5 is odd number -5 is odd number Pass
-196 -196 is even number -196 is even number Pass
21

Test case 3: Out of the Range


Input Expected Actual Result
output outcome
527834687273 527834687273 -446290135 Fail
is odd is odd
-23772362572 -23772362572 1997441204 Fail
is even is even
298612353756 298612353756 -2035356964 Fail
is even is odd
-298987216377 -298987216377 1660494343 Fail
is odd is even
22

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]

print("Multiplication of matrix a and b is :")


for r in result:
print(r)
24

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

TC1 Verify 1)Open Registration Registration Pass


Registration https://retail.onlinesbi.sbi/ page is open page is open
successfully successfully
Page is load 2)Open new registration
button which available in
successfully
given site.

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

TC3 Verify “I “I agree” button is available “I agree” “I agree” Pass


agree” and click button is working button is button is
Button is after input all data. available available
available and clickable and clickable
and clickable after all after all
input is input is
filled. filled.

TC4 “I agree” Verify “I agree” Button is “I agree” “I agree Fail


Button is available and clickable button ”button is
available without filling all data. should be enable
and clickable disable
without
filling all
data
29

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.

TC7 Verify Inputting the value of branch Alphabet Alphabet Pass


Branch number in terms of value should value should
number alphabet. be disable be disable
should be
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.

Test cases Steps Expected Actual Remarks


Result Result
1.Verify the Navigate to The checkbox The checkbox PASS
presence of the the should be visible is visible and
Terms and registration and clickable. clickable.
Condition page and
checkbox. check if the
Terms and
Conditions
checkbox is
present.
2. Verify that the Click on the The terms and The terms and PASS
Terms and “Terms and conditions page conditions
Conditions link is Conditions” or a popup page are
clickable. link. should be clickable .
clickable.
3.Verify that Try The “Register” The “Register” PASS
registration is submitting button should button should
disabled if the the form remain remain
checkbox is without disabled, or an disabled.
unchecked. checking the error message
Terms and should appear.
Conditions
checkbox.
32

4.Verify Fill in all Registration Registration PASS


successful required should be successful, and
registration fields and successful, and the user are
when the check the the user should redirected to
checkbox is Terms and be redirected to the login page.
checked. Condition the login page.
checking
before
submitting.
5.Verify that the Load the The Terms and The Terms and PASS
checkbox registration Conditions Conditions
remains page and checkbox checkbox
unchecked by observe the should be should is
default. state of the unchecked by unchecked.
checkbox. default.
6.Verify error Try An error The “Register” PASS
message when submitting message should button should
submitting the form be displayed, remain
without checking without prompting the disabled. A
the checkbox. selecting the user to accept prompt is
Terms and the terms and displayed.
Conditions conditions.
7.Verify the Check if the The text should The text are PASS
consistency of text for be legible, legible,
the terms and terms and properly properly
conditions conditions is formatted, and formatted, and
text/link. correctly linked correctly. linked
formatted correctly.
and
displayed.
33

8.Verify Click the The checkbox The checkbox PASS


checkbox checkbox should be are selectable
functionality. multiple selectable and and de
times to de-selectable selectable
check if it without issues without issues.
toggles
correctly.
9.Verify if terms Click on the The terms and The terms and PASS
and conditions terms and conditions conditions are
open in a new conditions should open in a open in a new
tab(if applicable) link and new tab or tab or modal
observe modal window, window,
behavior. depending on depending on
system system
behavior. behavior.
10.Verify mobile Open the The checkbox The checkbox PASS
responsiveness registration should be visible are visible and
of terms and page on a and the link the link should
conditions field. mobile should be easily be easily
device and clickable on clickable on
check the mobile devices. mobile devices.
checkbox
and link.
34
35

EXPERIMENT 5:
AIM: Write the Test cases based on Performance in
Registration Page.

Test Case Steps Expected Actual Result Remarks


Result
1.Page Load Measure the The Page The Page is open Pass
Time time taken for should Load within 1 seconds.
the registration within 3
page to fully seconds.
load.
2.Response Fill in all details The Form The page is Pass
Time for Form and submit the should be submitted within 1
Submission. form, measuring submitted second.
the response within 2-5
time. second.
3.System Simulate a slow The page The Page open Pass
Behavior with internet should still with a slightly
slow Internet. connection and load properly delay(2 – 3
try loading the with a slight minutes).
registration page. delay(2 – 3
minutes).
36

4.Handling Simulate multiple The Page The page is having Pass


High Traffic user(e.g. 100-500 should high traffic due to
Load. concurrent users) handle high which
accessing the traffic system(registration
registration page. without page) closed down.
crashing or
slowing down
significantly.

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.

7.CAPTCHA Check the time CAPTCHA CAPTCHA is load Pass


Load Time. Taken for should load within 1 second.
CAPTCHA to within 2
appear on the seconds.
registration
form(if
applicable).
37

8.Performance Open the The page The page is load Pass


on Different registration page should load smoothly across all
Devices. on various smoothly devices.
devices (mobile, across all
tablet, desktop) . devices.
9.Loading time Open the The Page The loading time is Pass
of registration registration page should load 30 second.
page in on various within 1
different devices (mobile, minutes.
devices. tablet, desktop)
and measure
response time.
10.Registration Complete Email should Email received Pass
Confirmation registration and be received within 5 second.
Email Delivery measure how within 5-10
Time. long it take to seconds.
receive the
confirmation
email.
38
39

Experiment 6:
Aim: Write the Test case for Functionality in Registration Page.

Test case Steps Expected Actual Remarks


Result Result
1.verify Enter valid User should Registration Pass
Registration username, be able to successful.
password, and register
page
email address. successfully.
2. Verify Enter an User should Error Pass
Registration existing see an error message
page. username. message displayed:”
indicating the Username
username is already
already taken. exists”.
3. Verify Enter a weak User should Error Pass
Password password(less see an error message
Limitation. than 8 message displayed:”
characters) indicating the
Password is
password is
week”.
too weak.
4. Validate Enter an invalid User should Error Pass
Email id. email address see an error message
format. message displayed:
indicating the “Invalid Email
email address address
is not valid. format”
40

5. Validate Leave the User should see Error message Pass


Username. username field an error displayed:
blank. message “username is
indicating the required”.
username is
required.

6.Validate Leave the User should see Error message Pass


password by password field an error displayed:”
giving blank. blank. message Password is
indicating the Required”.
password is
required.

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.

8.Validate Enter a long User should see Error message Pass


username by username (more an error displayed:
giving out of than 20 message ”Username
range character). indicating cannot exceed
character. username is too 20 character”.
long.

9.Validate Enter password User should be Registration Pass


password with with special able to register succesfull.
special characters. successfully.
character.

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

1.Verify Login Enter valid User should be Login Successful. PASS


credentials. username and able to login
password. successfully.

2. Verify Enter an incorrect User should see Error message PASS


username. username. an error displayed:
message ”invalid
indicating invalid username”.
credentials

3. Verify Enter an incorrect User should see Error message PASS


Password. password. an error displayed:
message “invalid
indicating invalid password”.
credentials.

4. Verify Leave the User should see Error message PASS


username by username field an error displayed:
filling Blank. blank. message “Please fill out
indicating this field”.
username is
required.

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

6. Verify Enter a long User should see Error message PASS


username up username between an error displayed:
to 20 20 character only. message “Invalid
character indicating invalid username ”.
only. credentials.

7. Verify Enter a password User should be Login PASS


password by with special able to login successfully.
using special characters. successfully.
characters.

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.”.

10.Verify Enter valid User should see Error message PASS


Login username and an error displayed:
credentials password, but with message “Invalid
with CAPSLOCK on. indicating invalid username or
CAPSLOCK credentials. password.”.
on.
47
48

Experiment 9
Aim: Write the Test cases based on UI in Login Page.

Test Cases Steps Expected Outcome Actual Remarks


outcome

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.

4.Verify the Check the The “Forget Password “Forget Pass


visibility of the visibility of the “ link should be visible Password “ link
“Forget “Forget on the Login Page. visible.
Password” Password” link.
link.

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

7. Image CAPTCHA Check the time CAPTCHA CAPTCHA is load Pass


Load Time. Taken for should load within 1 second.
CAPTCHA to within 2
appear on the seconds.
login form(if
applicable).

8. Audio captcha Check the time CAPTCHA CAPTCHA is load Pass


load time. taken for audio should load within 1 second.
captcha on the within 2
login page. seconds.

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.

11.Verify loading Check the time Virtual Virtual keyboard Pass


time of Virtual taken to Virtual keyboard will appear within 1
Keyboard. keyboard appear appear after second.
on screen. Enable virtual
keyboard
within 3-4
seconds.
53
54

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.

5.Account Try Login with A genetic error Error message Pass


Enumeration non- existing should be displayed displayed “Wrong
Prevention. username and (e.g., ”Unable to Username”.
observe the Login”) to prevent
error message. username
enumeration.

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.

9.Session Stay idle for a A message should be A message displayed Pass


timeout time then start displayed “Session “Session Timeout,
Handling. filling the field. Timeout, Please Try Please Try again Later.”
again Later.”

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

ATM_001 Invalid Card Keep valid Welcome Invalid Card FAIL


card in the Screen.
ATM.
ATM_002 Invalid PIN 1.Keep a valid Menu Invalid PIN FAIL
entered. card. Screen Screen is
2.Entered the Displayed. displayed.
authorized
PIN.
3.Menu
Screen should
be appeared.
58

ATM_003 Invalid 1.Enter a valid Enter the Invalid FAIL


account type user PIN. amount account
selected. 2.select the screen type screen
withdraw
option in the
displayed. is displayed.
main menu.
3.Choose the
correct type
of account
(either saving
or current
account).
ATM_004 Insufficient 1.Menu Collect the Insufficient FAIL
balance. screen should amount balance in
be displayed. screen. the account.
2.Select the
Withdraw
option.
3.Select the
correct
account type.

4.Enter the
sufficient
amount to
withdraw
from the
account.

5.Dispense
the cash
screen &
amount to be
Deducted
from the
account.
59

ATM_005 Withdraw 1.Menu Cash is Transaction FAIL


Limit per screen should dispensed limit exceed
Transaction. be displayed. and collect screen is
2.Select the
Withdraw
the receipt. displayed.
option.
3.Select the
correct
account type.
4.Enter the
sufficient
amount to
withdraw
from the
account
Transaction
within the
limit.
5.Dispense
the cash
screen &
amount to be
Deducted
from the
account.

ATM_006 Withdraw 1.Keep a valid Cash is Day limit FAIL


limit per day. card. dispensed exceed
2.Entered the and collect screen is
authorized
PIN. the receipt. displayed.
3.Enter the
amount to
withdraw
from the
account.
60

ATM_007 Statement 1.Keep a valid Collect the Receipt not FAIL


not printed. card. mini printed.
2.Entered the statement
authorized receipt.
PIN.
3.Select the
mini
statement.
4. Enter the
current PIN.
ATM_008 PIN 1.Keep a valid PIN change PIN FAIL
mismatched. card. successfully. mismatched
2.Entered the due to wrong
authorized PIN entered.
PIN.
3.Select the
mini
statement.
4. Enter the
current PIN.
5.Enter the
new PIN.
6.Retype the
new PIN.
7.PIN
Successfully
changed.
61

Experiment 13

Aim: Write the Test case for banking application in respect of


the registration page and Login page.
Registration Page: On behalf of the UI and Functionality.
Bug Test Steps Bug Description Expected Actual Status
Id Outcome Outcome
001 Verify Verify the All the input All the input PASS
input presence of all fields should fields are
fields. the input field be visible. Present on
(First name, Last the
name, Gender, registration
DOB, Password, Page.
confirm
Password, email,
phone number ).
002 Response Fill in all details The form The form is Pass
Time for and submit the should be submitted
Form form , submitted within 1
Submissio measuring the within 2-5 second
n response time seconds
003 System Simulate a slow The page The page Pass
Behavior internet should still loads properly
with slow connection and load properly with a slight
internet try loading the with a slight delay(1-2
registration delay minutes)
page
62

004 Handling Simulate The page The page is Pass


High multiple users should having high
Traffic (e.g., 100-500 handle high traffic due to
Load concurrent traffic which
users) accessing without registration
the registration crashing or page slows
page slowing down
down
significantly
005 Form Field Type quickly in The fields The field Pass
Input Lag all input fields should response
and check for respond instantly
any lag or delay instantly without delay
without
delay
006 Database Measure the Queries Queries Pass
query time taken to should executes
Performan verify and store execute within 1
ce user details in within 1-3 second
the database seconds
upon
registration
007 CAPTCHA Check the time CAPTCHA CAPTCHA Pass
load Time taken for should load loads within 1
CAPTCHA to within 2 second
appear on the seconds
registration
form (if
applicable)
63

008 Performan Open the The page The page Pass


ce on registration should load loads
Different page on various smoothly smoothly
Devices devices (mobile, across all across all
tablet, desktop) devices devices
009 Loading Open the The page The page Pass
Time of Registration should load loads within 1
Registratio page on various within 1 second
n page on devices second
different
devices
010 Registratio Complete Email should Email received Pass
n registration and be received within 5
Confirmati measure how within 5-10 seconds
on Email long it takes to seconds
Delivery receive the
Time confirmation
email
64
65

Login Page: On behalf of the UI and Functionality.


Sno. Test Cases Steps Expected Actual Remarks
Result Result
001 Verify the Open the Page should Page loads Pass
Page Login Page be load within 1
Loading time and check within 2-3 second
the time seconds
taken by
page to
fully load
002 Response Fill the The details Page loads Pass
Time for details and should be within 1
Details submit it, submitted second
Submission measuring within 2-3
the seconds
response
time
003 System Simulate a The page The page Pass
behavior slow should still loads with a
with slow internet low with slight
internet connection slight delay delay(1-2
and try to minutes)
load the
login page
66

004 Handling Simulate The page The page Pass


High Traffic multiple should handles the
load users (e.g., handle the high traffic
1000- traffic without
1500) without slowing
users crashing down
accessing and slowing
the login down
page at
the same
time
005 Form field Type The fields The fields Pass
input Lag quickly in should respond
all the response immediately
input immediately without lag
fields and without lag or delay
check for or delay
any lag or
delays
006 Database Measure Queries Queries Pass
Query the time should be executes
Performance taken to execute within 1
verify and within 1-3 second
fetch user seconds
details
from the
database
67

007 Image Check the Image Image Pass


CAPTCHA load time taken CAPTCHA CAPTCHA
Time for Image should be loads within 1
CAPTCHA to load within 2 second
appear on seconds
the login
page
008 Audio Check the Audio Audio Pass
CAPTCHA load time taken CAPTCHA CAPTCHA
Time for Audio should be loads within 1
CAPTCHA to load within 2 second
appear on seconds
the login
page
009 Enable Virtual Check the Virtual Virtual Pass
Keyboard time taken Keyboard Keyboard
for Virtual should be appears
Keyboard to appear on the within 1
appear on login page second
the login within 2
page seconds
010 Verify the Fill all the The Virtual The Virtual Pass
working of input fields keyboard Keyboard
Virtual using virtual should responses
Keyboard keyboard respond quickly and
and check quickly and correctly
all details correctly
are filled
correctly or
not
68
69

You might also like