sp3-test-1770368381/.sdlc/features/websocket-chat/qa-plan.md
rdev-worker 0e39598aa6
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
build: /implement-feature websocket-chat --requirements 'GET /ws upgrades to...
2026-02-06 09:09:52 +00:00

887 B

WebSocket Chat - QA Plan

Test Cases

TC-1: WebSocket Connection Upgrade

  • Connect to GET /api/chat-api/ws
  • Verify HTTP 101 Switching Protocols
  • Verify WebSocket connection is established

TC-2: Message Send and Broadcast

  • Connect two clients to the same room
  • Client A sends a chat message
  • Verify Client B receives the message via broadcast

TC-3: Redis Pub/Sub Integration

  • Connect a client
  • Send a message
  • Verify message is published to Redis channel
  • Verify subscriber broadcasts to all clients

TC-4: Room-Based Messaging

  • Connect Client A to room "general"
  • Connect Client B to room "general"
  • Connect Client C to room "other"
  • Client A sends message to "general"
  • Verify Client B receives it
  • Verify Client C does not receive it

TC-5: Graceful Shutdown

  • Connect a client
  • Send SIGTERM to server
  • Verify connection is closed cleanly