KPI and Metric Definitions
This page explains what each KPI and metric in TestMu AI Insights counts: on the Insights pages, in the reports, in the Insights emails and in the alerts. Use it when two numbers look different, or when you want to know whether a number counts tests or runs.
Terms used on this page
| Term | Meaning |
|---|---|
| Test | A test name. All runs with the same test name count as one test. |
| Run | One execution of a test. A test that ran 5 times counts as 5 runs. |
| Retry | A run that was retried. Each attempt is stored as its own run; the last attempt is the final attempt. |
| Final attempt | The last attempt of a test execution, after its retries. Pages that count each test execution once, after retries, count only final attempts. See Unique Instances and Retry Detection. |
| Failed | A run whose result is exactly failed. Results such as error, lambda error or timeouts are counted under Others, not Failed. |
Insights weekly email
The weekly report email is sent every Monday. All numbers cover the previous Monday to Sunday (UTC), and, except the SmartUI card, count runs on Web Automation, App Automation, HyperExecute, Real Time and Real Device. Runs on other products are not counted.
The arrow or percentage next to a number is the change from the 7 days before: (this week − last week) ÷ last week. When last week's value was 0, the change shows as 100% if this week's value is above 0, and 0% otherwise. A rise is shown in red; no change or a drop is shown in green.
| KPI | What is counted | Counts |
|---|---|---|
| Total Test Run Time | Total time spent running tests: the sum of every run's time from start to end, including retried attempts | Hours |
| Test Execution | Runs in the week, including retried attempts, split into Passed, Failed, Completed and Others (any other result, such as error, timeout, stopped or cancelled). The percentage under each part is its share of all runs. | Runs |
| New Failures | Tests that ran in both this week and last week, and failed at least once this week but not last week | Tests |
| Consistent Failures | Tests that failed at least once in both this week and last week | Tests |
| Unstable | Tests with more than one result in the week (for example, passed and failed), or whose only result was a lambda error, queue timeout or idle timeout | Tests |
| Flaky | Runs marked flaky by flaky test detection | Runs, not distinct tests |
| Retried | Retried runs, that is, every attempt that was not the final attempt | Runs, not distinct tests |
| Test Runs By Products | The Test Execution runs split by product, each with its own Passed, Failed, Completed and Others split. A product with no runs is not shown. | Runs |
| Web / App Platform Coverage | Runs per operating system, split into web tests (Selenium, Playwright, Cypress, Puppeteer, Taiko, CDP and HyperExecute web tests, plus Real Time and Real Device browser sessions) and app tests (Appium, Espresso, XCUITest, Flutter and raw app tests, plus Real Time and Real Device app sessions). Runs of any other test type are in neither list, so Web and App together can be lower than Test Execution. The email labels these counts Tests, but each one is a run. | Runs |
| SmartUI States: Total Builds | SmartUI builds created in the week, split into Approved, Rejected, Pending Approval and Others | Builds |
| SmartUI States: Total Screenshots | SmartUI screenshots captured in the week, split into Re/Compared (compared with a baseline) and Generated (all others) | Screenshots |
Unstable and Flaky use automation data only (Web Automation, App Automation and HyperExecute). Test Execution, New Failures, Consistent Failures and Retried also include Real Time and Real Device. The SmartUI card shows no change from last week and is hidden when the week had no SmartUI builds or screenshots.
Earlier weekly email layout
Some organizations still receive the earlier layout of the weekly email, headed Analytics Weekly Report. It covers the same week and products, and its Flaky Tests, Unstable Tests, Consistent Failures and New Failures, when shown, are counted exactly as above. In this layout, any change above −1% is shown in red and a drop of 1% or more in green. It also shows:
| KPI | What is counted | Counts |
|---|---|---|
| Total Number of Tests | Runs in the week across all products, including retried attempts | Runs |
| Total Tests (product table) | Runs in the week on each product, with the change from last week | Runs |
| Time Consumed (hrs) (product table) | Total run time on each product, from start to end of every run, with the change from last week | Hours |
Automation Daily Test Summary email
All numbers cover the previous calendar day, 00:00 to 23:59 UTC. The email has one section each for Web Automation, App Automation and HyperExecute, and a section appears only if that product had runs that day. It counts automation runs only: Selenium, Playwright, Cypress, Puppeteer, Taiko, CDP, Appium, Espresso, XCUITest, Flutter, raw app tests and HyperExecute runs of these frameworks. Real Time and Real Device manual sessions are not included.
| KPI | What is counted | Counts |
|---|---|---|
| Total Tests | Automation runs in the day, including retried attempts | Runs |
| Total Builds | Distinct builds those runs belong to | Builds |
| Total Time | Total time spent running tests: the sum of the duration of every run in the day, shown in hours, minutes and seconds | Time |
| Status counts | Runs in the day for each result, such as Passed, Failed, Completed, Error, Lambda Error, Idle Timeout, Queue Timeout, Stopped and Cancelled. Only results that occurred that day are listed, up to the 10 most frequent. | Runs |
Test Insights
Test Insights shows the health of each test across runs.
Test Stability Snapshot
Except Total Instances, the tiles count all attempts, including retries, in the date range.
| Metric | What is counted | Counts |
|---|---|---|
| Total Unique Tests | Tests that ran at least once | Tests |
| Total Instances | Final attempts, so each test execution is counted once after retries | Runs |
| Total Retries | Attempts that were retried, that is, every attempt that was not the final one | Runs |
| Consistently Passing | Tests whose every run passed | Tests |
| Consistently Failing | Tests whose every run failed | Tests |
| Unstable Tests | Tests with more than one result, or whose only result was a lambda error, queue timeout or idle timeout. A test that failed and then passed on retry is unstable. | Tests |
| Consistently Completing, Consistently Error, Consistently Cancelled, Consistently Skipped, Consistently Stopped, Consistently Unknown, Consistently Ignored, Consistently Queued | Tests whose every run ended in that one result. A tile appears only for results that occurred in the date range. | Tests |
Consistent Failures in the weekly email and Consistently Failing here are different. Consistent Failures means a test failed at least once in each of two weeks. Consistently Failing means every run of the test failed.
Tests table
The table counts final attempts only.
| Metric | What is counted | Counts |
|---|---|---|
| Test Summary: Total | Final attempts of the test | Runs |
| Test Summary: Passed / Failed | Final attempts of the test that passed / failed | Runs |
| Test Summary: Others | Final attempts with any other result, such as error or timeout: Total minus Passed minus Failed | Runs |
| Duration (under the test name) | Duration of the test's most recent run | Time |
| Result History / Duration History | Result / duration of each of the test's recent runs | Per run |
Test details
Show Unique Instances is on by default. While it is on, the test details page counts final attempts only; turn it off to count every attempt.
| Metric | What is counted | Counts |
|---|---|---|
| Pass Rate | Runs of this test that passed, as a percentage of all its runs in the date range, with a Passed / Failed / Others split | % |
| Total Runs | Runs of this test in the date range | Runs |
| Avg Duration | Average duration of those runs | Time |
| Flakiness | The test's average flake score over those runs, shown as High (0.5 or above), Medium (0.25 to 0.5) or Low (below 0.25, or no score) | Band |
| Retry Rate | Retried attempts as a percentage of final attempts. Retries are counted only with Show Unique Instances off; with it on (the default), the tile shows 0%. | % |
| Browsers / OS | Runs split by browser / operating system | Runs |
| Duration Trend | Average duration of the test's last 8 passed runs. The percentage compares the newer half of those runs with the older half; up means slower. | Time |
| Failure Categories | Runs per failure category | Runs |
Build Insights
Build Insights shows the health of each build. A build name groups every build run with that name.
Build list
The build list counts final attempts only.
| Metric | What is counted | Counts |
|---|---|---|
| Duration | Run time of the latest build: the time from its first test's start to its last test's end, or the sum of its test durations if that is shorter. Parallel tests are not double counted. | Time |
| Result History / Duration History | Result / run time of each of the build's recent runs | Per build |
| Last Build Summary | Tests in the latest build split into Passed, Failed and Others, counting each test's final attempt once | Tests |
Build details
With Latest Build checked (the default), the tiles count the build you opened.
| Metric | What is counted | Counts |
|---|---|---|
| Pass Rate | Passed final attempts as a percentage of all attempts in the build, retries included, with a Passed / Failed / Others split of final attempts. A build with retries shows a lower pass rate than its Passed count alone suggests. | % |
| Duration | Run time of the most recent build with this name, counted as in the build list, even when an older build is open. Shown only with Latest Build checked. | Time |
| Unique Tests | Distinct tests in the build | Tests |
| Test Instances | Test sessions in the build, counting only each session's final attempt | Runs |
| Retries | Attempts that were retried | Runs |
| Anomalies | Final attempts flagged as a performance anomaly | Runs |
| Flaky / New Failures / Always Failing | Final attempts carrying the Flaky, New Failure or Always Failing smart tag | Runs |
| Auto Healed | Tests in the build that were auto-healed | Runs |
| Visual Differences / Accessibility Issues | Visual differences found by SmartUI / accessibility issues found in the build, with a trend across recent builds | Issues |
| vs prior build | Shown on Flaky, New Failures, Always Failing, Auto Healed, Visual Differences and Accessibility Issues: the change from the most recent other build with the same name, in %. Flaky, New Failures and Always Failing hide it when the earlier build's value is 0; Visual Differences, Accessibility Issues and (with Latest Build checked) Auto Healed show 100% when the earlier value is 0 and the current value is above 0. | % |
| Failure Categories | Failed runs split by failure category, for the 10 most recent days or builds. Failed runs without a category show as No failure categories. | Runs |
| Stability | Pass rate per day or per build (you choose), for the 10 most recent: passed final attempts as a share of all final attempts | % |
| Build History | Runs per result for each recent build or day | Runs |
| Monthly Status Trend | Runs per result for each month | Runs |
| Browsers / OS | Runs split by browser version / OS version | Runs |
Failure Categories and Stability cover the 10 most recent days or builds with this name in the date range, whether or not Latest Build is checked.
In Test Cases view, the tiles count test case executions, not distinct test cases. A test case that ran 3 times counts 3. Browsers and OS in this view cover every build with this name in the date range.
Build comparison
Build comparison compares a Compare build with a Base build, using final attempts. Two runs are the same test when they share the test name, OS version, browser version, resolution and device.
| Metric | What is counted | Counts |
|---|---|---|
| Pass Rate | Pass rate of the Compare build. The arrow shows the difference from the Base build, in percentage points. | % |
| New Failures | Tests failing in Compare that were not failing in Base, plus failing tests that exist only in Compare | Tests |
| Fixed Instances | Tests failing in Base that passed in Compare | Tests |
| Consistent Failures | Tests failing in both builds | Tests |
| Stable Instances | Tests that passed in both builds | Tests |
| No Change | Tests in both builds with the same result, other than failing in both. Includes the Stable Instances. | Tests |
| Additional Tests | Tests only in the Compare build | Tests |
| Dropped Tests | Tests only in the Base build | Tests |
Here, failing means failed, error, lambda error, queue timeout or idle timeout.
App Profiling
App Profiling measures app performance on real devices. Each run stores its own average, minimum, maximum and P90 for every metric.
Performance Overview
Each tile is the average across all runs in scope, with every run weighted equally. With a Page Label filter applied, the tiles average per-second samples instead, so longer runs count more. Switch from Average to P90 to average each run's 90th-percentile value instead; Avg Cold Startup and the crash and ANR tiles stay on the average in P90 mode.
| Metric | What is counted | Counts |
|---|---|---|
| Avg CPU | CPU used by the app | % |
| Avg Memory | Memory used by the app | MB |
| Avg FPS | Frames rendered per second | fps |
| Avg Cold Startup | Time to launch the app when it is not already running | ms |
| Avg Crashes per Crashed Session | Average number of crashes in the runs that crashed at least once. Hidden when no run crashed. This is not a crash rate. | Crashes |
| Avg ANRs per ANR Session | Average number of ANRs (App Not Responding) in the runs that had at least one. Hidden when no run had one. | ANRs |
Trends
Each point is one run.
| Metric | What is counted | Counts |
|---|---|---|
| CPU App / CPU System | Average CPU used by the app / by the whole device | % |
| App Memory / System Memory | Average memory used by the app / in use on the whole device | MB |
| Current FPS | Average frames per second | fps |
| Frozen Frames / Janky Frames | Average frozen / janky (slow) frames | Frames |
| Battery | Battery used by the run. Runs that report no battery data are left out. The Performance Trends overlay plots the run's average battery reading instead, so the two charts can differ for one run. | mAh |
| Battery Power | Average power draw | W |
| Temperature | Average battery temperature. Runs with no reading are left out. | °C |
| Network Upload / Network Download | Average of the run's per-second upload / download samples, not the total transferred | MB |
| Disk Read / Disk Write | Average disk read / write rate | MB/s |
| Thermal State | Worst thermal state the run reached, 0 (Nominal) to 3 (Critical). iOS only. | State |
| Cold Startup / Hot Startup | Time to launch the app when it is not running / when it is already in memory | ms |
| Page Label Load Time | Seconds spent on each page label. Not shown in P90 mode. | Seconds |
| Device Performance Matrix | Per device model, the average of each run's values (for example CPU App, Memory System and FPS), and Sessions, the number of runs on that device | Per device |
The Min, Max and Avg under each chart are the lowest, highest and average of the plotted points.
Comparison
Comparison shows the selected runs side by side.
| Metric | What is counted | Counts |
|---|---|---|
| Avg. / Min. / Max. / P90 | For each run: the average, lowest, highest and 90th-percentile value | Per metric |
| Baseline Diff. | Each run's value minus the baseline run's value. The arrow colour shows whether the change is better or worse; for FPS, higher is better. | Per metric |
Reports
Usage Report
Usage Report counts usage per product. Tests here counts every run, including retried attempts.
| Metric | What is counted | Counts |
|---|---|---|
| Total Users | Distinct users who ran at least one test on the product. For Smart UI, users who created a build. | Users |
| Total Tests | Runs on the product. For Smart UI, compared screenshots; for KaneAI, test cases. The Total row does not include KaneAI. | Runs |
| Total Duration | Total execution time of the product's runs | Hours |
| Frequency | Average tests per user: Total Tests divided by Total Users, rounded up | Runs per user |
| KaneAI (New Authoring) | Test Manager test cases generated with KaneAI and created in the date range | Test cases |
| KaneAI (Edit Existing) | Test Manager test cases generated with KaneAI before the date range and updated in it, by any edit | Test cases |
| Δ vs / % vs (Group by month) | The change in tests from the previous month, as a number / as a percentage | Runs / % |
Project Report
Project Report counts runs across your projects.
| Metric | What is counted | Counts |
|---|---|---|
| Total Tests | Web Automation, App Automation and HyperExecute runs plus Smart UI screenshots in the date range. Real Time and Real Device manual sessions are not included. | Runs |
| Test Velocity | Total Tests divided by the number of points on the test-volume chart, rounded down. Each point is a day, or an hour when the date range is one day or shorter. | Runs per day (or per hour) |
| Passed (%) / Failed (%) | Runs that passed / failed, as a share of all runs. For Smart UI: Approved (%) / Rejected (%). | % |
| Anomalies | Runs flagged as a performance anomaly | Runs |
| Browser Compatibility / Device Performance | Pass rate for each of the 5 browsers / devices with the most runs | % |
| Success Rate | Runs in the project that passed, as a share of all its runs | % |
| Unstable Tests | Tests in the project with more than one result, or whose only result was a queue timeout or lambda error. The number beside it is the change from the previous period of the same length, as a count. | Tests |
| Testing Distribution | The 5 browsers and devices with the most runs, in one list, with each one's run count | Runs |
| Quality Trend | Per product, pass rate (for Smart UI, approval rate) and test volume (for Smart UI, screenshot volume) over time | % and runs |
Private Real Devices and Private Desktop
Private Real Devices Insights and Private Desktop Insights show usage of your private devices and machines in tables grouped by device, user, group or sub-organization. The Private Real Devices device table shows up to 1,000 rows; every other table shows up to 100.
| Metric | What is counted | Counts |
|---|---|---|
| Total Tests | Runs on the device or machine (or by the user, group or sub-organization), including retried attempts | Runs |
| Test Duration / Total Duration | Total run time of those runs | Hours |
| Total Users | Distinct users who ran tests on the device or machine | Users |
Sub Organizations
Sub Organization widgets show usage across your sub-organizations.
| Widget | What is counted | Counts |
|---|---|---|
| Sub Organizations Concurrency Utilization | For each sub-organization, the highest number of tests running at the same time and the highest number waiting in the queue at the same time. The two peaks can be at different times. | Tests |
| Accessibility Scans by Sub-Org | Distinct accessibility scans run by each sub-organization | Scans |
KPI threshold alerts
KPI threshold alerts check five KPIs every 6, 12 or 24 hours. Each check counts over a rolling window of the last 1 to 15 days, ending at the start of the check slot (00:00, 06:00, 12:00 or 18:00 UTC for 6-hour checks; 00:00 or 12:00 UTC for 12-hour checks; 00:00 UTC for daily checks), not when the alert is sent, and the failure KPIs compare it with the window of the same length just before it. An alert is sent when a count is above its threshold; a count equal to the threshold does not alert. While a KPI stays above its threshold, the alert repeats at every check.
The KPIs are counted the same way as in the weekly email, over the alert window instead of a week:
| KPI | What is counted | Counts |
|---|---|---|
| New Failures | Tests that ran in both the current window and the window before it, and failed at least once in the current window but not in the one before | Tests |
| Consistent Failures | Tests that failed at least once in both the current window and the window before it | Tests |
| Unstable | Tests with more than one result in the window, or whose only result was a lambda error, queue timeout or idle timeout | Tests |
| Flaky (runs) | Runs flagged as flaky in the window | Runs, not distinct tests |
| Retried (runs) | Retried runs in the window, that is, every attempt that was not the final attempt | Runs, not distinct tests |
Every attempt counts, including retries: a test that failed and then passed on retry counts as failed in New Failures and Consistent Failures, and as unstable in Unstable. Unstable and Flaky use automation data only (Web Automation, App Automation and HyperExecute); the other three also include Real Time and Real Device.
Anomaly notifications
Anomaly notifications send one email, Slack or webhook digest per build once the build's smart tags are settled. They cover Web Automation, App Automation and HyperExecute builds.
| Count | What is counted | Counts |
|---|---|---|
| Flaky, New Failure, Always Failing, Performance Anomaly | Tagged runs (test-level detection, the default) or tagged test cases (test-case-level detection) in the build. With both levels on, the two are added. Only the categories you chose are counted. | Runs or test cases |
A digest is sent only when the total across the chosen categories is at least your minimum count (1 by default). The email and the webhook list up to 5 examples per category, with the category's total; Slack shows 3 and the number of others.
App Profiling threshold alerts
App Profiling threshold breach alerts are checked once for each completed App Profiling run. A metric breaches when the run's value reaches the red band of your organization's SLA thresholds.
| Metric | Value checked for the run | Breaches when |
|---|---|---|
| CPU (app) | Highest CPU used by the app, in % | At or above the red threshold |
| Memory (app) | Highest memory used by the app, in MB | At or above the red threshold |
| FPS | Lowest frames per second | At or below the red threshold |
| Cold Startup / Hot Startup | Startup time, in ms | At or above the red threshold |
| Temperature | Highest battery temperature, in °C | At or above the red threshold |
| Battery Power | Average power draw, in W | At or above the red threshold |
| Thermal State | Worst thermal state the run reached (iOS, 0 Nominal to 3 Critical) | At or above the red threshold |
| Network | Highest download plus highest upload, in MB (one threshold for the two together) | At or above the red threshold |
| Disk Read / Disk Write | Highest disk read / write rate, in MB/s | At or above the red threshold |
| Page Load (per label) | Total seconds spent on the label, summed across all runs of the test from 00:00 UTC 7 days before the run's date to the end of that date | At or above the red threshold |
Battery Power, Temperature and Thermal State are skipped when the run did not report them. Other metrics read 0 when not reported, which can raise an FPS alert.
Related
- Unique Instances and Retry Detection — how final attempts and retries are counted.
- Smart Tags — the Flaky, New Failure, Always Failing and Performance Anomaly tags.
- KPI Threshold Alerts — set up alerts on test-health KPIs.
- Anomaly notifications — get a digest when a build finishes with anomalies.