diff --git a/src/content/docs/advanced/api-access/index.md b/src/content/docs/advanced/api-access/index.md index e5768242..6e8fa977 100644 --- a/src/content/docs/advanced/api-access/index.md +++ b/src/content/docs/advanced/api-access/index.md @@ -119,7 +119,7 @@ Run responses also include when a run was launched and finished, and the test ru ### Testomat.io MCP Server v2.0 -The MCP Server speaks the Model Context Protocol, so AI assistants can work with [Public API v2](./public-api-v2.md) directly. It can do the following: +The MCP Server speaks the Model Context Protocol, so AI assistants can work with [Public API v2](https://docs.testomat.io/advanced/api-access/#public-api-v2) directly. It can do the following: - Full CRUD support for core entities. - Read-only tags access. diff --git a/src/content/docs/project/analytics/images/16-runs-analytics.png b/src/content/docs/project/analytics/images/16-runs-analytics.png new file mode 100644 index 00000000..0535a15f Binary files /dev/null and b/src/content/docs/project/analytics/images/16-runs-analytics.png differ diff --git a/src/content/docs/project/analytics/images/percent-of-dropdown.png b/src/content/docs/project/analytics/images/percent-of-dropdown.png new file mode 100644 index 00000000..5c07c174 Binary files /dev/null and b/src/content/docs/project/analytics/images/percent-of-dropdown.png differ diff --git a/src/content/docs/project/analytics/index.md b/src/content/docs/project/analytics/index.md index 6d771a46..f4b374ad 100644 --- a/src/content/docs/project/analytics/index.md +++ b/src/content/docs/project/analytics/index.md @@ -117,6 +117,7 @@ By toggling **As widget**, your custom chart will appear as a separate widget on | --- | --- | --- | | **Chart type** | Yes | How the data is drawn - bar, donut, pie | | **Labels** | Yes | What the labels show - short query, title, number, title and % | +| **Percent of** | No | What the percentages are calculated from - the sum of all query results, or all tests in the project. Shown only for the **Tests** data source | | **As widget** | No | Puts the chart on the Analytics dashboard, next to the other widgets | | **Timeline period** | No | Tracks how the data changes over a period you pick | | **Timeline extra line** | No | Adds a second line so you can compare two metrics | @@ -138,6 +139,26 @@ During chart creation or in the **Edit** mode, select the **Labels** dropdown to ![Labels view](./images/8-labels-dropdown.png) +### Choose What Percentages Are Based On + +By default, a chart adds up the results of all its queries and shows each percentage against that sum. If your queries overlap, the same test is counted more than once, so the percentages come out lower than expected. + +To count each query against all tests in the project instead: + +1. Open the chart in **Edit** mode. +2. In the **Percent of** dropdown, select **All tests in project**. +3. Click **Save**. + +![The Percent of dropdown in Edit Chart with Sum of results and All tests in project](./images/percent-of-dropdown.png) + +Each query is now counted on its own. For example, if 245 of your 405 tests match a query, the chart shows 61%. + +:::note + +**Percent of** is available only for the **Tests** data source. Percentages are rounded to whole numbers. + +::: + ### Color Customization Personalize the colors of your queries for better data visualization. Use the color palette to choose your preferred shade. Alternatively, enter RGB, HSL, or HEX values manually for precise color selection. @@ -256,8 +277,10 @@ We empowered Testomat.io Run Reports with Overview chart, Flaky and Slowests tes Overview chart visualizes aggregated tests statuses by suites: -![Analytics In Run Reports](./images/gif3_357.gif) +![Analytics In Run Reports](./images/16-runs-analytics.png) -Flaky and Slowests tests widgets show the latest 5 tests and navigate to dedicated Analytics pages: +## Next Steps -![Flaky and Slowests widgets](./images/att11_357.png) \ No newline at end of file +- [Query Language](https://docs.testomat.io/advanced/tql) +- [Analytics Dashboards (Widgets)](https://docs.testomat.io/advanced/global-analytics/analytics-dashboards) +- [Analytics Board](https://docs.testomat.io/advanced/global-analytics/analytics-board)