How computer-com/mobilet works
This repository automates Android shopping flows in the Swag Labs app: launch and log in, browse and sort products, add items to the cart, and complete checkout. Behave steps drive Appium-backed page objects, while YAML configuration supplies app and test data. Visual checks use Applitools. The README is empty, and the cart page implementation was not sampled, so its internal behavior and some wiring are represented only where supported by the tree and workflow source.
Main entry points: checkout_steps.py Checkout Steps · products_page.py Products Page · base_page.py Page Primitives · environment.py Scenario Setup
Components 20
Shopping Scenarios
- Login Scenarios
features/login.feature - Product Scenarios
features/products.feature - Checkout Scenarios
features/checkout.feature
Automation Runtime
- Login Steps
features/steps/login_steps.py - Product Steps
features/steps/products_steps.py - Checkout Steps
features/steps/checkout_steps.py - Scenario Setup
features/environment.py
Mobile Page Objects
- Page Primitives
pages/base_page.py - Login Page
pages/login_page.py - Products Page
pages/products_page.py - Cart Page
pages/cart_page.py - Checkout Page
pages/checkout_page.py - UI Locators
locators.py
Configuration
- Config Manager
config/config_manager.py - App Settings
config/settings.yaml - Environment Data
config/environments.yaml
Other components
- QA User
- Appium Server
- Swag Labs App
labs.apk - Applitools Eyes
Connections 30
- QA User → Login Scenarios: starts scenario
- QA User → Product Scenarios: starts scenario
- QA User → Checkout Scenarios: starts scenario
- Login Scenarios → Login Steps: matches steps
- Product Scenarios → Product Steps: matches steps
- Checkout Scenarios → Checkout Steps: matches steps
- Scenario Setup → Appium Server: starts service
- Scenario Setup → Config Manager: loads settings
- Scenario Setup → Applitools Eyes: opens visual session
- Appium Server → Swag Labs App: launches app
- Login Steps → Login Page: drives login
- Login Steps → Config Manager: gets credentials
- Login Steps → Applitools Eyes: checks screen
- Product Steps → Login Page: logs in
- Product Steps → Products Page: browses products
- Checkout Steps → Products Page: adds products
- Checkout Steps → Cart Page: proceeds to cart
- Checkout Steps → Checkout Page: enters shipping
- Checkout Steps → Applitools Eyes: checks confirmation
- Login Page → Page Primitives: uses actions
- Products Page → Page Primitives: uses actions
- Cart Page → Page Primitives: uses actions
- Checkout Page → Page Primitives: uses actions
- Login Page → Products Page: returns after login
- Products Page → Cart Page: opens cart
- Cart Page → Checkout Page: starts checkout
- Page Primitives → UI Locators: uses selectors
- Config Manager → App Settings: reads
- Config Manager → Environment Data: reads
- Scenario Setup → Appium Server: creates driver