PracticeQAAutomation logoPracticeQAAutomation

📘 Project KT · Fantasy sports

🏏 FantasyXI

Fantasy cricket team builder

Complexity
Advanced
Screens
5
Scenarios
9
Test cases
16

1Business context

FantasyXI is a fantasy cricket game. Users build an 11-player team within a credit budget and composition rules, pick a captain and vice-captain, and compete on a leaderboard before the match locks.

Pick 11 players under a 100-credit budget with a 7-per-team cap and role minimums/maximums — every blocked + explains why — then choose captain and vice-captain, save, and see your leaderboard rank.

2Users & roles

  • 👤 Fantasy player (player11 / Play@123) — builds teams and follows the leaderboard

3Modules & screens

ScreenRouteWhat it does
Sign-in gate/apps/fantasyUsername player11 / Play@123; any page opened while signed out shows the login and returns there afterwards
Matches/apps/fantasyUpcoming and locked matches with countdowns
Team builder/apps/fantasy/create/[match]Player picks with live counters, then captain/vice-captain
My teams/apps/fantasy/teamsSaved teams and projected points
Leaderboard/apps/fantasy/leaderboardSortable ranks with your team highlighted

4Main end-to-end journey

Build XI, save and check rank

  1. Sign in as player11 / Play@123
  2. Create a team for match 1
  3. Pick 1 WK, 4 BAT, 2 AR and 4 BOWL within 100 credits
  4. Choose captain and vice-captain
  5. Name it and save
  6. Open the leaderboard

Expected: 11/11 selected, 0.0 credits left, 865 projected points, and your team at #6

5Business rules & validations

  • Account loginBeginner

    Username + password (fx-login-id, fx-password, fx-login). Teams and rank belong to the signed-in account; fx-logout signs out.

  • CountersBeginner

    Each pick updates players-selected, credits-left, count-IND/AUS and role-count-*.

  • Disabled with a reasonIntermediate

    When a rule blocks a player, pick-<id> is disabled and its title / block-<id> text says why.

  • Budget ruleIntermediate

    Pick expensive players until “Not enough credits” appears.

  • Team capIntermediate

    After 7 IND players, every other IND pick is blocked.

  • Role limitsAdvanced

    Role max and “leave room for other roles' minimums” both block picks — test both.

  • Captain rulesIntermediate

    The same player can't be both C and VC; projected-points recalculates with multipliers.

  • Countdown lockAdvanced

    lock-countdown-* ticks every second; the semi-final shows locked-m2 and a disabled button.

  • Leaderboard sortBeginner

    sort-points toggles order and aria-sort; your team is highlighted with my-rank.

6Test data & credentials

URL
/apps/fantasy
Login
player11 / Play@123
Budget
100 credits · 11 players
Per team
max 7
Multipliers
C 2× · VC 1.5×

7Glossary

Credits
100 credits for 11 players
Team cap
At most 7 players from one real team
C / VC
Captain scores 2×, vice-captain 1.5×

8Watch-outs for automation

  • ⚠️Sign in first (or reuse a saved session) — every page is behind the login
  • ⚠️Blocked players are disabled with a reason in the title
  • ⚠️Role limits and 'leave room for other roles' both block picks
  • ⚠️Countdowns tick every second

9Suggested test strategy

1 · Smoke

3

P1 positive and end-to-end cases — run on every build.

2 · Regression

16

All cases, incl. 1 negative and 7 edge — run before release.

3 · End-to-end

3

Full user journeys — run nightly.

Start with these smoke cases

  • FANTASYXI-01 — Sign in
  • FANTASYXI-03 — Create a valid team
  • FANTASYXI-E2E-01 — Build XI, save and check rank