0% found this document useful (0 votes)
193 views9 pages

TestCases Document

The document contains test cases for user login, payment methods including COD, debit card, and credit card. It also includes test cases for product availability, cancellation, and shopping cart functionality. The test cases include preconditions, dependencies, scenarios, steps, data, expected results, and post conditions.

Uploaded by

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

TestCases Document

The document contains test cases for user login, payment methods including COD, debit card, and credit card. It also includes test cases for product availability, cancellation, and shopping cart functionality. The test cases include preconditions, dependencies, scenarios, steps, data, expected results, and post conditions.

Uploaded by

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

i) Test Case for User Login details

Pre-condition User need a valid User name and Password


Dependencies: for Login
User to have
should the Online store
an active internet

Test Scenario Test Case Test Steps Test Data Expected Post-
Result condition

Verify the login of Entered valid Enter <valid Successful Login Home Page
Online agriculture Username and Username Username>
product store valid Password
Enter <valid
Password password>

Click Login
button

Verify the login of Entered valid Enter <valid The Username or Invalid
Online agriculture Username and Username Username> Pwd is not correct. Username or
product store Invalid Password Please enter correct Password
Enter <invalid Username or
Password password> Pwd
Click Login button

Verify the login of Entered Invalid Enter <invalid The Username or Invalid
Online agriculture Username and Username Username> Pwd is not correct. Username or
product store valid Password Please enter correct Password
Enter <valid Username or
Password password> Pwd
Click Login button

Verify the login of Entered Invalid Enter <invalid The Username or Invalid
Online agriculture Username and Username Username> Pwd is not correct. Username or
product store Invalid Password Please enter correct Password
Enter <invalid Username or
Password password> Pwd
Click Login button

ii) Test Cases for Cash on Delivery/Pay on Delivery


Pre-condition User should have a Bank account for any Payment
Dependencies: Gateway
User to select
should have an active internet

Test Scenario Test Case Test Steps Test Data Expected Result Post-
condition
Verify the availability Select COD <Cash,UPI, Cards Home Page
of COD payment gateway COD also accepted> Order Placed

Verify the availability COD Not Available <COD available on Choose another Payment Page
of COD COD Not available Selected Items> payment method

iii) Test Cases for Debit card


Pre-condition User should have a Debit card and Bank account for this
Dependencies: Payment
User Method
should have an active internet
Test Scenario Test Case Test Steps Test Data

Verifying the Entered Card Details and OTP correctly Enter Card <valid card
selection of Debit Number
Enter Expiry number> <valid expiry>
card as Payment Date
Method Enter CVV
Enter OTP <valid OTP>
Verifying the Entered Card number correctly, but Enter Card <valid card
selection of Debit Incorrect Expiry date Number
Enter Expiry number>
<Incorrect Expiry
card as Payment Date Date>
Method Enter CVV
Enter OTP
Verifying the Entered Card details correctly, but Enter Card <valid card
selection of Debit incorrect OTP Number
Enter Expiry number> <valid expiry>
card as Payment Date
Method Enter CVV
Enter OTP <Incorrect OT

iv) Test Cases for Credit card


Pre-condition User should have a Credit card and Bank account for this
Dependencies: Payment
User Method
should have an active internet

Test Scenario Test Case Test Steps Test Data

Verifying the Entered Card Enter Card <valid card


selection of Credit Details and OTP Number
Enter Expiry number> <valid expiry>
card as Payment correctly Date CVV
Method Enter
Enter OTP <valid OTP>
Verifying the Entered Card Enter Card <valid card
selection of Credit number correctly, Number
Enter Expiry number>
<Incorrect Expiry
card as Payment but Incorrect Date CVV Date>
Method Expiry date Enter
Enter OTP
Verifying the Entered Card Enter Card <valid card
selection of Credit details correctly, Number
Enter Expiry number> <valid expiry>
card as Payment but incorrect OTP Date
Method Enter CVV
Enter OTP <Incorrect OTP>

v) Test Cases for Product Availability for selected address


Pre-condition User should have a valid Postal address wth postal code
Dependencies: User should have an active internet

Test Scenario Test Case Test Steps Test Data Expected Result Post-
condition
Verify the product Entered valid Enter Postal Code <Postal Code Product is available Product Page
delivery on the Postal code to available> to this Postal code
selected Postal check the Delivery
code

Verify the product Entered incorrect Product is not


delivery on the Postal code to available in this
selected Postal code check the Delivery <Currently Out of postal code
Enter Postal Code Stock> Product Page

vi) Test Cases for Product Cancellation for selected address


Pre-condition User should have valid Order processed
Dependencies: User should have an active internet
Test Priority

Test Scenario Test Case Test Steps Test Data

Select the Product for cancellation/Ret Select Cancel/Ret urn <Cancel/Ret urn selected>
Testing the product urn within the Return period Enter Cancel/Ret urn Reason <Cancel Reason Selected>
cancellation/Ret urn
Select Pick up address <Pick up address selected>
Testing the product Select the Product for cancellation/Ret Select Cancel/Ret urn <Cancellatio n Not available>
cancellation/Ret urn urn out of cancellation/ Return period

vii) Test Cases for Shopping Cart


Pre-condition User should be a Registered customer
Dependencies: User should have an active internet
Test Priority

Test Scenario Test Case Test Steps

Test that all items are added into the Selected Items are added in Cart Select Add to Cart
cart successfully
Test that the user is able to Item Quantity is increased/decreased Select Item Quantity
increase/decrease quantity from the successfully Select Add to Cart
cart

viii) Test Cases for Applying Coupon code.


Pre-condition User should be a Registered customer
Dependencies: User should have an active internet

Test Scenario Test Case Test Steps Test Data


Test that User should Entering the correct Coupon code in Apply Coupon code <coupon code accepted>
be able to add Checkout page
coupons
Test that User should Entering the incorrect Coupon code in Apply Coupon code <Coupon code already used>
be able to add Checkout page
coupons

ix) Test Cases for Seller Adding Product within Limit


Pre-condition Seller should be a registered seller
Dependencies: User should have an active internet

Test Scenario Test Case Test Steps Test Data Expected Post-
Result condition
Test the maximum Upload Product <Product Image
product adding limit Image uploaded>
Seller adding Enter Product Name <Product Name Product added
product within updated> Successfully Home Page
limit
Update Product <Product Price
Price updated>
Test the maximum Seller adding Upload Product <Product Image Duplicate Product
product adding limit product over the Image uploaded> already available
limit
Home Page
Test the maximum Seller adding Duplicate Product
product adding limit product over the already available
limit
Enter Product Name <Duplicate Product
available> Home Page

Update
Product Price

x) Test Cases for Product Search


Pre-condition User should have Online application installed
Dependencies: User should have an active internet

Test Scenario Test Case Test Steps Test Data Expected Post-
Result condition
Test if the user is Enter the name of Enter Product name <Product lists up Product Lists up Product Search
able to Search the the Product user per search> successfully page
Product want to Search

Test if the user is Enter the name of Enter Product name <Product Searched Product searched Product Search
able to Search the the Product user Not Available> Not successful page
Product want to Search
which is not
available
Actual Result Status

Successfully
Logged in

Pass

Pop up banner
shows "Invalid
Password"
Fail

Pop up banner
shows "Invalid
Password"
Fail

Pop up banner
shows "Invalid User
details"
Fail

Actual Result Status

Order Placed
Pass

COD Not Available


Fail
Test Data Expected Result Post- Actual Status
condition Result
<valid card Payment Successful Order Page Order
number> <valid expiry> Placed
Successfull Pass
y
<valid OTP>
<valid card Enter Correct Expiry date Incorrect Enter
number>
<Incorrect Expiry Expiry Date correct
Date> Expiry date Fail

<valid card Enter correct OTP Incorrect Enter


number> <valid expiry> OTP correct
entered OTP Fail

<Incorrect OTP>

Expected Post- Actual Status


Result condition Result
Payment Successful Order
Placed
Order Page Successfull Pass
y

Enter correct Expiry date Incorrect Expiry Date Enter


correct
Expiry date Fail

Enter correct OTP Incorrect OTP Enter


entered correct
OTP Fail

Actual Result Status

Page accepts the


Postal code for
product Pass
selection

Pop up banner
shows "Currently
Out of Stock for this
Postal Fail
code"
est Data Expected Result Post- Actual Stat us
condition Result
ancel/Ret urn selected> Product
Product
ancel Reason Selected> Product cancellation/ret urn Cancellati cancellatio Pass
successful on page n/retu rn
ck up address selected> successful
ancellatio n Not available> Product is not available for Pop up
cancellation as its out of banner
cancellation period shows
"Cancellati
Order Page on/Re turn Fail
not
available"

Test Data Expected Post- Actual Status


Result condition Result
<Item Added to Cart> Selected Items in Cart Items in Items added to cart Pass
Cart page successfully
<Item Quantity selected> Item Quantity is Items in Items added to cart
selected and added to Cart page successfully Pass
<Item Added to Cart>
cart

Test Data Expected Post- Actual


oupon code accepted> Result
Coupon code accepted and condition
Checkout page Result
Banner show "Coupon
Price adjusted accordingly code
applied"
oupon code already used> Coupon code not accepted. Checkout page Banner shows "
Coupon code already
used. Enter
new coupon code

Actual Status
Result
Banner shows "
Product added
Successfully"
Pass

Banner shows "


Product already
available. Upload
New Product"
Fail
Banner shows "
Product already
available. Upload
New Product"
Fail

Actual Status
Result
Banner shows "
Searched Item
Listed" Pass

Banner shows "


Searched Item Not
Available"
Fail
Status

Pass

Pass

Status

Pass

Fail

You might also like