Skip to content

Instantly share code, notes, and snippets.

@sanketsmali03
Created November 28, 2025 20:04
Show Gist options
  • Select an option

  • Save sanketsmali03/f74fac115a52c1f7be9740fce92e5071 to your computer and use it in GitHub Desktop.

Select an option

Save sanketsmali03/f74fac115a52c1f7be9740fce92e5071 to your computer and use it in GitHub Desktop.

Test Scenarios Collection

A comprehensive collection of BDD (Behavior-Driven Development) test scenarios for popular websites and web applications. This document provides ready-to-use test prompts for automation testing across various platforms.

Table of Contents

Standard Web Application Scenarios

Enterprise-Level Scenarios


1. Wikipedia

URL: https://www.wikipedia.org

Scenario — Search Function

Prompt:

Generate BDD test cases for searching 'Selenium automation' on https://www.wikipedia.org and verifying the article opens correctly.

Scenario — Language Selection

Prompt:

Generate test cases for switching Wikipedia language from English to Spanish and validating homepage changes.


2. Amazon

URL: https://www.amazon.com or https://www.amazon.in

Scenario — Product Search & Add to Cart

Prompt:

Create test cases for searching 'iPhone 15', opening the product page, adding to cart, and verifying cart count on Amazon.

Scenario — Filter & Sort

Prompt:

Generate BDD tests for filtering products by brand and sorting by price: low to high on Amazon Electronics category.


3. Flipkart

URL: https://www.flipkart.com

Scenario — Login Popup Behaviour

Prompt:

Generate test cases for verifying Flipkart's login modal appears on first visit and dismiss behavior.

Scenario — Product Comparison

Prompt:

Generate BDD test scenarios for using the 'Compare' feature on Flipkart's mobile phone category.


4. Swiggy

URL: https://www.swiggy.com

Scenario — Location Detection

Prompt:

Generate test cases for entering location manually vs using auto-detect on Swiggy homepage.

Scenario — Restaurant Search

Prompt:

Generate BDD scenarios for searching 'Biryani', applying rating filter, and opening restaurant details.


5. MakeMyTrip

URL: https://www.makemytrip.com

Scenario — Flight Search

Prompt:

Generate test cases for round-trip flight search from Mumbai to Delhi on MakeMyTrip.

Scenario — Date Picker Validation

Prompt:

Generate BDD tests for MakeMyTrip calendar widget: previous month disabled & future date selection.


6. Booking.com

URL: https://www.booking.com

Scenario — Hotel Search

Prompt:

Generate test cases for searching hotels in Bangalore, selecting dates, applying price filter, and validating results.

Scenario — Sign-in Modal

Prompt:

Generate BDD scenarios for verifying Booking.com sign-in modal behavior on clicking 'Sign In'.


7. Netflix

URL: https://www.netflix.com

Scenario — Sign Up Flow

Prompt:

Generate test cases for Netflix signup flow: email entry → plan selection → account creation.

Scenario — Restricted Content

Prompt:

Generate BDD tests verifying parental control settings block '18+' content on Kids profile page.


8. Spotify Web

URL: https://open.spotify.com

Scenario — Play Song Search

Prompt:

Generate test cases for searching a song, playing it, and verifying player controls on Spotify Web.

Scenario — Create Playlist

Prompt:

Generate BDD tests to create a new playlist, rename it, and add/remove songs.


9. YouTube

URL: https://www.youtube.com

Scenario — Video Search

Prompt:

Generate test cases for searching 'Selenium tutorial' on YouTube and validating recommended videos.

Scenario — Player Controls

Prompt:

Generate BDD tests for play/pause, volume control, full-screen toggle, and captions on YouTube player.


10. Demo QA Website

URL: https://demoqa.com

Perfect for testing elements, forms, buttons, alerts.

Scenario — Form Submission

Prompt:

Generate test cases for filling 'Practice Form' on https://demoqa.com/automation-practice-form and verifying success message.

Scenario — Dynamic Elements

Prompt:

Generate BDD scenarios for testing dynamic buttons that appear after 5 seconds on DemoQA.


Usage

Each scenario includes a ready-to-use prompt that can be directly used with BDD test generation tools or AI assistants to create comprehensive test cases. Simply copy the prompt and use it with your preferred testing framework or test generation tool.

Notes

  • All URLs are current as of the document creation date
  • Test scenarios are designed to be framework-agnostic
  • Some scenarios may require authentication or specific account setup
  • Always ensure you have permission to test on these platforms

🏢 ENTERPRISE-LEVEL COMPLEX SCENARIOS (AI-Optimized) ✅ 1. Role-Based Access & Multi-Tenant Security

Scenario: An enterprise SaaS product supports multiple tenants and 6 user roles (Admin, Manager, Auditor, Read-Only, External Partner, Support Agent).

Prompt: “Generate BDD test cases for validating multi-tenant access controls in a SaaS platform where Admin can manage tenants, Manager can view/edit only their department data, Auditor can access logs, and External Partner should see only shared projects. Include permission escalation, unauthorized access attempts, SSO login, and audit logging.”

✅ 2. Complex Workflow Automation (Approval Flows)

Enterprise products often have multi-step workflow approvals.

Scenario: Employee submits purchase request → Manager approves → Finance reviews → Procurement finalizes → Status updates.

Prompt: “Generate detailed test cases for a multi-level approval workflow involving 4 approvers. Include parallel approvals, rejection at any stage, escalation if pending >48 hrs, automated email notifications, and verifying history logs.”

✅ 3. ERP Inventory Management – Real-Time Sync

Scenario: Inventory is updated across multiple warehouses, with real-time sync routed via backend APIs.

Prompt: “Create test cases for validating inventory updates across 3 warehouses in an ERP system, checking real-time synchronization, API failures, queuing behavior, conflict resolution rules, and UI visualization updates in dashboard.”

✅ 4. Enterprise Payment Reconciliation

Scenario: Orders come from multiple channels; payments are reconciled with bank statements.

Prompt: “Generate BDD test cases for payment reconciliation involving multiple data sources (order system, payment gateway, bank statement). Include mismatched entries, partial payments, duplicate transactions, auto-reconciliation rules, retry queue, and discrepancy reporting.”

✅ 5. Audit Logging & Compliance (SOX / HIPAA / ISO)

Scenario: Every user action must be logged, encrypted, retained, and exportable.

Prompt: “Generate enterprise-grade test cases to validate audit logging for CRUD actions, session events, permission changes, IP tracking, log encryption, tamper detection, exporting logs to SIEM tools, and retention policies.”

✅ 6. SSO + MFA + Conditional Access

Scenario: Application uses OAuth, SAML, MFA (SMS/App), and Conditional Access Policies.

Prompt: “Create BDD test cases to validate SSO login with SAML/OAuth, MFA flows, device-based restrictions, geolocation-based access blocks, idle session timeout, passwordless authentication, and user revocation syncing across IdP.”

✅ 7. Data Pipeline + UI Reporting Consistency

Scenario: Huge datasets processed nightly, shown on BI dashboards.

Prompt: “Generate test cases that validate ETL pipeline correctness using sample data, verifying UI dashboard totals, refresh frequency, caching behavior, stale data conditions, partial reload failures, and role-based data visibility.”

✅ 8. Enterprise Search (Elasticsearch/Solr)

Scenario: Complex search across millions of documents with facets, ranking, relevancy tuning.

Prompt: “Generate BDD test scenarios for enterprise search including keyword relevance, synonym matching, typo tolerance, faceted filtering, field-level boosting, pagination, sorting, and system behavior under heavy search load.”

✅ 9. High-Volume File Upload + Virus Scan + Processing

Scenario: Enterprise system accepts large files (PDF, CSV, ZIP), scans them, processes them.

Prompt: “Create detailed test cases for uploading files up to 1GB, validating checksum, virus scanning, background processing, partial failures, retry mechanism, notifications, and final processing status updates.”

✅ 10. Observability & Incident Monitoring Validation

Scenario: Enterprise app must expose metrics, triggers, and alerts.

Prompt: “Generate test cases for validating observability metrics (latency, error rate, CPU/memory), dashboard accuracy, synthesized alerts, threshold breaches, log correlation, and integration with PagerDuty/Slack.”

💎 EXPERT-GRADE COMPLEXITY (VERY IMPRESSIVE FOR DEMOS) ⭐ 11. Orchestrated Microservices Transaction Validation (Saga Pattern)

Scenario: Order placement triggers 7 services: Inventory, Payments, Notifications, Shipping, Fraud Check, Invoicing, CRM.

Prompt: “Generate BDD test cases for validating a multi-service saga workflow for order placement, including compensating transactions, partial failures, rollback behavior, distributed tracing, and API contract adherence.”

⭐ 12. Enterprise Chatbot / AI Assistant Testing

Scenario: AI bot integrates with CRM, ticketing, and knowledge-base.

Prompt: “Generate test cases for AI support chatbot with intent recognition, fallback responses, ticket creation via API, context memory, escalation to human agent, sentiment detection, and misclassification recovery.”

⭐ 13. Enterprise Application Performance & Scaling

Scenario: UI must handle 50K concurrent users and 10K TPS in backend.

Prompt: “Create non-functional test cases covering load, stress, ramp-up, concurrency, caching, CDN behavior, DB connection pooling, autoscaling, and circuit breaker activation.”

⭐ 14. Multi-Region Failover (DR Scenario)

Scenario: Primary region fails → traffic shifts to secondary.

Prompt: “Generate test cases verifying failover to secondary region, data replication consistency, DNS propagation, zero-data-loss policies, partial outage handling, and recovery SOP validation.”

⭐ 15. Complex Form with Conditional Logic (HRMS / CRM)

Scenario: A 7-step employee onboarding form with dependent fields.

Prompt: “Generate BDD test cases for multi-step form with conditional fields, dynamic validation rules, autosave, backward navigation, document upload, role-based editing, and final submission workflow.”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment