---
title: "How the numbers work"
section: "Discover"
description: "How every number in SmartestQA Discover is calculated: locator quality chip, Cases badge, Setup Roadmap percentage and App Map test coverage, each with a worked example."
url: https://docs.smartestqa.ai/en/discover-numbers.html
audience: [customer, admin]
updated: 2026-11-07
keywords: "locator quality strong medium fragile xpath confidence cases badge roadmap percentage describe the app coverage tested test points"
---
# Discover: How the numbers work

Every number and colour in Discover, how it is calculated, and an example you can check against your own project.

## In short

**On this page you can**

- Read the locator chip: main locator, fallbacks and the Strong, Medium, Fragile tiers.
- Understand what the Cases badge counts and what it leaves out.
- Calculate the Describe the app roadmap percentage from pages and purposes.
- Work out a page’s Tested coverage from tasks, validations and transitions.
- Decode the status icon, page pill counts and the “ n unreachable” chip.

**How to use it**

1. Find the section for the number or colour you see on screen.
2. Read its formula, then follow the worked example.
3. Recalculate it with the values from your own project.
4. Act on the result: add an id locator, write purposes, or add tests.

## Locator chip

*Shown in: Action List › Locator column*

```text
main locator  = the locator with the highest confidence score (else the first one)
"+n"          = number of locators − 1  (the fallbacks)
colour        = by the main locator's TYPE (key), not by its value
red           = any locator FAILED in its last run
dot           = green / red when a last-run status exists
```

| Tier | Locator types | Meaning |
| --- | --- | --- |
| Strong | accessibility_id, resource-id, id, name | Identity based; least affected by UI changes. |
| Medium | css, linktext, any other type | Moderately robust. |
| Fragile | xpath, class, tag | Breaks when the page structure changes. |

**Read it right:** the web recorder stores its locators as XPath, and the mobile `resource-id` locator is also stored as an XPath. So recorded actions usually show **XPath** in amber even though the recorder already rejected dynamic and non-unique locators. Judge a recorded action by its last-run status and the confidence in its detail rows; [add an `id` or `name` locator by hand](https://docs.smartestqa.ai/en/discover-actions.html#manual-action) where one exists.

In the action’s detail rows, a locator with a last run shows its confidence: ≥ 80% green, ≥ 50% amber, below 50% red.

## Cases badge

*Shown in: Action List › Cases column*

```text
Cases = number of distinct test cases with a step that uses this action directly
"-"   = 0      blue = more than 5
```

**Example:** `Click Sign In` is a step in 12 test cases and in one [template](https://docs.smartestqa.ai/en/automate-steps-flow.html#template) that 30 other tests call. The badge shows 12: tests that reach the action only through a template are not counted. Click the badge for the **Used Test Cases** list. Sorting by Cases sorts across all result pages.

## Setup Roadmap · Describe the app

*Shown in: Setup Roadmap tab*

```text
pages      = number of App Map pages
described  = pages whose Purpose is not empty
status     = TODO if pages = 0 · DONE if described ≥ 60% of pages · else PARTIAL
percent    = 40% + 60% × min(1, described ÷ (0.6 × pages))      shown as at most 99% until DONE
next step unlocks at 90%
```

| Pages | Described | Calculation | Shown |
| --- | --- | --- | --- |
| 10 | 0 | 40 + 60 × 0 | 40% |
| 10 | 3 | 40 + 60 × 3/6 | 70% |
| 10 | 5 | 40 + 60 × 5/6 | 90% · next step unlocked |
| 10 | 6 | 6 ≥ 60% of 10 | Done |
| 25 | 12 | 40 + 60 × 12/15 | 88% |

The [roadmap](https://docs.smartestqa.ai/en/quick-start-progress.html#setup-roadmap) tells you what to do: with no pages, “No pages yet. Click [Discover Your App](https://docs.smartestqa.ai/en/discover-your-app.html)…”; with pages but missing purposes, “*n* pages have no purpose written. In App Map, select the page and [write a sentence or two in Purpose](https://docs.smartestqa.ai/en/discover-app-map.html#page-information)”.

## App Map · Tested

*Shown in: App Map list and map view*

```text
test points = tasks on the page
            + validation actions (Visibility Check, or Get named like "error", "invalid", "required"…)
            + transitions leaving the page
covered     = a point whose proof action is used by any test step (templates included)
coverage    = covered ÷ test points
map colour  = ≥ 80% green · 40–79% amber · < 40% red      "—" when the page has no tasks
```

**Example:** `checkout` has 3 tasks, 2 validation actions and 2 transitions: 7 points. Tests use the proof actions of 5 of them: 5 ÷ 7 = 71%, amber. Adding a test for “apply voucher” and one for the “invalid card” message brings it to 100%.

[Test cases](https://docs.smartestqa.ai/en/automate-test-cases.html) that use a task or validation action of the page count as that page’s tests; tests that only pass through it count as “pass through”. **Red runs** are [failed, error or disconnected results](https://docs.smartestqa.ai/en/report-numbers.html#result-chip); **never run** means no run status and no trace in logs or schedules.

## Other indicators

| Indicator | How it is decided |
| --- | --- |
| Status icon before the ID | The action’s last run: [Success, Failed, Running, Skipped, Passed with warnings, Disconnected](https://docs.smartestqa.ai/en/automate-steps.html#statuses). Set only by test runs, never by edits. |
| Page pill count | Number of actions on that page (the active pill shows the current result total). |
| [Module](https://docs.smartestqa.ai/en/discover-app-map.html#modules) option `Name (n)` | Number of pages in the module. |
| “*n* unreachable” | [Visible pages that no action leads to](https://docs.smartestqa.ai/en/discover-actions.html#unreachable), shown only when there are 2 or more. |
