Risk Scores
Every test case carries a risk score from 0 to 100 that answers one question: how much does this test deserve a run right now? The score blends five signals TestPlanIt already tracks:
- Failure history — how often the case failed in its recent automated results, with the newest results counting most.
- Flakiness — how often those results flipped between pass and fail.
- Staleness — how long since the case was last executed, manually or automatically. A case that has never run ages from its creation date, and the signal maxes out at 90 days.
- Criticality — the priority of the requirements the case covers, read through the project's own priority mapping, and the case's value in the project's chosen criticality field, whichever is higher. A requirement whose content changed after the case last ran adds a further boost until the case is re-executed.
- Linked defects — open issues linked to the case, weighted by their priority.
Scores refresh in the background: a few seconds after results arrive for a run, and in a nightly sweep that picks up slower-moving signals such as requirement edits. Scoring is deterministic and never calls an AI model.
Where it appears
- The repository has a Risk Score column, off by default — add it from the column picker. Click the score to see why: each component's contribution under the project's weights, plus the facts behind them — recent failures and flips, last execution, linked requirements and defects with their top priorities, and whether the case is quarantined. Sorting by the column puts the riskiest cases first; cases without a score yet sort last.
- The repository filter bar gets a Risk Score filter when risk scoring is on: above, below, between, equal, or scored / not scored yet. Like any other filter it works in saved views and in webhook-created test run case filters.
- A scored case shows its Risk Score in the details panel of Test Case Details, beside Estimate and Forecast, with the same why breakdown. Cases that have not been scored yet leave it out.
- Prioritize by risk, one of the Ways to pick test cases in step 2 of Add Test Run, lists candidates highest risk first. Set a minimum score, narrow to manual or automated cases (both are included to start), sort the Risk score column if you want the lowest-risk cases instead, select what you want — or every match at once — and the cases merge with the current selection. Cases already in the run are left out.
- Impact Analysis shows a Risk Score column beside its own Impact Score in step 4, so a change's blast radius and a case's standing risk can be weighed together.
- Magic Select sees each candidate's score and uses it to break ties between cases that are equally relevant to the run it is building. It never selects a case for its risk alone.
Weights
How much each component counts is configurable per project in Risk Scoring settings. The defaults are failure history 30, criticality 25, flakiness 15, staleness 15 and linked defects 15. Weights are relative — the score normalizes by their total — and a weight of zero removes a component entirely.
Good to know
- No priority vocabulary is built in. Issue priorities are free text, so what
Sev-1orP2means is yours to define in Risk Scoring settings. Until a name is mapped it counts neutrally — linked requirements and defects still raise the score by their presence, just without priority nuance. - Tracker-synced requirements score the tracker's priority; detached or native ones score the local priority. The mapping is case-insensitive.
- Only changes are written: an unchanged case costs nothing nightly, and recomputes never appear in the audit log.