# dindineez/flipkart-e2e-testing architecture

> Architecture diagram of the GitHub repository dindineez/flipkart-e2e-testing, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dindineez/flipkart-e2e-testing
- Repository: https://github.com/dindineez/flipkart-e2e-testing

## Overview

This repository is a student-oriented quality-engineering suite, not a commerce application: learners run browser, API, performance, and security checks against Flipkart or the intentionally vulnerable demo API and inspect test results. The demo API supplies a small store, product search, cart operations, and checkout. The graph preserves the README’s major testing branches and the sampled API implementation; test-suite internals and their individual calls were not sampled, so those connections are documented at the capability level rather than inferred from filenames.

Main entry points: [`demo-api/src/routes/cart.routes.js`](https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/demo-api/src/routes/cart.routes.js) (Cart routes), [`demo-api/src/server.js`](https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/demo-api/src/server.js) (HTTP server and pages), [`tests/playwright/ui`](https://github.com/dindineez/flipkart-e2e-testing/tree/flipkart-testing/tests/playwright/ui) (Playwright UI tests), [`tests/selenium/specs`](https://github.com/dindineez/flipkart-e2e-testing/tree/flipkart-testing/tests/selenium/specs) (Selenium UI tests)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Learning and execution"]
end

subgraph group_browser["Browser testing"]
  node_playwright_ui["Playwright UI tests"]
  node_selenium_ui["Selenium UI tests"]
end

subgraph group_api["API testing"]
  node_api_tests["API tests"]
end

subgraph group_performance["Performance testing"]
  node_perf_web["Web vitals tests<br/>[web-vitals.spec.js]"]
  node_perf_api["API performance tests"]
  node_perf_load["Load / stress tests<br/>[load-test.js]"]
  node_perf_stress["Stress tests<br/>[stress-test.js]"]
  node_perf_spike["Spike tests<br/>[spike-test.js]"]
end

subgraph group_security["Security testing"]
  node_security_api["API security tests"]
  node_security_headers["Header security tests"]
end

subgraph group_demo["Demo commerce API"]
  node_demo_api["Demo API<br/>[server.js]"]
  node_server["HTTP server and pages<br/>[server.js]"]
  node_products_route["Product search route<br/>[products.routes.js]"]
  node_cart_route["Cart routes<br/>[cart.routes.js]"]
  node_checkout_route["Checkout route<br/>[checkout.routes.js]"]
  node_cart_service["Cart service<br/>[cart.service.js]"]
  node_product_data["Product data<br/>[products.json]"]
  node_memory_carts[("In-memory carts<br/>[cart.service.js]")]
end

node_learner(("Student / learner"))
node_flipkart{{"Flipkart.com"}}
node_security_target{{"Demo API target"}}

node_learner -->|"runs"| node_playwright_ui
node_learner -->|"runs"| node_selenium_ui
node_learner -->|"runs"| node_api_tests
node_learner -->|"runs"| node_perf_web
node_learner -->|"runs"| node_perf_api
node_learner -->|"runs"| node_perf_load
node_learner -->|"runs"| node_perf_stress
node_learner -->|"runs"| node_perf_spike
node_learner -->|"runs"| node_security_api
node_learner -->|"runs"| node_security_headers
node_playwright_ui -->|"tests UI"| node_flipkart
node_selenium_ui -->|"tests UI"| node_flipkart
node_api_tests -->|"tests APIs"| node_flipkart
node_perf_web -->|"measures pages"| node_flipkart
node_perf_api -->|"measures APIs"| node_flipkart
node_perf_load -.->|"loads target"| node_flipkart
node_perf_stress -.->|"stresses target"| node_flipkart
node_perf_spike -.->|"spikes target"| node_flipkart
node_security_api -->|"tests vulnerabilities"| node_security_target
node_security_headers -.->|"checks headers"| node_security_target
node_security_target -->|"is"| node_demo_api
node_server -->|"mounts"| node_products_route
node_server -->|"mounts"| node_cart_route
node_server -->|"mounts"| node_checkout_route
node_products_route -->|"filters"| node_product_data
node_cart_route -->|"loads"| node_product_data
node_cart_route -->|"calls"| node_cart_service
node_checkout_route -->|"gets service"| node_cart_route
node_cart_service -->|"stores carts"| node_memory_carts

click node_playwright_ui "https://github.com/dindineez/flipkart-e2e-testing/tree/flipkart-testing/tests/playwright/ui"
click node_selenium_ui "https://github.com/dindineez/flipkart-e2e-testing/tree/flipkart-testing/tests/selenium/specs"
click node_api_tests "https://github.com/dindineez/flipkart-e2e-testing/tree/flipkart-testing/tests/playwright/api"
click node_demo_api "https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/demo-api/src/server.js"
click node_perf_web "https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/tests/performance/web-vitals.spec.js"
click node_perf_api "https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/tests/performance/api-performance.spec.js"
click node_perf_load "https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/tests/performance/load-test.js"
click node_perf_stress "https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/tests/performance/stress-test.js"
click node_perf_spike "https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/tests/performance/spike-test.js"
click node_security_api "https://github.com/dindineez/flipkart-e2e-testing/tree/flipkart-testing/tests/security/api"
click node_security_headers "https://github.com/dindineez/flipkart-e2e-testing/tree/flipkart-testing/tests/security/headers"
click node_server "https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/demo-api/src/server.js"
click node_products_route "https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/demo-api/src/routes/products.routes.js"
click node_cart_route "https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/demo-api/src/routes/cart.routes.js"
click node_checkout_route "https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/demo-api/src/routes/checkout.routes.js"
click node_cart_service "https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/demo-api/src/services/cart.service.js"
click node_product_data "https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/test-data/products.json"
click node_memory_carts "https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/demo-api/src/services/cart.service.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_playwright_ui,node_selenium_ui toneAmber
class node_api_tests,node_security_target toneMint
class node_perf_web,node_perf_api,node_perf_load,node_perf_stress,node_perf_spike toneRose
class node_security_api,node_security_headers,node_learner,node_flipkart toneIndigo
class node_demo_api,node_server,node_products_route,node_cart_route,node_checkout_route,node_cart_service,node_product_data,node_memory_carts toneTeal
```

## Components

### Browser testing

- [Playwright UI tests](https://github.com/dindineez/flipkart-e2e-testing/tree/flipkart-testing/tests/playwright/ui): `tests/playwright/ui`
- [Selenium UI tests](https://github.com/dindineez/flipkart-e2e-testing/tree/flipkart-testing/tests/selenium/specs): `tests/selenium/specs`

### API testing

- [API tests](https://github.com/dindineez/flipkart-e2e-testing/tree/flipkart-testing/tests/playwright/api): `tests/playwright/api`

### Performance testing

- [Web vitals tests](https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/tests/performance/web-vitals.spec.js): `tests/performance/web-vitals.spec.js`
- [API performance tests](https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/tests/performance/api-performance.spec.js): `tests/performance/api-performance.spec.js`
- [Load / stress tests](https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/tests/performance/load-test.js): `tests/performance/load-test.js`
- [Stress tests](https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/tests/performance/stress-test.js): `tests/performance/stress-test.js`
- [Spike tests](https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/tests/performance/spike-test.js): `tests/performance/spike-test.js`

### Security testing

- [API security tests](https://github.com/dindineez/flipkart-e2e-testing/tree/flipkart-testing/tests/security/api): `tests/security/api`
- [Header security tests](https://github.com/dindineez/flipkart-e2e-testing/tree/flipkart-testing/tests/security/headers): `tests/security/headers`

### Demo commerce API

- [Demo API](https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/demo-api/src/server.js): `demo-api/src/server.js`
- [HTTP server and pages](https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/demo-api/src/server.js): `demo-api/src/server.js`
- [Product search route](https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/demo-api/src/routes/products.routes.js): `demo-api/src/routes/products.routes.js`
- [Cart routes](https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/demo-api/src/routes/cart.routes.js): `demo-api/src/routes/cart.routes.js`
- [Checkout route](https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/demo-api/src/routes/checkout.routes.js): `demo-api/src/routes/checkout.routes.js`
- [Cart service](https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/demo-api/src/services/cart.service.js): `demo-api/src/services/cart.service.js`
- [Product data](https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/test-data/products.json): `test-data/products.json`
- [In-memory carts](https://github.com/dindineez/flipkart-e2e-testing/blob/flipkart-testing/demo-api/src/services/cart.service.js): `demo-api/src/services/cart.service.js`

### Other components

- **Student / learner**
- **Flipkart.com**
- **Demo API target**

## Connections

- Student / learner → Playwright UI tests: runs (evidence: `README.md`)
- Student / learner → Selenium UI tests: runs (evidence: `README.md`)
- Student / learner → API tests: runs (evidence: `README.md`)
- Student / learner → Web vitals tests: runs (evidence: `README.md`)
- Student / learner → API performance tests: runs (evidence: `README.md`)
- Student / learner → Load / stress tests: runs (evidence: `README.md`)
- Student / learner → Stress tests: runs (evidence: `README.md`)
- Student / learner → Spike tests: runs (evidence: `README.md`)
- Student / learner → API security tests: runs (evidence: `README.md`)
- Student / learner → Header security tests: runs (evidence: `README.md`)
- Playwright UI tests → Flipkart.com: tests UI (evidence: `README.md`)
- Selenium UI tests → Flipkart.com: tests UI (evidence: `README.md`)
- API tests → Flipkart.com: tests APIs (evidence: `README.md`)
- Web vitals tests → Flipkart.com: measures pages (evidence: `README.md`)
- API performance tests → Flipkart.com: measures APIs (evidence: `README.md`)
- Load / stress tests → Flipkart.com: loads target
- Stress tests → Flipkart.com: stresses target
- Spike tests → Flipkart.com: spikes target
- API security tests → Demo API target: tests vulnerabilities (evidence: `README.md`)
- Header security tests → Demo API target: checks headers
- Demo API target → Demo API: is (evidence: `README.md`)
- HTTP server and pages → Product search route: mounts (evidence: `demo-api/src/server.js`)
- HTTP server and pages → Cart routes: mounts (evidence: `demo-api/src/server.js`)
- HTTP server and pages → Checkout route: mounts (evidence: `demo-api/src/server.js`)
- Product search route → Product data: filters (evidence: `demo-api/src/routes/products.routes.js`)
- Cart routes → Product data: loads (evidence: `demo-api/src/routes/cart.routes.js`)
- Cart routes → Cart service: calls (evidence: `demo-api/src/routes/cart.routes.js`)
- Checkout route → Cart routes: gets service (evidence: `demo-api/src/routes/checkout.routes.js`)
- Cart service → In-memory carts: stores carts (evidence: `demo-api/src/services/cart.service.js`)
