You are on page 1of 64

Test Strategy and Test Cases for a sample online shopping process (login-s

User Story

As a user , I want to be able to register for the service so that I can start shopping online
As a user , I want to be able to register for the service so that I can start shopping online
As a user , I want to be able to search and filter the products
As a user, I want to be able to do cart operatios
As a user, I want to get notified for all the operations done.

More Test Strategies

Test Strategy
Verify UI for login

Verify UI for sign up

Verify UI for payment

Verify UI for search results

Verify Enter key reponse

Verify tab selector

verify keyboard shortcuts response

verify cookie management

verify session timings and scenarios

verify data validations in login

verify data validations in signup

verify data validations in search

verify data validations in otp authenticaton

cross browser verification

mobile browser verification


verify performance
shopping process (login-search-select item-add to cart- payment-confirmation).

Acceptance Criteria

Users can only submit a form by filling in all the required fields. .
Submissions from same IP can only be made three times within 15 minutes.
After registering users receive notification emails.( Refer Notifications user story)
Users can only submit a form by filling in all the required fields. .
Submissions from same IP can only be made three times within 15 minutes.
After registering users receive notification emails.( Refer Notifications user story)
Users can enter search query and hit search
Users can select from search result.
Users can filter the results
User can add items to cart.
User can remove items from cart.
User get notified via inapp,registered email and mobile number.

Test Cases
verify username textfield is visible.
Verify username textfield acceps data.
Verify password field accepts data.
Verify password validation.
Verify login button redirection.
Verify design requirements for login

verify username textfield is visible.


Verify username textfield acceps data.
Verify password field accepts data.
Verify password validation.
Verify sign up button redirection.
Verify design requirements for sign up

verify payment modes radio buttons are working fine or not.


verify payment modes display order.
verify payment page design with requirements.
verify search field alignment.
Verify search field placeholder functions.
Verify search button/icon design with requirements.

verify enter key response in login page.


Verify enter key response in signup page.
Verify enter key response in search functionality.
Verify enter key reponse in filter.
Verify enter key response in payments.
verify tab key response in login page.
Verify tab key response in products page.
Verify tab key response in cart page
verify ctrl + c operations.
Verify ctrl+ v operations.
verify cookie acceptance message is working or not.
Verify no login without acceptance of madatory cookies.
verify session timeout .
Verify broken session notifications.
verify valid username and password enables user to login or not.
verify invalid username and password enables user to login or not.
verify valid username and invalid password enable user to login or not.
verify valid username and password enables user to signup or not.
verify invalid username and password enables user to signup or not.
verify valid username and invalid password enable user to signup or not.
verify valid keyword search.
Verify invalid keyword search.
verify valid otp authentication.
Verify invalid otp authentication.
verify all functionalities in chrome,
verify all functionalities in Firefox,….
verify all functionalities in ios browsers,
verify all functionalities in android browsers……..
verify load test limit when 10000 users signed up.
Verify stress test when 10000 users place orders same time.
Verify search index size, time…..
ent-confirmation).

Test Strategy

Verify registration with mobile number.

Verify registration with email .

Verify otp generation and authentication

Verify registration with Third-Party services.


Verify consecutive signup limit from same ip

Verify signup-login redirection

Verify login with mobile number.

Verify login with email .


Verify login with email .

Verify otp generation and authentication

Verify registration with Third-Party services.

Verify consecutive login limit from same ip


Verify Search functionality

Verify filter functionality


verify add to cart functionality

verify remove from cart functionality

verify place order functionality from cart


verify payment modes are working or not

verify all payment modes are showing in payment page


verify payment cancellation due to wrong authentication data

verify order confirmation notifications.


verify order confirmation notifications.

verify order cancellation notifications.

verify refund notifications.


Online shopping end to end process
Project Name :
Author : Jithin Jose
Created date : 4/14/2023
Reviewed by : Vinayan

Test Case ID Test Case

Re01 Verify username field accepts mobile number or not.

Re02 verify password field accepts password or not

Re03 Verify username field only accept numbers,string and @ and . special chara

Re04 verify email validation is an addon functionality for username or not

Re05 verify whether otp is generated or not when user enters username

Re06 Verify otp authentication functionality accepts otp or not

Re07 verify successfull redirection to gmail services and login

Re08 verify successful redirection to facebook services and login

Re09 verify successful redirection to twitter services and login


Re010 verify consecutive unsuccessful signup limit within 15 minutes

Re011 verify consecutive successful signup limit.

Re012 Verify Existing Customer ? Login button redirects to login page

Re013 Verify redirection to login page after successful login(assuming requirement

Lo01 Verify username field accepts mobile number or not.

Lo02 verify password field accepts password or not

Lo03 Verify username field only accept numbers,string and @ and . special chara
Lo04 verify email validation is an addon functionality for username or not

Lo05 verify whether otp is generated or not when valid credentials are entered.

Lo06 Verify otp authentication functionality accepts otp or not

Lo07 verify successfull redirection to gmail services and login

Lo08 verify successful redirection to facebook services and login

Lo09 verify successful redirection to twitter services and login

Lo010 verify consecutive unsuccessful signup limit within 15 minutes

Lo011 verify consecutive successful signup limit.


SF01 verify search is functional and generating correct result for correct keyword

SF02 verify search working when enter key is pressed

SF03 verify error message when invalid keywords entered and hit search

SF04 verify error message for blank input

SF05 verify time required for getting the result-search only no filter(3000 ms)

SF06 verify suggestions are showing or not

SF07 verify filter option is showing and properly aligned

SF08 verify each filter constraints are selectable

SF09 verify each filter constraints are effective if selected

SF10 verify time required for getting the result-only filter(3000 ms)

SF11 verify time required for getting the result-search with filter(4000 ms)
CO01 verify a product can be added to cart or not

CO02 verify multiple products can be added to cart or not

CO03 verify multiple products from different categories can be added to cart or n

CO04 Verify single product can be removed from cart or not

CO05 verify multiple products can be removed from cart or not

CO06 verify order can be placed from cart or not

CO07 verify selected items from cart can be placed or not

CO08 verify place order button display when cart is empty

CO09 verify total payment amount calculation when multiple products ar selecte

PT01 verify cash on delivery is working or not.


PT02 verify credit card payment is working or not

PT03 verify debit card payment is working or not

PT04 verify upi payment working or not

PT05 verify upi payment using upi app api

PT06 verify COD is showing in payment options or not

PT07 verify Credit Card is showing in payment options or not

PT08 verify Debit Card is showing in payment options or not

PT09 verify UPI is showing in payment options or not


PT10 verify cancellation of payment in credit card transaction when wrong otp is

PT11 verify cancellation of payment in debit card transaction when wrong otp is

PT12 verify cancellation of payment in upi transaction when wrong upi pin is ent

NOC01 verify order confirmation notification via inapp

NOC02 verify order confirmation notification via registered email id


NOC03 verify order confirmation notification via registered mobile number

NOC04 verify order cancellation notification via inapp

NOC05 verify order cancellation notification via registered email id

NOC06 verify order cancellation notification via registered mobile number

NOC07 verify refund notification via inapp

NOC08 verify refund notification via registered email id

NOC09 verify refund notification via registered mobile number


Test Steps Test Data

Go to Url.
Click on Signup.
Enter mobile number in username Username: 1234567890
field.
Click signup button.

Enter password in password field


Password:admin@123
Click signup button
Go to Url.
Click on Signup.
Username: abcd@gmail.com
Enter email in username field.
Click signup button.
Enter email in username field
Click signup button Username:abcdeffg

Enter username.
Enter password.
Click on Signup button. Username:1234567890 or abcg@gmail.com

After Otp generation enter the otp


received (mobile number/email).
Click on complete registration Otp received :456789
button

Click on Signup.
Click on sign up with gmail button.

Click on Signup.
Click on sign up with facebook
button.

Click on Signup.
Click on sign up with twitter button.
Attempt 1:
username: invaliduser1,
password:invalidpassword1.
Attempt 2:
username: invaliduser2,
Click on Signup button. password:invalidpassword2.
Enter invalid username. Attempt 3:
Enter invalid password. username: invaliduser3,
Click on Signup button. password:invalidpassword3.
Repeat the steps 5 times Attempt 4:
username: invaliduser4,
password:invalidpassword4.
Attempt 5:
username: invaliduser5,
password:invalidpassword5.

Attempt 1:
username: validuser1@gmail.com,
password:validpassword1.
Click on Signup.
Attempt 2:
Enter valid username.
username: validuser2@gmail.com,
Enter valid password.
password:validpassword2.
Click on Signup button.
Attempt 3:
Enter otp.
username: validuser3@gmail.com,
Click on complete registration
button password:validpassword3.
Attempt 4:
Click on logout button .
username: validuser4@gmail.com,
Click on signup .
password:validpassword4.
Repeat the steps 5 times
Attempt 5:
username: validuser5@gmail.com,
password:validpassword5.

Click on "Existing Customer ? Login "


button

Enter valid username.


Enter valid password.
Username:validuser6@gmail.com.
Click on Sign up.
Password:validuser6.
Enter OTP received via mail/mobile.
OTP: 256987
Click on complete registration
button.

Click on Login.
Enter mobile number in username Username: 1234567890
field.
Click on login button.

Enter password in password field Password:admin@123


Click login button

Click on Login.
Username: abcd@gmail.com
Enter email in username field.
Click Login button.
Enter email in username field
Username:abcdefg
Click Login button
Enter username.
Enter password.
Username:1234567890 or abcg@gmail.com
Click on Login button.

After Otp generation enter the otp


received (mobile number/email). Otp received :456789
Click on LOGIN button
Click on login
Click on login with gmail button.

Click on login.
Click on login with facebook button.

Click on login.
Click on login with twitter button.

Attempt 1:
username: invaliduser1,
password:invalidpassword1.
Attempt 2:
username: invaliduser2,
Click on login button. password:invalidpassword2.
Enter invalid username. Attempt 3:
Enter invalid password. username: invaliduser3,
Click on login button. password:invalidpassword3.
Repeat the steps 5 times Attempt 4:
username: invaliduser4,
password:invalidpassword4.
Attempt 5:
username: invaliduser5,
password:invalidpassword5.

Attempt 1:
username: validuser1@gmail.com,
password:validpassword1.
Attempt 2:
Click on login button. username: validuser2@gmail.com,
Enter valid username. password:validpassword2.
Enter valid password. Attempt 3:
Click on login button. username: validuser3@gmail.com,
Click on logout button . password:validpassword3.
Click on login button . Attempt 4:
Repeat the steps 5 times username: validuser4@gmail.com,
password:validpassword4.
Attempt 5:
username: validuser5@gmail.com,
password:validpassword5.
select search field.
enter search keyword. search keyword: Doddle
click on search button.
select search field.
enter search keyword. search keyword: Toys
press enter key on keyboard.
select search field.
enter search keyword. search keyword: 12356@qw@
click on search button.
select search field.
Enter nothing.
click on search.

select search field.


Enter keyword.
Click on search button.
search keyword: lunch box
Start time at test step 3 and stop
timer when results displayed .(use
relevant performance testing tool)

Select search field.


Enter keyword. Search keyword: Denim Shirt

Look for filter option near to search


select filter option

select filter.
Select all options showing in filter.
Click on apply

Select filter.
Select Mens clothing under fashion.
Click on apply

Select filter.
Select Mens clothing under fashion.
Click on apply- Start the timer at this
step and stop the timer when results
displayed (use relevant performance
testing tool)

Select search field.


Enter serach keyword.
Select filter.
Select Brand as HP.
Click on apply.
Click on search. Start the timer at
this step and stop the timer when
results displayed (use relevant
performance testing tool)
Select a product.
Click on add to cart.
Go to home page.
Click on cart icon

Select a product.
Click on add to cart.
Go to home page.
Select another product.
Click on add to cart.
Repeat the steps and add 3/4
products

Select a product.
Click on add to cart.
Go to home page.
Select another product from
different category.
Click on add to cart.
Repeat the steps and add 3/4
products

Click on cart icon.


Select Product.
Click on remove from cart(-) button.
Refresh the page

Click on cart icon.


Select Product.
Click on remove from cart(-) button.
Repeat the step for multiple
products

Goto Cart.
Click on place order button.
Goto Cart.
Select some items.
Click on place order button.
Goto cart.
Remove all items from cart.
Goto cart.
Select 2 items.
Check total amount section.

Select product.
Click on place order.
Click on Cash on delivery .
Enter captcha verification answer.
Click on complete order
Select product.
Click on place order.
Click on Credit Card option.
Credit Card Details:
Enter card number.
Card Number: 1234 4567 7890 0321.
Enter card expiry date.
Card expiry: 07/2035.
Enter card cvv.
Card cvv: 578.
Enter captcha verification answer.
Click on complete payent. OTP: 456987
Enter OTP received.
Click on Complete Order

Select product.
Click on place order.
Click on Debit Card option.
Debit Card Details:
Enter card number.
Card Number: 432 4567 7890 0321.
Enter card expiry date.
Card expiry: 07/2032.
Enter card cvv.
Card cvv: 586.
Enter captcha verification answer.
Click on complete payent. OTP: 458965
Enter OTP received.
Click on Complete Order

Select product.
Click on place order.
Click on UPI payment option.
Enter VPA.
Click on Complete Payment.
vpa: xyxxyz@okhdfcbank
Goto corresponding upi app.
upi pin: 456654
Page redirection to payment
gateway.
Approve the payment from upi app.
Page redirection to payment
completion page.

Select product.
Click on place order.
Click on UPI payment option.
Select gpay/phonepe/paytm… icon .
Page redirection to payment upi app, linked bank account and upi pin.
gateway.
In upi app accept payment.
Page redirection to payment
completion page.

Select product.
Click on place order.
Select product.
Click on place order.
Select product.
Click on place order.
Select product.
Click on place order.
Select product.
Click on place order.
Click on Credit Card option.
Credit Card Details:
Enter card number.
Card Number: 1234 4567 7890 0321.
Enter card expiry date.
Card expiry: 07/2035.
Enter card cvv.
Card cvv: 573.
Enter captcha verification answer.
Click on complete payent. OTP: 123456
Enter wrong OTP.
Click on Complete Order

Select product.
Click on place order.
Click on Debit Card option.
Debit Card Details:
Enter card number.
Card Number: 7896 4567 7890 0321.
Enter card expiry date.
Card expiry: 07/2034.
Enter card cvv.
Card cvv: 574.
Enter captcha verification answer.
Click on complete payent. OTP: 123600
Enter wrong OTP.
Click on Complete Order

Select product.
Click on place order.
Click on UPI payment option.
Enter VPA.
Click on Complete Payment.
Goto corresponding upi app.
Page redirection to payment
gateway.
Approve the payment from upi app
but enter wrong upi pin.
Page redirection to payment
completion page.

Select product.
Click on place order.
Click on Cash on delivery .
Enter captcha verification answer.
Click on complete order

Select product.
Click on place order.
Click on Cash on delivery .
Enter captcha verification answer.
Click on complete order .
Check registered mail inbox for
order confirmation mail.
Select product.
Click on place order.
Click on Cash on delivery .
Enter captcha verification answer.
Click on complete order .
Check registered mobile number
received messages for order
confirmation message.

Select product.
Click on place order.
Click on Cash on delivery .
Enter captcha verification answer.
Click on complete order

Select product.
Click on place order.
Click on Cash on delivery .
Enter captcha verification answer.
Click on complete order .
Check registered mail inbox for
order cancellation mail.

Select product.
Click on place order.
Click on Cash on delivery .
Enter captcha verification answer.
Click on complete order .
Check registered mobile number
received messages for order
cancellation message.

Goto current orders.


Select a prepaid order.
Click on cancel order.
Click on cancellation
acknowledgement.

Goto current orders.


Select a prepaid order.
Click on cancel order.
Click on cancellation
acknowledgement.

Goto current orders.


Select a prepaid order.
Click on cancel order.
Click on cancellation
acknowledgement.
Expected Result

System accepts mobile number as username.

System accepts data enter in password field as password.

System accepts email as username.

System should show error message as "Enter valid email address"

an otp must sent to mobile number /email

Registration successful pop up and page redirection to sign in or home page.

Successful registraion and redirection to user homepage.

Successful registraion and redirection to user homepage.

Successful registraion and redirection to user homepage.


first 3 times warning shows as "Unsuccessfull Registration".
Fourth time onwards warning shows as "Mutliple attempts within short time.Try again after 15 minutes"

First 3 times page redirection to user home page.


Fourth time onwards warning should be displayed as "Multiple Registration from same IP-Limit breached try again
after 24 hours "

Display login page

Display User home page

System accepts mobile number as username.

System accepts data enter in password field as password.

System accepts email as username.


System should show error message as "Enter valid email address"

an otp must sent to mobile number /email

Page redirection to home page.

Display user home page

Display user home page

Display user home page

first 3 times warning shows as "Invalid Credentials".


Fourth time onwards warning shows as "Mutliple attempts within short time.Try again after 15 minutes"

First 3 times page redirection to user home page.


Fourth time onwards warning should be displayed as "Multiple Login -Limit breached try again after 30 minutes "
System should display a list of doodles

System should display a list of toys

System should show an error message " Invalid Keyword"

System should show an error message "Blank input"

Search result must show within 3000 milliseconds

When entering each characters of search a suggestion list must shown near to the field

System shows a filter option near to search and properly align

All filter options are selectable.A blue tick must shown when selected

System sould display list of men's wear.

Filter result must show within 3000 milliseconds

Result must show within 4000 ms


Product must be shown in the cart

All added products must be shown in cart

All added products must be shown in cart

Cart page must be displayed with cart items except removed item.

Cart page must be displayed with cart items except removed items.

Payment options page must be shown

Payment options page must be shown

"Cart is empty - Shop now" button must be displayed instead of place order

Total amount showed must be sum of amount of 2 products

Order confirmation page displayed


Order confirmation page displayed

Order confirmation page displayed

Order confirmation page displayed

Order confirmation page displayed

Cash on delivery option must shown in payment modes.

Credit Card option must shown in payment modes.

Debit Card option must shown in payment modes.

UPI option must shown in payment modes.


Invalid Otp pop up in payment gateway page and page redirection to order cancelled due to transaction cancelled

Invalid Otp pop up in payment gateway page and page redirection to order cancelled due to transaction cancelled

Invalid pin shown in upi app and redirection to order cancelled page

Order confirmation page displayed

Order Confirmation Mail received in registered mail


Order Confirmation Message received in registered mobile number

Order cancellation page displayed

Order cancellation mail received in registered mail

Order cancellation message received in registered mobile number

Order cancellation with refund info shown in order cancellation page

Order cancellation with refund info mail must sent to registered mail

Order cancellation with refund info message must sent to registered mobile number.
Actual Results

Error showned as "Password is Required" when mobile number is entered as username means system accepts mobile num

Error showned as "Username is required" when password is entered without username means system accepts password.

Error showned as "Password is Required" when email is entered as username means system accepts email as username.

Error showed - " Enter Valid Email Address"

Displayed a message " OTP sent to entered mobile number / email"

"Registration Successful" pop up showed and page redirected to sign in page.

Displayed user home page with google accounts username as user's name.

Displayed user home page with facebook accounts username as user's name.

Displayed user home page with twiiter accounts username as user's name.
Message displayed for:
attempt 1 - "Unsuccessfull Registration",
attempt 2 - "Unsuccessfull Registration",
attempt 3 - "Unsuccessfull Registration",
attempt 4 - " "Mutliple attempts within short time.Try again after 15 minutes",
attempt 5 - " "Mutliple attempts within short time.Try again after 15 minutes".

Attempt 1: Redirected to user home page.


Attempt 2: Redirected to user home page.
Attempt 3: Redirected to user home page.
Attempt 4: "Multiple Registration from same IP-Limit breached try again after 24 hours ".
Attempt 5: "Multiple Registration from same IP-Limit breached try again after 24 hours ".

Login page displayed

"Successful Registration" popup and page redirected to user home page

Error showned as "Password is Required" when mobile number is entered as username means system accepts mobile num

Error showned as "Username is required" when password is entered without username means system accepts password.

Error showned as "Password is Required" when email is entered as username means system accepts email as username.
Error showed - " Enter Valid Email Address"

Displayed a message " OTP sent to entered mobile number / email"

User home page showed

Displayed user home page with google accounts username as user's name.

Displayed user home page with facebook accounts username as user's name.

Displayed user home page with twiiter accounts username as user's name.

Message displayed for:


attempt 1 - "Invalid Credentials",
attempt 2 - "Invalid Credentials",
attempt 3 - "Invalid Credentials",
attempt 4 - "Mutliple attempts within short time.Try again after 15 minutes",
attempt 5 - " "Mutliple attempts within short time.Try again after 15 minutes".

Attempt 1: Redirected to user home page.


Attempt 2: Redirected to user home page.
Attempt 3: Redirected to user home page.
Attempt 4: "Multiple Login -Limit breached try again after 30 minutes ".
Attempt 5:"Multiple Login -Limit breached try again after 30 minutes ".
List of doodles displayed

List of toys displayed

An error message shown " Invalid Keyword"

"Blank input" error shown

Time taken to display the result was 4500 ms

When keywords entered sugestion list is showed

Filter button is visible near to search field .

Blue tick shows when an option is selected

A list of men's wear displayed.

Time taken to display the result was 4500 ms

Time taken to display the result was 4500 ms


Selected product showing in cart

Selected products are showing in cart

Selected products are showing in cart

Cart page displayed without removed item.

Cart page displayed without removed items.

Payment options page displayed

Payment options page displayed

Cart is empty - Shop now page is displayed

Total amount showed is sum of 2 products mrp.

Order placed message shown with tracking details and amount to be paid on delivery in order confirmation page
Order placed message shown with tracking details in order confirmation page

Order placed message shown with tracking details in order confirmation page

Order placed message shown with tracking details in order confirmation page

Order placed message shown with tracking details in order confirmation page

Cash on deivery with radio button is visible in payment modes

Credit Card option with radio button is visible in payment modes

Debit Card option with radio button is visible in payment modes

UPI option with radio button is visible in payment modes


Invalid otp is shown in payment gateway page and page redirected to order cancelled page.

Invalid otp is shown in payment gateway page and page redirected to order cancelled page.

invalid pin pop up shown in upi app and page redirected to order cancelled page.

Order confirmation page displayed

Order Confirmation Mail received in registered mail


Order Confirmation Message received in registered mobile number

Order cancellation page displayed

Order cancellation mail received in registered mail

Order cancellation message received in registered mobile number

Order cancellation with refund info shown in order cancellation page

Order cancellation with refund info received as a mail via registered mail.

Order cancellation with refund info received as a message via registered mobile number.
Status

Pass

Pass

Pass

Pass

Pass

Pass

Pass

Pass

Pass
Pass

Pass

Pass

Pass

Pass

Pass

Pass
Pass

Pass

Pass

Pass

Pass

Pass

Pass

Pass
Pass

Pass

Pass

Pass

Fail

Pass

Pass

Pass

Pass

Fail

Fail
Pass

Pass

Pass

Pass

Pass

Pass

Pass

Pass

Pass

Pass
Pass

Pass

Pass

Pass

Pass

Pass

Pass

Pass
Pass

Pass

Pass

Pass

Pass
Pass

Pass

Pass

Pass

Pass

Pass

Pass

You might also like