Getting started with Prioritize tests with AI

QA teams often face the same challenge before every release: there are more tests available than time to execute them all. As applications grow, releases accelerate, and regression suites expand, it becomes increasingly difficult to identify which tests are most critical for the current release.

Prioritize with AI helps solve this problem by intelligently ranking tests in a test run based on likely risk, relevance, and importance. Instead of treating every test equally, the AI helps your team focus first on the tests most likely to uncover critical defects.

Using historical execution data, linked defects, labels, and your own release-specific instructions, the feature automatically assigns each test an:

  • AI Priority - Very High, High, Medium, or Low
  • AI Reason - A clear explanation describing why the test received its ranking

This allows QA teams to:

  • Focus testing effort where it matters most
  • Reduce release risk during time-constrained cycles
  • Accelerate regression testing
  • Improve confidence in release readiness
  • Prioritize newly changed or high-risk areas faster
  • Make smarter testing decisions using historical trends and AI insights

Prioritize with AI is especially valuable for:

  • Large regression suites
  • Fast-moving Agile teams
  • Short release windows
  • Risk-based testing strategies
  • Teams with limited testing capacity
  • High-frequency release environments
Note: Prioritize with AI is available for TestRail Cloud only and is enabled by default. If you cannot see the feature, contact your TestRail administrator.

Before you begin

Prioritize with AI is enabled by default for TestRail Cloud instances. To use the feature, the following conditions must be met:

  • Prioritize with AI remains enabled at the instance level (AI Hub → AI Settings)

  • Prioritize with AI remains enabled for your project (Project Settings)

  • Your user role or project access role includes permission to use Prioritize with AI

  • The test run is currently open (not archived or closed)

Insufficient permissions? If the Prioritize with AI button is visible but disabled, hover over it to view the reason.

Step 1: Open a Test Run

Navigate to the open test run you want to prioritize. In the test run toolbar, click Prioritize (BETA). Choose one of the available options:

  • All tests - Prioritizes every test in the run. This option becomes unavailable if the number of tests exceeds the maximum allowed.
  • Selected tests - Prioritizes only the tests you manually selected. This option becomes unavailable if your selection falls outside the allowed minimum or maximum range.
Tip: You can also access Prioritize with AI directly from the QPane preview when viewing a test on the right-hand side of the run.
Screenshot 2026-05-07 at 12.34.06.png

Step 2: Configure Prioritization

The prioritization modal allows you to control the information the AI uses when analysing your tests, helping the AI make more accurate and context-aware prioritization decisions for your release.

Use Historical Data

When Historical Data is enabled, the AI analyses historical testing activity related to the test cases included in the current test run.

This may include:

  • Previous test results
  • Historical failures
  • Linked defects
  • Execution patterns
  • Frequently failing or unstable areas

You can choose how much historical execution data the AI should consider by selecting a look-back period of: 7, 30 and 60 days.

The AI uses this information to better identify:

  • High-risk functionality
  • Tests associated with recurring failures
  • Areas with recent instability
  • Tests linked to known defects
  • Functionality that may require additional attention before release
Including historical data helps the AI make smarter prioritization decisions by combining your current release context with real testing trends from previous executions.

You can turn off Use Historical Data if you want the AI to prioritize tests based only on your current release context, instructions, and selected test case fields. When historical data is not included, it becomes especially important to provide:

  • Clear and detailed Additional Instructions
  • Relevant test case fields that give the AI enough semantic context to understand the purpose, risk, and coverage of each test

For best results, include information such as:

  • High-risk areas of the application
  • Recently changed functionality
  • Known defects or unstable features
  • Critical business workflows
  • Areas requiring deeper regression coverage
Selecting meaningful fields such as Title, Steps, and Expected Result also helps the AI better understand each test and make more accurate prioritization decisions.

Labels (Optional)

Use labels to tell the AI which areas, features, or types of tests are most important for the current release.

Examples include:

  • Smoke

  • Checkout

  • Payments

  • Security

  • Critical Path

You can select up to 6 test case and test labels using the type-ahead search.

Tests associated with the selected labels are more likely to receive a higher AI Priority, helping the AI focus on the areas you consider most important or highest risk.

Additional Instructions (Required)

Provide instructions describing what the AI should focus on for the current release. Examples:

  • Areas with recent code changes

  • High-risk workflows

  • Known instability

  • Recently reported defects

  • Business-critical functionality

Example prompts:

  • “Focus on checkout, payment processing, and recently modified authentication workflows.”

  • “Prioritize tests related to mobile responsiveness and known login issues.”

  • “This release contains major API changes. Focus on integration and regression risk.”

Important:
  • Additional Instructions are required before prioritization can run.
  • Well-written prompts help the AI better understand your release context, risk areas, and testing priorities, resulting in more accurate prioritization.
  • You can write prompts in any language supported by TestRail.
  • URLs are accepted in prompts, but their contents are not scraped or analysed by the AI.

Test Fields

After you begin entering instructions, a Test Fields selector appears. Choose up to 6 fields for the AI to analyse when evaluating each test.

The content from these fields is used by the AI to semantically match your tests against the context, priorities, and risk areas described in your Additional Instructions prompt. Selecting relevant fields helps the AI better understand what each test covers and how closely it relates to your release priorities.

Common examples include: Title, Steps, Expected Result, Descriptions, etc. Only fields available on the selected tests appear in the selector. The following case field types are supported:

  • Text
  • Steps
  • Scenario
  • String
For best results, select fields that contain meaningful functional or behavioural context about the test cases.
Screenshot 2026-05-07 at 13.02.34.png

Step 3: Run Prioritization

Prioritize with AI
Get better AI prioritization results
Improve AI recommendations by keeping your test history, priorities, bugs, and test metadata up to date. Learn best practices to help the AI identify risk and prioritize the most valuable tests.
Learn how to get the best results →

Once all required fields are complete, you can start prioritization and TestRail will begin analysing your tests using AI to generate prioritization results.

Only one prioritization process can run per test run at any given time. If another user has already started prioritization for the same run, you will see a notification and must wait until processing completes before starting a new prioritization.

You do not need to remain on the prioritization screen while processing is running. After the prioritization request has started, you can close the modal, navigate to other areas of TestRail, and continue working elsewhere in the application while prioritization continues in the background. Once processing is complete, the next time you open the test run, the AI Priority results and AI Reasons will automatically appear.

Step 4: Review and work with the Results

Once prioritization is complete, open the test run to review the generated AI Priority results and AI Reasons applied to your selected tests. Each prioritized test receives one of the following AI Priority values:

  • Very High

  • High

  • Medium

  • Low

  • Unprioritized (tests not included in the current prioritization run)

Tests are automatically grouped and sorted by priority level, with the highest priority displayed first, making it easier to focus on the areas considered highest risk or most important for the release.

The AI Reason column explains why a test received its assigned priority. If the AI Reason column is hidden, you can still view the explanation by hovering over the AI Priority value.

Screenshot 2026-05-08 at 13.54.28.png

A summary banner appears at the top of the test run showing when prioritization was last run, who ran it, and under what conditions. This helps teams maintain visibility and transparency into how prioritization decisions were generated, making it easier to review testing strategy, understand AI context, and align on release risk across the team.

You can also manually override any AI-assigned priority by clicking the value in the AI Priority column and selecting a different priority level. The test immediately moves into the corresponding priority group. Hovering over the updated value displays the original AI-assigned priority for reference.

Screenshot 2026-05-08 at 13.55.13.png
Important:
    While AI can help surface likely high-risk areas and accelerate decision-making, human validation remains critical. QA teams should review AI-generated priorities and apply their own product knowledge, release context, and testing expertise when deciding what to execute.
Prioritize with AI
Understand AI Reasons and prioritization decisions
Learn how to interpret AI generated reasons, understand why tests were prioritized or excluded, and gain better visibility into the signals influencing AI recommendations.
Read the AI Reasons guide →

Managing Access to Prioritize with AI

Prioritize with AI is enabled by default for all TestRail Cloud instances. User roles with the relevant permissions can control feature availability at the instance, project, and user role level to match their organisation’s governance and testing workflows.

  • To enable or disable the feature across the entire instance, navigate to: AI Hub → AI Settings

  • To manage availability for a specific project, navigate to: Project Settings → Edit Project

  • To control which users can access the feature, navigate to: Administration → Users & Roles → Roles

  • You can also manage access using project access roles, which override a user’s global role within a specific project.

By default, only roles with Add/Edit permissions for Runs & Plans have access enabled. This allows administrators to ensure that only authorised users can run AI prioritization within test runs.

Audit Logs

Audit logging for Prioritize with AI is available for customers on the Enterprise license with auditing enabled on their TestRail instance.

When enabled, TestRail records key Prioritize with AI activities under: Site Settings → Auditing Logs

These audit logs help organisations maintain visibility, governance, and traceability over AI-related activity within TestRail.

Learn Prioritize with AI in TestRail Academy

Discover how to use AI-powered test prioritization to focus on high-risk areas, improve release confidence, and make smarter testing decisions.

  • Configure prioritization settings
  • Write effective AI prompts
  • Understand AI Priority and AI Reason results
  • Apply AI within risk-based testing workflows

Go to TestRail Academy


Additional resources

Was this article helpful?
0 out of 0 found this helpful