KasegaonEducationSociety’s
Rajarambapu Institute of Technology,Rajaramnagar
(An AutonomousInstitute)
Post- Sakharale,Tal.Walwa,Dist.Sangli.PIN –415414 (Maharashtra)
Website:www.ritindia.edu. E-mail:director@ritindia.edu
Writing Test Cases (ISE-I) 2019-20 (Semester – VII)
Programme : InformationTechnology
Class : Final Year B. Tech.
Course withCode : Software TestingandQualityAssurance (IT4072)
Name of the Project : Online ShoppingSystem.
Sr. No. Name ofthe Student Roll No.
1. Chirag Makdiya 1604030
2. Sarvesh Barkade 1604038
Module wise requirements:
Module I: Registration:
 The new usershouldbe able toregister tothe system.
 Registrationof usermustbe done usingunique andvalid email id.
 Registrationof userwill be successful onlyafterverifyingOTPsenttoemail-id.
 The alreadyregisteredusersshouldbe able tologintosystemsuccessfully.
 Username/Email shouldbe unique
 Validusername: validemail-id
 Validpassword:Combinationof lowercase anduppercase,alphabetsanddigits.(8to12 characters)
 ValidContactnumber:10digitsonly
 ValidAddress:150charactersmax.
Module 2: Login
 If user forgets password, he/sheshouldbe able toresetthe password.
 ResettingpasswordshouldalsoverifyOTPsentto email-id.
 Loginmodule mustvalidate username andpasswordbeforelogin.
 If its correct usershouldbe redirectedtohomepage else appropriate errormessageshouldbe
displayed.
 Validusername: validemail-id
 Validpassword: Combinationof lowercase anduppercase,alphabetsanddigits.(8to12 characters)
Module II: Add itemto cart:
 User selectsthe desireditemoutof listprovidedoncatalog.
 User can add item to cart and continue shopping
 All itemsandtheirtotal shouldbe displayedinthe cart.
 Remove itemsfromcart.
 Proceedtocheckout.
 At leastone itemshouldbe presentincartforproceedingtocheckout.
 At leastone itemshouldbe presentincartfor showingtotal amount.
Test Case Development:
Module 1: Login
Test
case ID
Test
Objective
Precondition Steps Test data Expected
result
Post-
condition
Actual
Result
Pass/fail
TC001 Verify
admin
loginwith
username
and
password
Admin
shouldbe
registered
withvalid
email and
password
before login.
Clickon
Login
button
Enter
valid
username
and
password
Email-id:
abc@xyz.com
Password:
Xyz123
System
displays
Admin
homepage
Admin
shouldbe
kept
loggedin
until
logout.
As
Expected,
Pass
sTC002 Verify
userlogin
withvalid
username
and
password
User should
be
registered
withvalid
email and
password
before login.
Clickon
Login
button
Enter
valid
username
and
password
Email-id:
abc@xyz.com
Password:
Xyz123
System
displays
User
homepage
User
shouldbe
kept
loggedin
until
logout.
As
Expected,
Pass
TC003 Verify
userlogin
with
invalid
username
and
password
User isnot
registered
before with
validemail
and
password.
Clickon
Login
button
Enter
valid
username
and
password
Email-id:
abcxyz.com
Password:
123ggh
Display
error
message
loginfailed.
Redirect
to Login
page.
As
Expected,
Pass
TC004 Forgot
password
User should
be
registered
withvalid
email and
password
before
clickingon
forgot
password.
Clickon
forgot
password
Enter
registered
email id.
Enter OTP
sentto
email id
Verify
Email-id:
abc@xyz.com
OTP:
1234
Password:
Xyz123
User will
setnew
password
after
verifying
OTP and
password
change
successfully
message
will be
displayed.
Redirect
to Login
page.
As
Expected,
Pass
OTP
Enter new
password
Confirm
password
Password:
Xyz123
Module 2 Registration
Test
case ID
Test
Objective
Precondition Steps Test data Expected
result
Post-
condition
Actual
Result
Pass/fail
TC001 Register
new
user.
User must
have valid
details
requiredfor
registration
.i.e. email-id,
contact
number.
Email id
mustnot be
usedbefore
for
registration
to this
system.i.e.
unique email
idfor each
user.
1Clickon
Register
button.
2Fill
fieldsof
form.i.e.
email id,
contact
number
,address
Email-id:
abc@xyz.com
Contact:
9876543210
Address:
Aptno12/A,
Street,City,
State,Country.
All the
Required
fieldsare
filled
Proccedto
verification
of details
viaOTP
As
Expected
Pass
TC001.2 Verify
User with
OTP
E-mail
address
shouldbe
correct
1 OTP is
sentfor
verifying
email
address
2 Verify
OTP sent
3 Create
password
4
Confirm
details
and click
OK.
OTP:1234
Password:
Xyz123
Password:
Xyz123
Registration
successful
message
will be
displayed.
Redirectto
Login
page.
As
Expected,
Pass
Module 3: Add itemto Cart
Test
case
ID
Test
Objectiv
e
Preconditio
n
Steps Test data Expecte
d result
Post-
condition
Actual
Result
Pass/F
ail
TC00
1
User
should
select
desired
itemand
add item
to cart.
User should
be loggedin.
Select
desired
item.
Clickon
add to
cart
button.
Itemname:
Item123
Item-id:
#123
Specifications
:
Cost:12RS
Continue
shopping
Itemgets
addedto
cart
successfully.
Amountand
count are
incremented
accordingly.
As
Expected,
Pass
TC00
2
Show
total
amount
of items
incart.
Itemsmust
be present
inthe cart.
Openthe
cart
Clickon
show
total
amount.
Total amount:
1234RS
Displays
the
details
and total
amount
of all
itemsin
cart.
Proceedto
order.
As
Expected,
Pass
TC00
3
Remove
item
from
cart.
At leastone
itemmust
be present
incart.
Remove
desired
item.
Clickon
remove
fromcart
button.
Itemname:
Item123
Item-id:
#123
Continue
shopping
Itemgets
removed
fromcart
and
decrement
the amount
and countof
items.
As
Expected,
Pass
TC00
4
Proceed
to
checkout
.
Itemsmust
be present
inthe cart.
Openthe
cart
Clickon
proceed
to
checkout
.
Enter
shipping
address.
Itemname:
Item123
Item-id:
#123
Shipping
address:
Displays
the
details
and total
amount
of all
itemsin
cart and
shipping
address.
Proceedto
payment.
As
Expected,
Pass
Aptno12/A,
Street,City,
State,
Country.

Online Shopping System Test case Writing

  • 1.
    KasegaonEducationSociety’s Rajarambapu Institute ofTechnology,Rajaramnagar (An AutonomousInstitute) Post- Sakharale,Tal.Walwa,Dist.Sangli.PIN –415414 (Maharashtra) Website:www.ritindia.edu. E-mail:director@ritindia.edu Writing Test Cases (ISE-I) 2019-20 (Semester – VII) Programme : InformationTechnology Class : Final Year B. Tech. Course withCode : Software TestingandQualityAssurance (IT4072) Name of the Project : Online ShoppingSystem. Sr. No. Name ofthe Student Roll No. 1. Chirag Makdiya 1604030 2. Sarvesh Barkade 1604038
  • 2.
    Module wise requirements: ModuleI: Registration:  The new usershouldbe able toregister tothe system.  Registrationof usermustbe done usingunique andvalid email id.  Registrationof userwill be successful onlyafterverifyingOTPsenttoemail-id.  The alreadyregisteredusersshouldbe able tologintosystemsuccessfully.  Username/Email shouldbe unique  Validusername: validemail-id  Validpassword:Combinationof lowercase anduppercase,alphabetsanddigits.(8to12 characters)  ValidContactnumber:10digitsonly  ValidAddress:150charactersmax. Module 2: Login  If user forgets password, he/sheshouldbe able toresetthe password.  ResettingpasswordshouldalsoverifyOTPsentto email-id.  Loginmodule mustvalidate username andpasswordbeforelogin.  If its correct usershouldbe redirectedtohomepage else appropriate errormessageshouldbe displayed.  Validusername: validemail-id  Validpassword: Combinationof lowercase anduppercase,alphabetsanddigits.(8to12 characters) Module II: Add itemto cart:  User selectsthe desireditemoutof listprovidedoncatalog.  User can add item to cart and continue shopping  All itemsandtheirtotal shouldbe displayedinthe cart.  Remove itemsfromcart.  Proceedtocheckout.  At leastone itemshouldbe presentincartforproceedingtocheckout.  At leastone itemshouldbe presentincartfor showingtotal amount.
  • 3.
    Test Case Development: Module1: Login Test case ID Test Objective Precondition Steps Test data Expected result Post- condition Actual Result Pass/fail TC001 Verify admin loginwith username and password Admin shouldbe registered withvalid email and password before login. Clickon Login button Enter valid username and password Email-id: abc@xyz.com Password: Xyz123 System displays Admin homepage Admin shouldbe kept loggedin until logout. As Expected, Pass sTC002 Verify userlogin withvalid username and password User should be registered withvalid email and password before login. Clickon Login button Enter valid username and password Email-id: abc@xyz.com Password: Xyz123 System displays User homepage User shouldbe kept loggedin until logout. As Expected, Pass TC003 Verify userlogin with invalid username and password User isnot registered before with validemail and password. Clickon Login button Enter valid username and password Email-id: abcxyz.com Password: 123ggh Display error message loginfailed. Redirect to Login page. As Expected, Pass TC004 Forgot password User should be registered withvalid email and password before clickingon forgot password. Clickon forgot password Enter registered email id. Enter OTP sentto email id Verify Email-id: abc@xyz.com OTP: 1234 Password: Xyz123 User will setnew password after verifying OTP and password change successfully message will be displayed. Redirect to Login page. As Expected, Pass
  • 4.
    OTP Enter new password Confirm password Password: Xyz123 Module 2Registration Test case ID Test Objective Precondition Steps Test data Expected result Post- condition Actual Result Pass/fail TC001 Register new user. User must have valid details requiredfor registration .i.e. email-id, contact number. Email id mustnot be usedbefore for registration to this system.i.e. unique email idfor each user. 1Clickon Register button. 2Fill fieldsof form.i.e. email id, contact number ,address Email-id: abc@xyz.com Contact: 9876543210 Address: Aptno12/A, Street,City, State,Country. All the Required fieldsare filled Proccedto verification of details viaOTP As Expected Pass TC001.2 Verify User with OTP E-mail address shouldbe correct 1 OTP is sentfor verifying email address 2 Verify OTP sent 3 Create password 4 Confirm details and click OK. OTP:1234 Password: Xyz123 Password: Xyz123 Registration successful message will be displayed. Redirectto Login page. As Expected, Pass
  • 5.
    Module 3: Additemto Cart Test case ID Test Objectiv e Preconditio n Steps Test data Expecte d result Post- condition Actual Result Pass/F ail TC00 1 User should select desired itemand add item to cart. User should be loggedin. Select desired item. Clickon add to cart button. Itemname: Item123 Item-id: #123 Specifications : Cost:12RS Continue shopping Itemgets addedto cart successfully. Amountand count are incremented accordingly. As Expected, Pass TC00 2 Show total amount of items incart. Itemsmust be present inthe cart. Openthe cart Clickon show total amount. Total amount: 1234RS Displays the details and total amount of all itemsin cart. Proceedto order. As Expected, Pass TC00 3 Remove item from cart. At leastone itemmust be present incart. Remove desired item. Clickon remove fromcart button. Itemname: Item123 Item-id: #123 Continue shopping Itemgets removed fromcart and decrement the amount and countof items. As Expected, Pass TC00 4 Proceed to checkout . Itemsmust be present inthe cart. Openthe cart Clickon proceed to checkout . Enter shipping address. Itemname: Item123 Item-id: #123 Shipping address: Displays the details and total amount of all itemsin cart and shipping address. Proceedto payment. As Expected, Pass
  • 6.