Home / Projects / Travel Marketplace Platform

Travel · case study

Travel Marketplace Platform

A flight/hotel/package booking marketplace where fare-lock integrity and overbooking prevention are tested as concurrency problems. Cypress + JavaScript automation, k6 performance/concurrency testing.

  • Cypress
  • JavaScript
  • Postman
  • k6
  • JIRA
  • Git
  • GitHub

Architecture at a glance

Animated overview · click to enlarge · @ghanendra

The system

A Travel Marketplace lets a traveler search, compare, and book flights, hotels, and packages across many third-party suppliers — airlines, hotels, travel operators — through one unified interface, instead of checking each supplier's own site individually.

Think of it as a single storefront reselling inventory it doesn't own. The core testing challenge follows directly from that: prices and availability are controlled by external suppliers and can change at any moment, so the platform has to guarantee that what a traveler is quoted is exactly what they're charged, and that two travelers can never both "win" the same last seat or room.

Core Flow

  1. Search — traveler searches flights/hotels/packages with filters
  2. Selection — traveler picks an option; price and availability shown as of that moment
  3. Fare Lock / Hold — the selected price and inventory unit are held for a short window
  4. Payment — traveler pays; the platform must charge exactly the fare-locked price
  5. Booking Confirmation — a PNR/booking reference is generated
  6. Itinerary — traveler can view, manage, or cancel the booking afterward

Who typically interacts with it?

Role What they do
Traveler / Customer Searches, books, pays, manages, and cancels their own bookings
Travel Partner / Supplier Provides real-time inventory and pricing; fulfills the booking
Platform Admin/Ops Manages supplier onboarding, monitors booking-success rates

My role

QA Engineer / SDET responsible for the Travel Marketplace module, owning manual and automated test coverage across search accuracy, fare-lock integrity, and overbooking prevention.

  • Owned QA strategy for the search → fare lock → payment → confirmation → cancellation journey
  • Designed and executed automation covering fare-lock timing and concurrent-booking scenarios
  • Ran API testing validating fare-lock responses, payment payloads, and booking confirmations against supplier-side behavior
  • Focused test design on price/availability integrity — a defect category largely rooted in external supplier systems, but still the platform's responsibility to guard against
  • Logged, triaged, and tracked defects through their full lifecycle

Timeline: [Add Duration]


Types of testing

  • Functional Testing — search, selection, fare lock, payment, cancellation
  • Regression Testing — the full search-to-cancellation suite, run before every release
  • API Testing — search responses, fare-lock payloads, booking confirmations
  • Negative Testing — supplier timeout during search, stale price at payment time, expired fare lock
  • Concurrency Testing — simultaneous booking attempts on the same limited inventory unit, validated with k6 (see docs/architecture-and-flow.md section 5 for the exact race condition, and docs/tech-and-skills.md section 5 for the full load/spike/soak approach)
  • Performance/Load Testing — search-traffic load and spike scenarios, since booking demand is notably bursty around fare-drop alerts and seasonal surges
  • Cross-Browser Testing
  • Smoke & Sanity Testing — post-deployment health checks

How it works

timeout/error

payment within the hold window

hold window expires

🔎 Search
traveler searches flights/hotels/packages with filters

📡 Live query to
Supplier Inventory APIs (GDS / hotel systems)

⚠️ Clear error shown —
no stale results ever treated as current

🧭 Selection
traveler picks an option; price/availability shown as of that moment

🔒 Fare Lock / Hold
price + inventory unit reserved for a short window

✅ Charged price == fare-locked price

🚫 Payment blocked — traveler must re-search

🎫 Booking Confirmation
PNR/booking reference generated

📋 Itinerary
view, manage, or cancel — cancellation triggers the Refund Policy Engine

Hover a step to highlight it · arrows show the direction of the flow

The amount charged at payment time has to always match the fare-locked price shown at selection time, and only one traveler can ever successfully confirm a booking against a given limited inventory unit. See docs/business-overview.md section 4 for the full rationale, and docs/architecture-and-flow.md for the complete set of sequence diagrams — search, fare-lock, payment, the overbooking race condition itself, and cancellation/refund — showing exactly how each step is enforced.

Admin Functions

  • Supplier onboarding & inventory feed integration
  • Booking-success rate monitoring
  • Refund policy configuration
  • Reports

Automation approach

Automation is built with Cypress + JavaScript, backed by Postman API coverage and k6 for concurrency scenarios.

Priority Automated Scenarios

  1. Search happy path (flights and hotels)
  2. Fare lock → payment → booking confirmation
  3. Payment blocked after hold expiry
  4. Cancellation → refund quote → refund processed
  5. Overbooking prevention (concurrent booking simulation)

See automation/ for the framework README and a sample spec file using dummy data.


Results

  • Designed a search-to-booking regression suite treating price/availability integrity — stale pricing, overbooking — as first-class test scenarios rather than edge cases
  • Built a concurrency test approach via k6 specifically to catch overbooking defects that sequential UI testing alone can't reproduce
  • Validated cancellation/refund accuracy against fare-type-specific policy tiers
  • Logged and tracked defects across fare-lock timing and overbooking-prevention themes

Regression checklist

  • Search & Discovery (flights / hotels / packages)
  • Fare Lock & Booking
  • Overbooking Prevention (concurrent booking race conditions)
  • Cancellation & Refund
  • Itinerary Management
  • Payment Gateway Integration
  • UI Consistency (status labeling, price formatting, terminology, accessibility)

Full checklist with edge cases: regression-checklist.md.


Tech stack

Category Tools
UI Automation Cypress, JavaScript
API Testing & Automation Postman, Cypress cy.intercept-based contract assertions
Performance/Concurrency Testing k6
Bug Tracking JIRA
Version Control Git, GitHub

For why each tool was chosen for this product's specific risk profile, a skill-to-proof map, and the performance/concurrency testing approach in full: docs/tech-and-skills.md.


This case study uses sample data only: no real client names, production data or confidential information. Source and full documentation: travel-marketplace-platform on GitHub.