1Business context
FarmMart is an agriculture services portal for farmers: live mandi (market) prices with alerts, a fertiliser calculator based on soil tests, and equipment rental booking.
Three tools in tabs: a sortable mandi price table with price alerts, a fertiliser calculator that turns soil-test levels into urea/DAP/MOP bag counts, and equipment rental with dates and day steppers.
2Users & roles
- 👤 Farmer — checks prices, sets alerts, calculates fertiliser and rents equipment
3Modules & screens
| Screen | Route | What it does |
|---|---|---|
| Tools | /apps/agri | Tabs for mandi prices, fertiliser calculator and equipment rental |
| My rentals | /apps/agri/rentals | Booked equipment |
4Main end-to-end journey
Prices, fertiliser and rental
- Check wheat prices in Punjab and sort
- Set an alert below current price
- Calculate fertiliser for wheat, 5 acres, N low, P medium, K high
- Rent a tractor for 3 days
Expected: Alert says already above; urea 12, DAP 6, MOP 2 bags; rental ₹3,600 with an RNT- id
5Business rules & validations
- Tab switchingBeginner
agri-tab-* are role=tab with aria-selected; only the active panel is rendered.
- Sort a columnBeginner
sort-modal-price toggles descending/ascending; aria-sort on the header changes too.
- Dependent dataIntermediate
Changing price-state or price-crop reloads price-row rows and alert-market options.
- Alert logicIntermediate
Setting an alert below the current price says “already above”; above it says “we'll notify you”.
- Calculator mathsAdvanced
Wheat, 5 acres, soil N low / P medium / K high → urea 12, DAP 6, MOP 2 bags.
- Calculator validationBeginner
Missing crop/soil or area outside 0–100 shows fert-error.
- Rental totalsIntermediate
rental-total = per-day rate × rental-days; book-rental stays disabled until equipment and date are chosen.
6Test data & credentials
- URL
- /apps/agri
- Login
- not required
- Bags
- 50 kg each
- Prices
- ₹ per quintal (fictional)
7Glossary
- Mandi
- Agricultural wholesale market
- Quintal
- 100 kg — prices are quoted per quintal (fictional)
- N / P / K
- Nitrogen, phosphorus and potassium soil levels
8Watch-outs for automation
- ⚠️Only the active tab's panel is rendered
- ⚠️Changing state or crop reloads price rows
- ⚠️Fertiliser bags are 50 kg each
9Suggested test strategy
1 · Smoke
2
P1 positive and end-to-end cases — run on every build.
2 · Regression
14
All cases, incl. 2 negative and 3 edge — run before release.
3 · End-to-end
3
Full user journeys — run nightly.
Start with these smoke cases
- FARMMART-01 — Fertiliser calculator
- FARMMART-E2E-01 — Prices, fertiliser and rental