How gurpreetwork9582/saucedemo-bdd-automation works
This repository is a SauceDemo end-to-end browser-automation suite, with parallel Pytest and Behave entry points. Its product workflow covers authentication, cart changes, checkout, and order confirmation; the Behave checkout implementation is shown, while Pytest test bodies are not. The graph keeps the two suite paths distinct and includes shared authentication and locator code. Edges for documented but unsampled Pytest flows are supported by the README; source-level evidence is cited where available.
Main entry points: checkout_steps.py Checkout steps · tests Pytest flows · conftest.py Pytest browser fixture · checkout.feature Checkout scenario
Components 14
Automation suites
- Pytest flows
tests - Checkout scenario
features/checkout.feature - Checkout steps
features/steps/checkout_steps.py
Browser setup
- Pytest browser fixture
conftest.py - Behave browser hooks
features/environment.py
Shared helpers
- Login and cookies
config/Login_auth.py - Logout helper
config/Logout_auth.py - UI locators
locators/Locators.py
SauceDemo journey
- SauceDemo site
- Authentication
config/Login_auth.py - Cart operations
features/steps/checkout_steps.py - Checkout details
features/steps/checkout_steps.py - Order confirmation
features/steps/checkout_steps.py
Other components
- Test operator
Connections 17
- Test operator → Pytest flows: runs
README.md - Test operator → Checkout scenario: runs
README.md - Checkout scenario → Checkout steps: maps steps
README.md - Pytest browser fixture → Login and cookies: uses
conftest.py - Pytest browser fixture → Logout helper: imports
conftest.py - Behave browser hooks → SauceDemo site: opens browser
- Login and cookies → SauceDemo site: drives browser
config/Login_auth.py - Checkout steps → UI locators: uses selectors
features/steps/checkout_steps.py - Checkout steps → SauceDemo site: drives browser
features/steps/checkout_steps.py - Checkout steps → Authentication: logs in
features/steps/checkout_steps.py - Checkout steps → Cart operations: adds items
features/steps/checkout_steps.py - Checkout steps → Checkout details: submits details
features/steps/checkout_steps.py - Checkout steps → Order confirmation: checks message
features/steps/checkout_steps.py - Pytest flows → Authentication: covers login
README.md - Pytest flows → Cart operations: covers cart changes
README.md - Pytest flows → Checkout details: covers checkout
README.md - Pytest flows → Order confirmation: verifies order
README.md