Sauce Demo Test Plan

Sauce Demo test plan and test cases

Functionality Testing of the Sauce Demo website

To test the functionality of the Sauce Demo website (https://www.saucedemo.com/), you can break the process down into the following steps:

Identify Key Functional Areas to Test

  • Login Functionality: Test different user credentials (standard user, locked-out user, invalid users).
  • Product Page: Check if products are displayed, filtered, and sorted properly.
  • Shopping Cart: Verify adding/removing products from the cart and viewing the cart.
  • Checkout Process: Ensure that users can complete the checkout with valid/invalid data.
  • Navigation: Test if all links and buttons work correctly.

Manual Testing Steps

A. Login Functionality

Test valid credentials:

  1. Open the Sauce Demo site.
  2. Use standard_user as the username and secret_sauce as the password.
  3. Verify that you are redirected to the products page after login.

Test invalid credentials:

  1. Enter incorrect username or password and click “Login.”
  2. Verify that an error message appears: “Username and password do not match any user in this service.”

Test locked-out user login:

  1. Use locked_out_user as the username.
  2. Verify that an error message “Sorry, this user has been locked out” appears.

B. Product Page

Test product display:

  1. After logging in, ensure that the product inventory page displays all available products.
  2. Check if images, names, and prices are displayed for each product.

Test filtering and sorting:

  1. Use the sorting dropdown to sort products by price (low to high) or by name (A to Z).
  2. Verify that products are correctly sorted.

C. Shopping Cart

Test adding products to the cart:

  1. On the product page, click “Add to Cart” for a few items.
  2. Verify that the cart icon in the top-right corner updates the product count.

Test removing products from the cart:

  1. Open the cart by clicking the cart icon.
  2. Remove one or more products and verify that the product count updates accordingly.

D. Checkout Process

Test valid checkout:

  1. Add products to the cart and click “Checkout.”
  2. Enter valid information (first name, last name, postal code) and proceed.
  3. Ensure the order is placed, and a confirmation message appears.

Test invalid checkout:

  1. Attempt to checkout with empty or invalid fields.
  2. Verify that error messages appear when fields are invalid or missing.

E. Navigation

  • Test the functionality of the navigation links and buttons (e.g., clicking the cart icon, going back to the products page, etc.).

Test Plan for Sauce Demo Site

Objective

The objective of this test plan is to ensure that the basic functionalities of the Sauce Demo site work correctly, with a focus on the login, product browsing, shopping cart, and checkout features.

Scope

In Scope:

  • Functional testing for user login, adding products to the cart, checkout, and product browsing.
  • Out of Scope:
  • Performance testing, non-functional testing, and security testing.

Test Environment

  • Devices: MacBook Air (using macOS)
  • Browsers: Safari, Chrome, Firefox (based on what you can test)
  • Operating System: macOS
  • Dependencies: Sauce Demo website (https://www.saucedemo.com/)

Testing Approach

  • Manual Testing: Functional testing using different browsers on your MacBook.
  • Automation (Optional): You can create automation scripts using tools like Selenium WebDriver if required.

Features to be Tested

  1. Login Page
  • Valid Login
  • Invalid Login
  • Locked-out user scenario
  1. Product Page
  • View products
  • Filter/sort products
  1. Shopping Cart
  • Add product(s) to cart
  • Remove product(s) from cart
  • View cart items
  1. Checkout
  • Checkout process
  • Enter valid/invalid details
  • Complete purchase

Test Cases for Sauce Demo Site

Case IDCase DescriptionStepsExpected ResultStatus
TC_01Verify valid user login1. Navigate to https://www.saucedemo.com/
2. Enter valid username and password
3. Click on “Login”
User is successfully logged in and redirected to the inventory page
TC_02Verify login with invalid creds1. Enter invalid username and password
2. Click on “Login”
Error message is displayed, and the user remains on the login page
TC_03Verify locked-out user login1. Enter username “locked_out_user”
2. Enter password
3. Click on “Login”
Error message “Sorry, this user has been locked out” is displayed
TC_04Verify product display1. Navigate to the product page after loginAll available products are displayed
TC_05Verify product filtering1. Use the product filter/sorting dropdown
2. Sort by price or name
Products are correctly filtered based on the selection
TC_06Verify adding products to cart1. From the product page, click “Add to Cart”Product is added to the cart, and cart count increases
TC_07Verify removing products1. Open the cart
2. Click “Remove”
Product is removed from the cart, and cart count decreases
TC_08Verify the checkout process1. Add product(s) to the cart
2. Click “Checkout”
3. Enter valid details in the checkout form
4. Complete purchase
Purchase is successfully completed, and confirmation message is displayed
TC_09Verify checkout with invalid1. Add product(s) to the cart
2. Click “Checkout”
3. Enter invalid/empty details in the form
Error message is displayed for invalid details
comments powered by Disqus
Hello world!
Built with Hugo
Theme Stack designed by Jimmy