Skip to content

Navigation Menu

Sign in
Sign up

Latest commit

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

E-commerce Cart Testing Suite

Scenario

You need to create automated tests for a shopping cart feature on https://www.saucedemo.com (free practice site for test automation)

Setup

  • install command: pip install -r requirements.txt
  • run command: python -m pytest -v

Test Case 1: Successful Login & Add to Cart

  • Login with valid credentials
  • Add 2-3 products to cart
  • Verify cart shows correct item count
  • Verify cart shows correct products

Test Case 2: Remove Item from Cart

  • Add multiple items to cart
  • Remove one item
  • Verify item count updates
  • Verify removed item is no longer in cart

Test Case 3: Checkout Flow

  • Complete checkout with valid information
  • Verify order confirmation appears
  • Verify success message

Test Case 4: Negative Testing

  • Try login with invalid credentials
  • Verify appropriate error message
  • Try checkout without adding items
  • Any edge case you can think of

Features

  • Selenium WebDriver (Python library)
  • Page Object Model structure (separate page classes)
  • PyTest framework
  • Assertions
  • Waits (explicit waits, not Thread.sleep)

About

E2E QA automation using Python, Selenium, Pytest with Page Object Model on saucedemo.com

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /