0% found this document useful (0 votes)
17 views

Sauce Demo Application

The document outlines a series of test cases for verifying the functionality of a login and e-commerce system, including scenarios for valid and invalid logins, product interactions, and checkout processes. Each test case includes a unique ID, description, pre-conditions, test steps, expected results, and relevant test data. The tests aim to ensure that the system behaves as expected under various conditions, including error handling and user interface checks.

Uploaded by

Shweta Vangari
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Sauce Demo Application

The document outlines a series of test cases for verifying the functionality of a login and e-commerce system, including scenarios for valid and invalid logins, product interactions, and checkout processes. Each test case includes a unique ID, description, pre-conditions, test steps, expected results, and relevant test data. The tests aim to ensure that the system behaves as expected under various conditions, including error handling and user interface checks.

Uploaded by

Shweta Vangari
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Test Case ID Test Scenario Description

Verify that the user is able to login successfully


TC_01 Valid Login with standard_user
with correct username and password.

TC_02 Login with locked out user Verify that login is denied for a locked out user.

TC_03 Login with problem_user Verify if problem user is able to log in

Login with Verify login works even if performance glitches


TC_04
performance_glitch_user occur

TC_05 Login with Invalid Username Verify login fails when invalid username is entered

TC_06 Login with Invalid Password Ensure incorrect password blocks login

TC_07 Login with blank username Verify that login fails with a blank username field

TC_08 Login with blank password Verify that login fails with a blank password field

TC_09 Login with Both fields blank Verify login fails when both fields are blank

Login with Case sensitivity in


TC_10 Verify login fails with case-sensitive usernames
username

TC_11 Login Page Layout Verify all elements are aligned correctly and visible

Check placeholder text in username and password


TC_12 Placeholder Text
fields

TC_13 Error Message UI Verify the style of error messages for invalid inputs
TC_14 Image Load Check Verify that robot image loads correctly

TC_15 Login Page Load Time Verify how long the login page takes to load

TC_16 Product Layout Display Verify product layout format

TC_17 Product Image Display Check for proper image rendering


TC_18 Add to Cart Button Styling Validate button styling and hover effect
TC_19 Sort Dropdown Display Validate dropdown presence and alignment
TC_20 Product Info Readability Check name, price, and description visibility
TC_21 Cart Icon Visibility Confirm cart icon is visible and clickable
TC_22 Hover Effects on Cards/Buttons Test for hover feedback on products
TC_23 Inventory Page Load Time Measure inventory page load performance
TC_24 Product Images Load Time Time for all product images to load

TC_25 Scrolling Smoothness Check lag or delays in scrolling

Verify Add to Cart button Ensure that the "Add to Cart" button works as
TC_26
functionality expected.

Verify that clicking 'Add to Cart' adds the product


TC_27 Verify add product to cart
to the cart

Verify that multiple products can be added to the


TC_28 Verify Multiple Products Add to Cart
cart.

Ensure item is not duplicated when added multiple


TC_29 Add same item multiple times
times

Verify Cart Update After Adding Verify that the cart updates when a product is
TC_30
Product added.

Verify Add to Cart Button Disabled Verify that the "Add to Cart" button is disabled for
TC_31
for Out of Stock Products out-of-stock products.
Verify that the cart icon and the cart page display
TC_32 Verify Cart Icon and Cart Page
the correct number of products.

Verify that the user can change the quantity of a


TC_33 Verify Product Quantity in Cart
product in the cart.

Verify Add to Cart and Navigate to Verify that the user can add a product to the cart
TC_34
Checkout and proceed to checkout.

Verify Successful Checkout with Verify that a user can complete the checkout
TC_35
Valid Details process successfully with valid details.

Verify Correct Total Price Verify that the total price is correctly calculated on
TC_36
Calculation the checkout page.

Ensure that the user is able to enter a valid


TC_37 Verify Shipping Address Form
shipping address.

Ensure that the "Proceed to Payment" button


TC_38 Verify Proceed to Payment Button
functions correctly.

Ensure that the order confirmation page displays


TC_39 Verify Order Confirmation Page
the correct details after a successful order.

TC_40
TC_41
TC_42
TC_43
TC_44
TC_45
TC_46
TC_47
TC_48
TC_49
Pre-condition Test Steps

1) Launch the browser and navigate to the


login page.
User is on the login page
2) Enter Username: standard_user
(https://www.saucedemo.com/v1)
3) Enter Password: secret_sauce
4) Click the "Login" button

1) Enter Username: locked_out_user


User is on the login page 2) Enter Password: secret_sauce
3) Click the "Login" button
1) Enter Username: problem_user
User is on the login page 2) Enter Password: secret_sauce
3) Click the "Login" button

1) Enter Username:
performance_glitch_user
User is on the login page
2) Enter Password: secret_sauce
3) Click the "Login" button

1) Enter Username: invalid username


User is on the login page 2) Enter Password: secret_sauce
3) Click the "Login" button

1) Enter Username: standard_user


2) Enter Password:
User is on the login page
invalid_password 3) Click the
"Login" button

1) Enter Username:
User is on the login page 2) Enter Password: secret_sauce
3) Click the "Login" button
1) Enter Username: standard_user
User is on the login page 2) Enter Password:
3) Click the "Login" button
1) Enter Username:
User is on the login page 2) Enter Password:
3) Click the "Login" button
1) Enter Username: STANDARD_USER
User is on the login page 2) Enter Password: secret_sauce
3) Click the "Login" button

User is on the login page Open login page and observe layout

User is on the login page Observe the input fields

Enter wrong credentials and check error


User is on the login page
message
User is on the login page Reload the page and observe robot mascot

Load the login page in browser and track


User is on the login page load time using browser dev tools or
Lighthouse

User is on the inventory page Observe inventory page layout

User is on the inventory page Observe images for all products


User is on the inventory page Check appearance and hover on buttons
User is on the inventory page Look for sorting dropdown
User is on the inventory page Review product details
User is on the inventory page Locate cart icon in top-right
User is on the inventory page Hover on product area/buttons
User is logged in Login and open inventory
User is on the inventory page Observe load via dev tools

User is on the inventory page Scroll through all products

1) Navigate to the homepage of the Sauce


Demo website.
User is logged in and on inventory page 2) Select any product from the available
list.
3) Click on the "Add to Cart" button.

1) Login as standard_user
2) Click on 'Add to Cart' for any product
User is logged in and on inventory page
3) Click on cart icon to verify the product
is listed

1) Add 2–3 different products using 'Add to


Cart'
User is logged in and on inventory page
2) Open the cart and verify all items are
listed

Navigate to the product page.

Select multiple products and add them to


User is logged in and on inventory page
the cart.

Observe the cart icon.

Add a product to the cart.


The user is logged in to the website and has at
Verify that the cart icon updates with the
least one item in the cart.
correct number of items.

Navigate to the product page for an out-


The user is logged in to the website, and the of-stock item.
product is out of stock.
Try to click the "Add to Cart" button.
Add a product to the cart.
Click on the cart icon.
The user is logged in to the website.
Verify that the cart page shows the
correct product details and quantity.

Go to the cart page.


The user is logged in to the website and has added Change the quantity of a product in
at least one product to the cart. the cart.
Click "Update Cart" or equivalent.

1) Add a product to the cart.


The user is logged in to the website. 2) Click the cart icon and navigate to
checkout.

1) Navigate to the checkout page.


2) Enter valid shipping and billing details
The user is logged in, has added items to the cart, (e.g., address, phone number).
and is on the checkout page. 3) Select a valid payment method
(e.g., Credit Card, PayPal).
4) Click on the "Checkout" button.

1) Go to the checkout page.


The user is logged in and has items in the cart. 2) Verify that the subtotal, tax,
shipping, and total are displayed correctly.

1) Enter a valid shipping address in the


User is on the checkout page. address form.
2) Submit the form.

User is on the checkout page, with a valid shipping 1) Click on the "Proceed to Payment"
address and payment method selected. button.

1) Complete the checkout process.


2) Verify that the order confirmation page
User has completed the checkout process. displays correct order details (items
purchased, shipping address, payment
method, total price, etc.).
Test Data Expected Result (ER)

User is redirected to the


Username: standard_user
Products page.
Password: secret_sauce

Username: locked_out_user Error message is shown - “Sorry,


Password: secret_sauce this user has been locked out.”

Username: problem_user
User is logged in successfully
Password: secret_sauce

Username: performance_glitch_user
User is logged in successfully
Password: secret_sauce

Login fails with appropriate


Username: invalid_username error message - "Username and
Password: secret_sauce password do not match any user
in this service"

Login fails with appropriate


Username: standard_user error message - "Username and
Password: invalid_password password do not match any user
in this service"

Username: Error shown: "Username is


Password: secret_sauce required"

Username: standard_user Error message: "Password is


Password: required"

Username: Error shown: "Username is


Password: required"

Username: STANDARD_USER Login fails due to case-sensitive


Password: secret_sauce usernames

Logo, username, password


NA fields, login button, robot image,
and footer info are well aligned

Username: “Username”
NA
Password: “Password”
Error box appears in red with
NA proper spacing, icon, and legible
text
Robot image is visible without
NA
distortion

NA Page should load in < 3 seconds

Products shown in grid/list with


NA
image, name, price, and button
All images load correctly and
NA
clearly
NA Styled button with hover effect
NA Visible and right-aligned
NA All text readable, no overlap
NA Icon visible and functional
Visual feedback like highlight or
NA
shadow shown
NA Loads within 5 seconds
All images load under 1-2
NA
seconds
Smooth scroll, no freeze or
NA
stutter

The selected product should be


added to the cart, and the cart
NA
icon should reflect the updated
quantity (should show 1 item).

Username: standard_user Product is successfully added to


Password: secret_sauce cart and reflected in cart page

All selected items should appear


Multiple product selections
in the cart

All selected products are added


Try to add it again from the inventory to the cart, and the cart icon
page displays the correct number of
items.

The cart is updated with the


NA correct count after the product
is added.

The "Add to Cart" button is


NA disabled or shows an out-of-
stock message.
The cart icon and cart page
NA display the correct product(s)
and quantity.

The cart should reflect the


NA updated quantity of the
product.

The user is successfully


navigated to the checkout page
NA
with the correct product details
in the cart.

The checkout is completed


successfully, and a confirmation
NA
page with order details is
displayed.

The total price reflects the


NA correct sum of the item prices,
taxes, and shipping costs.

The shipping address should be


accepted without errors, and
NA the user should be moved to the
next step in the checkout
process.

The user should be redirected to


NA the payment processing page or
payment gateway.

The order confirmation page


NA should display accurate details
about the order.

You might also like