How atkeya/automation-testing-pythonscripting works
This repository is a Python API-automation script for a food-ordering service, with separate user and driver flows. The user runner searches for an eligible restaurant, builds a cart, selects a promotion, checks the calculated bill, and—if the check passes—places and tracks an order through payment confirmation. A separate driver runner polls open orders and advances their statuses. Driver location pinging is another standalone capability. The graph follows relationships shown in the excerpts; external API calls are grouped at the service boundary.
Main entry points: runner_user.py User runner · food_order.py Order and payment · runner_driver.py Driver runner · driver_ping.py Location ping
Components 12
User ordering
- User runner
runner_user.py - Restaurant search
search_restaurant.py - Item selection
search_item.py - Promotion lookup
promo.py - Bill assertion
calculation_assertion.py
Order service
- Order and payment
food_order.py - Food API
Driver operations
- Driver runner
runner_driver.py - Driver configuration
driver_config.py - Order fulfillment
driver_order.py - Location ping
driver_ping.py - Location service
Connections 15
- User runner → Restaurant search: searches
runner_user.py - User runner → Item selection: selects items
runner_user.py - User runner → Promotion lookup: looks up promos
runner_user.py - User runner → Bill assertion: checks bill
runner_user.py - User runner → Order and payment: places order
runner_user.py - Bill assertion → Order and payment: requests bill
calculation_assertion.py - Restaurant search → Food API: queries
search_restaurant.py - Item selection → Food API: fetches items
search_item.py - Promotion lookup → Food API: fetches promos
promo.py - Order and payment → Food API: sends order requests
food_order.py - Driver runner → Order fulfillment: runs fulfillment
runner_driver.py - Driver runner → Driver configuration: loads settings
runner_driver.py - Order fulfillment → Food API: updates orders
driver_order.py - Location ping → Driver configuration: loads credentials
driver_ping.py - Location ping → Location service: posts pings
driver_ping.py