Test Case Structure - HibaAbdo/Level_Up2 GitHub Wiki

teacher 1. Introduction

This document outlines the test plan for the Tournament Management System, focusing on key functionalities related to tournament creation, management, player handling, and round progression. The goal of these tests is to ensure the quality and stability of the software before release.

testing (1) 2. Test Scope

The scope of this test includes:

  • Tournament creation and setup.
  • Player management (add, edit, delete, sort, add by list).
  • Tournament settings modification and deletion.
  • Round progression, match generation, and result assignment.

bug 3. Test Cases

Test Case ID Feature Test Scenario Test Steps Expected Result Actual Result Status
TC01 Mobile Compatibility Ensure layout works on small mobile screens Open app on phone → Navigate between pages Layout is responsive on both mobile and desktop Initially broken → fixed Pass
TC02 TRF File Format Compliance Fail when TRF format is incorrect Generate TRF file manually without correct formatting Tournament fails to parse or generate rounds Failed due to format issue Fail
TC03 TRF File Format Compliance Load and parse prebuilt TRF frame Start tournament → Select TRF frame → Generate round Round created with valid pairings and formatting Works as expected Pass
TC04 Create Players Add a player manually via modal Click "Add Player" → Enter name and FIDE → Click Save Player is added to the table Works as expected Pass
TC05 Edit Player Edit an existing player’s name Go to Players page → Click edit icon → Edit name → Click Save Player’s name is updated successfully Works as expected Pass
TC06 Delete Player Remove a player from the list Go to Players page → Click delete icon → Confirm deletion Player is removed from the table Works as expected Pass
TC07 Import Players from List Add multiple players using text area Open “Add Players by List” → Paste names → Click Create All players are added to the table Works as expected Pass
TC08 Generate Pairings Generate next round when all match results are filled Go to Rounds → Fill results for each match → Click “Next Round” New round is generated with correct pairings Works as expected Pass
TC09 Delete Last Round Remove the most recently created round Go to Rounds → Click “Delete Last Round” Last round is deleted from the list Works as expected Pass
TC10 Archived Tournament Recovery Restore a previously archived tournament Go to Archive → Select a tournament → Click Restore Tournament data reappears and is editable Works as expected Pass
TC11 API: Generate Next Round Use backend API to create a new round POST to /api/flow/next-round with player data Pairings returned in JSON with correct structure Works as expected Pass
TC12 Load Real Players into Rounds Ensure generated matches use added players, not placeholders Add players via UI → Click “Next Round” Matches are generated using real player names Initially used dummy names → fixed Fail → Pass
TC13 Violation Handling Add violations to a specific player Go to Rounds → Click violation square → Add data → Save Violation appears on player’s match cell Works as expected Pass
TC14 Guest Homepage View Allow guests to view standings table Open homepage without login → Click “View Standings” Read-only standings table is shown Works as expected Pass
TC15 View All Rounds View tables of all completed rounds Go to Rounds → Click “All Rounds” All previous rounds are listed together Works as expected Pass
TC16 API: Record Results Send match results to backend POST to /api/record/results with JSON results API responds with success and stores results Works as expected Pass