惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
TaoSecurity Blog
TaoSecurity Blog
T
Threat Research - Cisco Blogs
Cisco Talos Blog
Cisco Talos Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Tenable Blog
C
Cybersecurity and Infrastructure Security Agency CISA
GbyAI
GbyAI
Microsoft Security Blog
Microsoft Security Blog
N
Netflix TechBlog - Medium
AWS News Blog
AWS News Blog
Security Latest
Security Latest
L
LINUX DO - 热门话题
Blog — PlanetScale
Blog — PlanetScale
T
Threatpost
Stack Overflow Blog
Stack Overflow Blog
Vercel News
Vercel News
S
Securelist
I
Intezer
D
Darknet – Hacking Tools, Hacker News & Cyber Security
H
Heimdal Security Blog
T
The Exploit Database - CXSecurity.com
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The Hacker News
The Hacker News
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
H
Hackread – Cybersecurity News, Data Breaches, AI and More
U
Unit 42
The Register - Security
The Register - Security
NISL@THU
NISL@THU
S
Schneier on Security
M
MIT News - Artificial intelligence
The Last Watchdog
The Last Watchdog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Hugging Face - Blog
Hugging Face - Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Hacker News - Newest:
Hacker News - Newest: "LLM"
Y
Y Combinator Blog
Know Your Adversary
Know Your Adversary
罗磊的独立博客
MongoDB | Blog
MongoDB | Blog
美团技术团队
W
WeLiveSecurity
P
Privacy International News Feed
Forbes - Security
Forbes - Security
H
Hacker News: Front Page
小众软件
小众软件
博客园 - 【当耐特】
P
Proofpoint News Feed
P
Privacy & Cybersecurity Law Blog
T
Tor Project blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
How to Test a Food Delivery App: 30 Test Cases from Order to Doorstep
Jay Saadana · 2026-06-16 · via DEV Community

Every food delivery app has the same promise: you tap a button, food shows up at your door. Testing that promise requires covering everything between those two moments search, browse, cart, coupons, payments, tracking, delivery confirmation, ratings, and the dozen things that can go wrong at each step.

This guide provides 30 ready-to-use test cases covering every critical flow in a food delivery app, from opening the app to the food arriving. Each test case is written two ways: the traditional Appium approach (selectors, waits, assertions) and the Vision AI approach (plain English, no code). By the end, you'll have a complete QA checklist you can execute today.

These test cases are based on patterns from production delivery apps processing over a million orders daily in India, including platforms tested with Drizz Vision AI.

For the broader delivery app testing strategy, see our Why Delivery Apps Are the Hardest to Test guide.


How to Read These Test Cases

Each test case is shown in two formats:

Appium (traditional): Python code using selectors, explicit waits, and element assertions. Requires Appium server, platform SDKs, and element inspection setup.
Drizz (Vision AI): Plain English steps that describe what the user sees and does. No selectors, no code, no setup beyond connecting a device.


Section 1: App Launch and Location (Test Cases 1-5)

TC-01: App launches and home screen loads

Appium:

driver.launch_app()
WebDriverWait(driver, 15).until(
    EC.presence_of_element_located((AppiumBy.ID, "com.app:id/home_screen")))
assert driver.find_element(AppiumBy.ID, "com.app:id/restaurant_list").is_displayed()

Drizz:

Launch the app
Verify home screen is visible
Verify restaurant listings are displayed

TC-02: Location permission prompt appears and is accepted

Appium:

WebDriverWait(driver, 10).until(
    EC.presence_of_element_located((AppiumBy.ID, "com.android.permissioncontroller:id/permission_allow_foreground_only_button")))
driver.find_element(AppiumBy.ID, "com.android.permissioncontroller:id/permission_allow_foreground_only_button").click()

‍Drizz:

Verify location permission dialog appears
Tap "Allow only while using the app"
Verify home screen loads with restaurant listings

TC-03: Change delivery location manually

Appium:

driver.find_element(AppiumBy.ID, "com.app:id/location_bar").click()
driver.find_element(AppiumBy.ID, "com.app:id/search_location").send_keys("Koramangala")
WebDriverWait(driver, 5).until(
    EC.presence_of_element_located((AppiumBy.XPATH, "//android.widget.TextView[contains(@text, 'Koramangala')]")))
driver.find_element(AppiumBy.XPATH, "//android.widget.TextView[contains(@text, 'Koramangala')]").click()

Drizz:

Tap the delivery location bar
Type "Koramangala" in location search
Tap "Koramangala" from suggestions
Verify restaurant listings update

‍TC-04: Restaurants update when location changes

Appium:

# Store current first restaurant name
first_restaurant_before = driver.find_element(AppiumBy.XPATH,
    "//android.widget.RecyclerView/android.widget.FrameLayout[1]//android.widget.TextView[@resource-id='com.app:id/restaurant_name']").text
# Change location
change_location("Whitefield")
first_restaurant_after = driver.find_element(AppiumBy.XPATH,
    "//android.widget.RecyclerView/android.widget.FrameLayout[1]//android.widget.TextView[@resource-id='com.app:id/restaurant_name']").text
assert first_restaurant_before != first_restaurant_after

Drizz:

Note the first restaurant name on screen
Change location to "Whitefield"
Verify restaurant listings have changed
Verify a different restaurant appears first

TC-05: "Not serviceable" message for unsupported location

Appium:

change_location("Remote Village")
WebDriverWait(driver, 10).until(
    EC.presence_of_element_located((AppiumBy.ID, "com.app:id/not_serviceable_text")))
assert "not available" in driver.find_element(AppiumBy.ID, "com.app:id/not_serviceable_text").text.lower()

Drizz

Change location to an unsupported area
Verify "not available in your area" message is displayed


‍Section 2: Search and Browse (Test Cases 6-10)

TC-06: Search for a cuisine and verify results

Drizz:

Tap the search bar
Type "Biryani"
Verify search results show restaurants with "Biryani" in name or cuisine tags

TC-07: Filter by rating (4.0+ stars)

Drizz:

Tap "Filters"
Select "Rating 4.0+"
Tap "Apply"
Verify all displayed restaurants show 4.0 or higher rating

TC-08: Sort by delivery time

Drizz:

Tap "Sort"
Select "Delivery Time"
Verify restaurants are listed with shortest delivery time first

TC-09: Browse a restaurant menu

Drizz:

Tap on the first restaurant card
Verify restaurant menu screen loads
Verify menu categories are visible
Verify at least one menu item shows name and price

TC-10: Restaurant closed message displays correctly

Drizz:

Navigate to a restaurant marked as closed
Verify "Currently closed" or schedule information is displayed
Verify "Add to Cart" button is disabled or not visible


Section 3: Cart Management (Test Cases 11-16)

TC-11: Add item to cart

Appium:

driver.find_element(AppiumBy.XPATH,
    "//android.widget.TextView[@text='Chicken Biryani']/following-sibling::android.widget.Button[@resource-id='com.app:id/add_btn']").click()
WebDriverWait(driver, 5).until(
    EC.presence_of_element_located((AppiumBy.ID, "com.app:id/cart_badge")))
assert driver.find_element(AppiumBy.ID, "com.app:id/cart_badge").text == "1"

Drizz:

Tap "Add" next to the first menu item
Verify cart icon shows item count of 1

TC-12: Increase item quantity

Drizz:

Tap "+" on the added item
Verify quantity shows 2
Verify cart total updates

TC-13: Remove item from cart

Drizz:

Tap "-" until item quantity reaches 0
Verify item is removed from cart
Verify cart icon shows empty or disappea

TC-14: Add items from different restaurants (multi-restaurant warning)

Drizz:

Add an item from Restaurant A
Navigate back and open Restaurant B
Tap "Add" on an item from Restaurant B
Verify "Replace cart" or "Start new cart" dialog appears

TC-15: Cart persists after app restart

Drizz:

Add 2 items to cart
Close the app completely
Reopen the app
Verify cart still shows 2 items with correct names and prices

TC-16: Item unavailable after adding to cart

Drizz:

Add an item to cart
Navigate to checkout
Verify if any "item unavailable" message appears
Verify cart total recalculates if items are removed


Section 4: Checkout and Payment (Test Cases 17-24)

TC-17: Checkout screen displays order summary correctly

Appium:

driver.find_element(AppiumBy.ID, "com.app:id/checkout_btn").click()
WebDriverWait(driver, 10).until(
    EC.presence_of_element_located((AppiumBy.ID, "com.app:id/order_summary")))
assert driver.find_element(AppiumBy.ID, "com.app:id/item_total").is_displayed()
assert driver.find_element(AppiumBy.ID, "com.app:id/delivery_fee").is_displayed()
assert driver.find_element(AppiumBy.ID, "com.app:id/grand_total").is_displayed()

Drizz:

Tap "Checkout" or "View Cart"
Verify order summary screen shows item names and quantities
Verify delivery fee is displayed
Verify total amount is displayed

TC-18: Apply coupon code successfully

Drizz:

Tap "Apply Coupon" on checkout screen
Type "FLAT50" in coupon field
Tap "Apply"
Verify discount is reflected in the order total
Verify coupon tag shows "FLAT50 applied"

TC-19: Apply invalid coupon code

Drizz:

Tap "Apply Coupon"
Type "INVALIDCODE" in coupon field
Tap "Apply"
Verify error message "Invalid coupon" or "Coupon not applicable" appears
Verify total remains unchanged

TC-20: Pay with UPI

Drizz:

On checkout screen, select "UPI" as payment method
Verify UPI app selection or UPI ID input appears
Complete payment
Verify "Order Confirmed" screen appears

TC-21: Pay with credit/debit card

Select "Credit / Debit Card" as payment method
Verify card input form appears
Enter test card details
Tap "Pay"
Verify order confirmation screen appears

TC-22: Pay with Cash on Delivery

Drizz:

Select "Cash on Delivery" as payment method
Tap "Place Order"
Verify order confirmation screen appears
Verify order status shows "COD" payment method

TC-23: Pay with wallet (partial + UPI)

Drizz:

Verify wallet balance is displayed on checkout
Toggle "Use wallet balance" on
Verify remaining amount to pay is calculated
Select "UPI" for the remaining amount
Complete payment
Verify order confirmed

TC-24: Delivery tip selection

Drizz:

On checkout screen, verify tip options are displayed
Tap a tip amount (e.g., "20")
Verify total updates to include tip
Tap "Place Order"
Verify order confirmation includes tip


‍Section 5: Order Tracking (Test Cases 25-27)

TC-25: Order status updates in real-time

Drizz:

After placing an order, verify order tracking screen loads
Verify status shows "Order Placed" or "Confirmed"
Wait for status to update to "Preparing" or "Being Prepared"
Verify status transition is visible on screen

TC-26: Live map tracking shows delivery partner

Drizz:

On order tracking screen, verify map is displayed
Verify delivery partner icon or marker appears on map
Verify ETA is displayed and updates

TC-27: Cancel order flow

Drizz:

On order tracking screen, tap "Cancel Order" or "Help"
Verify cancellation options or reasons are displayed
Select a reason and confirm cancellation
Verify "Order Cancelled" confirmation appears


‍Section 6: Post-Delivery (Test Cases 28-30)

TC-28: Rate the order

Drizz:

After delivery, verify rating prompt appears
Tap a star rating (e.g., 4 stars)
Verify rating is submitted
Verify "Thank you" or confirmation message appears

TC-29: Reorder previous order

Drizz:

Navigate to order history
Tap "Reorder" on a previous order
Verify items are added to cart with correct quantities
Navigate to checkout
Verify order summary matches previous order

TC-30: Report an issue with delivered order

Drizz:

Navigate to order history
Tap on a completed order
Tap "Help" or "Report an Issue"
Verify issue categories are displayed (wrong item, missing item, quality)
Select an issue and submit
Verify confirmation that issue is reported


The Pattern You Just Saw

Look at the 30 test cases above. Every Drizz test reads like instructions you'd give a human tester: "tap this, verify that, check this appears." Every Appium test reads like code written for a machine: element IDs, XPath expressions, explicit waits, type assertions.

Now ask yourself:

  • Which version survives a checkout screen redesign?
  • Which version breaks when a developer renames com.app:id/add_btn to com.app:id/add_to_cart?
  • Which version can a manual QA tester write without learning Python?
  • Which version takes 5 minutes to write vs 45 minutes?

The Appium versions require 6-12 selectors per test, each one a potential breakage point. The Drizz versions require zero selectors. When the UI changes, the Appium tests break. The Drizz tests keep passing because the button still says "Add" on screen.

At 30 test cases with an average of 8 selectors each, an Appium suite has 240 breakage points. A Drizz suite has zero.


How to Use This Checklist

If you're starting from zero: Use the Drizz versions. Install Drizz Desktop, connect a device, and start with TC-01 through TC-10. You'll have your first 10 automated tests running within an hour.

If you have an existing Appium suite: Compare your current tests against this checklist. Identify which of the 30 flows you're missing. Rewrite your highest-maintenance tests (checkout, payment, cart) in Drizz and run them in parallel for 2 sprints to compare maintenance cost.

If you're a QA lead building a strategy: This checklist maps to the 5-layer testing strategy recommended for delivery apps. TC-01 through TC-05 are Layer 1 smoke tests. TC-06 through TC-30 are Layer 2-3 regression tests.

Get started with Drizz


Frequently Asked Questions

How many test cases does a delivery app need?

A production delivery app typically maintains 300-500+ automated test cases. This checklist of 30 covers the critical path from order to doorstep. Additional tests cover edge cases (network failures, concurrent modifications, multi-device sessions), payment permutations (8-12 methods), location-based variations, and device compatibility.

Can these test cases run on both Android and iOS?

The Drizz versions run identically on Android and iOS from a single test file because they describe what the user sees, not platform-specific element identifiers. The Appium versions require separate element locators for Android (resource-id, XPath) and iOS (accessibility-id, predicate string).

How long does it take to automate all 30 test cases?

With Drizz: approximately 2-3 hours for all 30 test cases (5-6 minutes each). With Appium: approximately 15-20 hours including element inspection, selector identification, wait configuration, and cross-device validation.

What about test data (restaurant names, menu items, prices)?

The Drizz test cases use structural validation ("verify a restaurant card shows name, rating, and delivery time") rather than specific data ("verify Pizza Palace shows Margherita at 299"). This means tests pass regardless of which restaurants are available at test time. For data-specific tests (coupon codes, test payment credentials), parameterize the test data separately.

Do I need a test environment or can I test on production?

Drizz tests can run on production builds because they don't require instrumentation or debug builds. Use test accounts with test payment credentials to avoid real transactions. Most delivery apps provide sandbox payment modes for QA.