Skip to main content
Back to Search AI connectors list TestRail is a test management tool for creating, organizing, and tracking test cases, runs, and results. The TestRail Connector enables Search AI to ingest test cases from TestRail so QA teams can search them alongside other organizational content.

Specifications

SpecificationDetails
Repository typeCloud
Supported contentTest cases
RACL supportYes
Content filteringNo

Connector Configuration

Search AI interacts with TestRail through its APIs. API communication requires an API token to authenticate requests.

Generate an API Token in TestRail

  1. Log in to your TestRail instance.
  2. Click your profile name in the top-right corner and select My Settings.
  3. Go to the API Keys tab.
  4. Enter a name for the key and click Generate Key.
  5. Copy the generated API key.

Configure the Connector in Search AI

On the Authorization tab of the connector, provide the following details and click Connect:
FieldDescription
NameUnique name for the connector
DomainURL of your TestRail instance
UsernameUsername of the account used for ingestion
API KeyAPI key generated in TestRail

Content Ingestion

After connecting, go to the Configuration tab and click Sync Now to begin ingestion. Use the Scheduler to set up a one-time or recurring sync. The connector retrieves all test cases across every project in the connected TestRail instance. Each test case is ingested as a separate document with the following fields:
FieldDescription
TitleTitle of the test case
URLDirect link to the test case in TestRail
PriorityPriority level of the test case
ContentIncludes title, preconditions, steps, description, mission, goal, type, milestone, references, and suite
Project IDID of the project the test case belongs to
Project NameName of the project the test case belongs to

RACL Support

The TestRail Connector supports project-level access control. For each ingested test case, the sys_racl field is set to the Project ID and saved as a permission entity object. Use the Permission Entity APIs to associate users with the appropriate Project IDs.