Flaky tests, locator repairs, test selection and release quality

Flaky tests, locator repairs, test selection and release quality

Find unstable tests, review suggested locator fixes, pick the tests a change needs, and decide whether a release is ready on evidence.

Engineering Intelligence Open in TR-AI6 min
  1. 1
    Check flaky tests
    Test Studio → Intelligence → Flaky tests. Each test with runs is stable, suspected or flaky, with the reasons (switching between pass and fail on one version, passing only on retry, failing in one browser) and the kind of instability. Open the last failure to see it.
  2. 2
    Decide what to do
    Decide → Confirmed flaky (anyone who writes tests), or Quarantined, Not flaky or Fixed (QA leads and managers). Quarantining and clearing need a reason. Quarantined tests still run; release reports treat them as weak evidence.
  3. 3
    Review locator repairs
    When a step couldn’t find its element and another locator recorded with it matched exactly one visible element, a repair is suggested. Accept and send for review writes a new version; someone else approves it before runs use it. Dismiss it if the page really changed.
  4. 4
    Map components
    Test selection → Add component: a name, path patterns (src/checkout/**) and the test tags that cover it. Tests also link through the components listed in their definition.
  5. 5
    Select tests for a change
    Paste the changed files and Select tests. Each test says why it’s in or out. A QA lead can create a plan from the selection and run it in Test Studio Desktop.
  6. 6
    Set release criteria
    Release quality → choose the plans that make up the evidence and the thresholds. Check now shows where things stand.
  7. 7
    Generate and approve a report
    Name the release and Generate report: it keeps a snapshot of the evidence. A QA lead or manager who didn’t generate it approves it (only when every criterion is met) or rejects it with a reason.
Note:A report is never “Ready” because most tests passed: tests that weren’t run count against the pass rate, and a criterion with no evidence is shown as such.
Tips & tricks
  • TestRail (optional): Test Studio → TestRail. A manager connects it; then import cases and send a plan’s results. It’s tested against a simulated TestRail, not yet a live account.
  • Put the files a change touches into the selection straight from your pull request: git diff --name-only main...HEAD.