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

swag labs test cases

The document outlines a series of test scenarios for a login, product, cart, and checkout system. Each test case includes specific actions to verify functionality, such as logging in with valid and invalid credentials, managing products in the cart, and completing the checkout process. The expected results for each test case are also provided to ensure proper system behavior.

Uploaded by

benabidamal01
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)
90 views

swag labs test cases

The document outlines a series of test scenarios for a login, product, cart, and checkout system. Each test case includes specific actions to verify functionality, such as logging in with valid and invalid credentials, managing products in the cart, and completing the checkout process. The expected results for each test case are also provided to ensure proper system behavior.

Uploaded by

benabidamal01
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/ 14

Test Scenario test id summary

TC_001 Verify login with valid credentials

TC_002 Verify login with an invalid username


Login
TC_003 Verify login with an invalid password

Verify login when username and


TC_004 password are empty.

Verify login with only username


TC_005
entered

Verify login with only password


TC_006
entered

Verify login with case-sensitive


TC_007
username/password

TC_008 Verify login with SQL injection attempt

Verify UI elements on the login page


TC_009

verify that password can't be copied


TC_010
from password field

Verify that the Product page loads


TC_001
correctly

TC_002 Verify that all products are displayed


Product
page
Verify that a product can be added to
TC_003
the cart
page

Verify that a product can be removed


TC_004
from cart

Verify cart icon updates when


TC_005
adding/removing products

TC_006 Verify sorting functionality

TC_007 Verify navigation to the cart page

TC_008 Verify user can log out

TC_009 Verify access restriction without login

Verify UI elements on the products


TC_010
page

Verify that the cart page loads


TC_001
correctly

Verify that the cart page displays


TC_002
correctly when empty
Add to cart
page TC_003 Verify added product appears in cart

TC_004 Verify product removal from cart

Verify "Continue Shopping" button


TC_005
functionality

Verify "Checkout" button navigates to


TC_006
checkout page

Verify that cart items persist after


TC_007
logout and re-login
TC_008 Verify UI elements on cart page

Verify that quantity of added items is


TC_009
displayed correctly

Verify restricted access to cart page


TC_010
without login

Verify that the checkout step one page


TC_001
loads correctly

TC_002 Verify required fields validation


Checkout
page Verify that the first name field is
TC_003
required

Verify that the last name field is


TC_004
required

Verify that the postal code field is


TC_005
required

TC_006 Verify invalid postal code input

Verify successful checkout step one


TC_007
submission

Verify "Cancel" button navigates back


TC_008
to cart

Verify that the checkout step two page


TC_001
loads correctly
Verify that selected products are
TC_002
displayed in order summary

Verify total price calculation (including


TC_003
tax)

Checkout
step 2 TC_004
Verify "Finish" button completes the
checkout
page
Verify "Cancel" button navigates back
TC_005
to inventory page

Verify user cannot skip step one and


TC_006
directly access step two

Verify tax is calculated correctly on


TC_007
total price

Verify product details (name, price,


TC_008
quantity) are correct
steps

1. Open the login page


2. Enter valid username & password
3. Click login

1. Open the login page


2. Enter invalid username & valid password
3. Click login

1. Open the login page


2. Enter valid username & invalid password
3. Click login

1. Open the login page


2. Leave username & password blank
3. Click login

1. Open the login page


2. Enter valid username & leave password blank
3. Click login

1. Open the login page


2. Leave username blank & enter valid password
3. Click login

1. Open the login page


2. Enter username/password in incorrect case
3. Click login

1. Open the login page


2. Enter ' OR '1'='1 in username/password fields
3. Click login

1. Open the login page


2. Check for username, password fields, and login
button

1. Open the login page


2. Enter valid username & leave password
3. try to copy password and paste it in somewhere else

1. Login with valid credentials


2. Navigate to the Product page

1. Login and navigate to product page


2. Check the product list

1. Login and go to products


2. Click "Add to Cart" for any product
1. Add a product to the cart
2. Click "Remove" button

1. Add a product to the cart


2. Check the cart icon number

1. Select sorting dropdown


2. Choose an option (e.g., "Price: Low to High")

1. Click the cart icon on products page

1. Click menu button


2. Click "Logout"

1. Try to access product page directly without logging in

1. Check for all elements like product list, cart icon,


sorting dropdown

1. Login and add a product to the cart


2. Navigate to the cart page

1. Login and go to cart page without adding any items

1. Add a product to the cart


2. Navigate to the cart page

1. Add a product to the cart


2. Navigate to the cart page
3. Click "Remove"

1. Go to cart page
2. Click "Continue Shopping"

1. Go to cart page
2. Click "Checkout"

1. Add items to cart


2. Logout and login again
3. Navigate to cart page
1. Go to cart page and check all elements

1. Add multiple quantities of a product


2. Go to cart page

1. Try to access cart page directly without logging in

1. Login and add products to cart


2. Navigate to cart page
3. Click "Checkout"

1. Go to checkout step one page


2. Leave all fields blank
3. Click "Continue"

1. Go to checkout step one page


2. Enter last name and postal code only
3. Click "Continue"

1. Go to checkout step one page


2. Enter first name and postal code only
3. Click "Continue"

1. Go to checkout step one page


2. Enter first name and last name only
3. Click "Continue"

1. Go to checkout step one page


2. Enter invalid postal code (e.g., "abc")
3. Click "Continue"

1. Enter valid first name, last name, and postal code


2. Click "Continue"

1. Go to checkout step one page


2. Click "Cancel"

1. Login and add products to cart


2. Complete checkout step one
3. Navigate to checkout step two
1. Add products to cart
2. Complete checkout step one
3. Navigate to checkout step two

1. Add multiple products to cart


2. Proceed to checkout step two

1. Navigate to checkout step two


2. Click "Finish"

1. Navigate to checkout step two


2. Click "Cancel"

1. Try to access checkout step two URL without


completing step one

1. Add products to cart


2. Proceed to checkout step two

1. Add products to cart


2. Proceed to checkout step two
expected result actual result status

User successfully logs in and is redirected to the homepage

Error message: "Username and password do not match"

Error message: "Username and password do not match"

Error message: "Username is required"

Error message: "Password is required"

Error message: "Username is required"

Error message: "Username and password do not match"

Error message or unsuccessful login

All elements should be present and properly aligned

password can't be copied

page should load with product listings, filter, and cart icon
visible

All products should be visible with images, titles, prices, and


"Add to Cart" buttons

Product should be added to cart, button should change to


"Remove"
Product should be removed from cart, button should change
back to "Add to Cart"

Cart icon should display correct number of added products

Products should be sorted accordingly

User should be redirected to the cart page

User should be redirected to login page

User should be redirected to login page

All elements should be properly aligned and functional

Cart page should load with added products displayed

Cart page should display "Your cart is empty" message

The selected product should be listed in the cart

Product should be removed from the cart

User should be redirected back to the inventory page

User should be redirected to checkout page

Items should still be present in the cart


Cart list, product details, buttons, and total price should be
correctly displayed

The correct quantity should be displayed

User should be redirected to login page

Checkout step one page should load with input fields

Error message should appear for required fields

Error message: "First Name is required"

Error message: "Last Name is required"

Error message: "Postal Code is required"

Error message should appear for invalid postal code

User should be redirected to checkout step two page

User should be redirected back to cart page

Checkout step two page should load with order summary


Products in cart should be listed with correct prices

Total price should match sum of item prices + tax

User should be redirected to order confirmation page

User should be redirected to inventory page

User should be redirected to checkout step one

Tax should be applied as per the correct rate

Product details should match what was selected in inventory

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy