app icon indicating copy to clipboard operation
app copied to clipboard

Failures count in RunGroup sub-group statistics does not match realistic strategy aggregation

Open YanaBaranova0909 opened this issue 3 months ago • 2 comments

Describe the bug When a RunGroup is created with the realistic merge strategy,

  • the number of failed tests displayed in the sub-group statistics does not match the actual number of failures recorded in the test runs;
  • all test cases are unique across different runs (unique titles and Testomat IDs); Despite this, the aggregated statistics display only 12 failed tests, while the actual runs contain more failures (e.g., 13 failed in one run alone, plus additional failures in others).

Precondition:

  1. RunGroup is created with the realistic merge strategy
  2. Unique test cases are created

To Reproduce

  1. Launch multiple runs inside the RunGroup, each with unique test cases
  2. Execute tests and mark statuses according to the results
  3. Finish all launched runs
  4. Open the RunGroup view in the sidebar
  5. Compare the number of failed tests in the per-run column vs. the sub-group aggregated statistics

Expected behavior

  • For RunGroups with realistic strategy, the system should always prefer results from the last executed run (excluding skipped tests)
  • Since all test cases are unique across runs, the aggregated failed count should equal the total number of failures from the latest run results

Screenshots

Image

Desktop (please complete the following information):

  • Application: production

YanaBaranova0909 avatar Sep 22 '25 07:09 YanaBaranova0909

Image

In general, there's definitely at least one FLACK, and there's no talk of any unique tests here. However, it seems our main problem is that when test_id=NULL, the counters don't work. This seems very bad, especially for automated tests, which fail without creating an automated test, meaning with test_id=NULL.

I suggest grouping by test_title in the case of test_id=NULL. This is entirely possible.

trumenov avatar Sep 22 '25 10:09 trumenov

There can be new tests that were not imported before reporting, so test IDs are missing, and tests are not included in RunGroup counters.

TetianaKhomenko avatar Sep 22 '25 12:09 TetianaKhomenko