Index TestRail Data¶
Availability
Indexing tools are available in the Next environment (Release 1.7.0) and replace legacy Datasources/Datasets. For context, see Release Notes 1.7.0 and the Indexing Overview.
Overview¶
TestRail indexing allows you to create searchable indexes from your TestRail test management content:
- Test Cases: Detailed test procedures, steps, expected results, and custom fields
- Test Projects: Project structures, test suites, and section organization
- Test Metadata: Test priorities, types, automation status, and custom properties
- Attachments: Screenshots, test files, documentation, and media attached to test cases
- Test History: Test execution results, comments, and version tracking
What you can do with indexed TestRail data:
- Semantic Search: Find test cases and procedures across projects using natural language queries
- Context-Aware Chat: Get AI-generated answers from your test documentation with citations to specific test cases
- Cross-Project Discovery: Search across multiple TestRail projects and test suites
- Test Analysis: Analyze testing patterns, coverage, and procedures for quality improvement
- Knowledge Extraction: Transform test documentation into searchable organizational knowledge
Common use cases:
- Finding similar test cases across projects to avoid duplication and ensure consistency
- Onboarding new QA team members by allowing them to ask questions about testing procedures and standards
- Analyzing test coverage gaps and identifying areas needing additional test cases
- Support teams searching for existing test procedures when investigating issues
- Test managers extracting insights from test documentation for reporting and process improvement
Prerequisites¶
Before indexing TestRail data, ensure you have:
- TestRail Credential: A TestRail API key with authentication credentials configured in ELITEA
- Vector Storage: PgVector selected in Settings → AI Configuration
- Embedding Model: Selected in AI Configuration (defaults available) → AI Configuration
- TestRail Toolkit: Configured with your TestRail instance details and credentials
Required Permissions¶
Your TestRail credential needs appropriate permissions based on what you want to index:
For Content Access:
- Read access to TestRail projects and test cases
- Permission to view the specific projects you want to index
For Comprehensive Indexing:
- Access to view test case attachments (if including attachments)
- Permission to view test case history and metadata
- Access to both active and archived projects (based on your requirements)
Authentication Method:
- TestRail API Key: Email address and API key generated in TestRail
Step-by-Step: Creating a TestRail Credential¶
- Generate TestRail API Key in your TestRail account (My Settings → API Keys → Add Key)
- Create Credential in ELITEA: Navigate to Credentials → + Create → TestRail → enter details and save
Detailed Instructions
For complete credential setup steps including API key generation and security best practices, see:
Step-by-Step: Configure TestRail Toolkit¶
- Create Toolkit: Navigate to Toolkits → + Create → TestRail
- Configure Settings: Set TestRail instance URL and assign your TestRail credential
- Enable Tools: Select
Index Data,List Collections,Search Index,Stepback Search Index,Stepback Summary Index, andRemove Indextools - Save Configuration
Tool Overview:¶
- Index Data: Creates searchable indexes from TestRail test cases and documentation
- List Collections: Lists all available collections/indexes to verify what's been indexed
- Search Index: Performs semantic search across indexed content using natural language queries
- Stepback Search Index: Advanced search that breaks down complex questions into simpler parts for better results
- Stepback Summary Index: Generates summaries and insights from search results across indexed content
- Remove Index: Deletes existing collections/indexes when you need to clean up or start fresh
Configuration Settings:¶
| Setting | Description | Example Value |
|---|---|---|
| URL | TestRail instance URL | https://yourcompany.testrail.io/ |
| TestRail account email address | test.manager@company.com |
|
| Password/API Key | TestRail API key for authentication | Select from Secrets or enter directly |
TestRail URL Format
Use the complete TestRail instance URL including https:// and your subdomain (e.g., https://yourcompany.testrail.io/).
Detailed Instructions
For complete toolkit configuration including URL setup and authentication options, see:
Step-by-Step: Index TestRail Data¶
Primary Interface
All indexing operations are performed via the Indexes Tab Interface. This dedicated interface provides comprehensive index management with visual status indicators, real-time progress monitoring, and integrated search capabilities.
Requirements
Before proceeding, ensure your project has PgVector and Embedding Model configured in Settings → AI Configuration, and your TestRail toolkit has the Index Data tool enabled.
Step 1: Access the Interface¶
- Navigate to Toolkits: Go to Toolkits in the main navigation
- Select Your TestRail Toolkit: Choose your configured TestRail toolkit from the list
- Open Indexes Tab: Click on the Indexes tab in the toolkit detail view
If the tab is disabled or not visible, verify that: - PgVector and Embedding Model are configured in Settings → AI Configuration - The Index Data tool is enabled in your toolkit configuration
Step 2: Create a New Index¶
- Click Create New Index: In the Indexes sidebar, click the + Create New Index button
- New Index Form: The center panel displays the new index creation form
Step 3: Configure Index Parameters¶
Fill in the required and optional parameters for your TestRail indexing:
| Parameter | Required | Description | Example Value |
|---|---|---|---|
| Index Name | ✓ | Suffix for collection name (max 7 chars) | cases or qa |
| Clean Index | ✗ | Remove existing index data before re-indexing | ✓ (checked) or ✗ (unchecked) |
| Progress Step (0 - 100) | ✗ | Step size for progress reporting during indexing | 10 (default) |
| Chunking Config | ✗ | Configuration settings for content chunking | {"chunk_size": 4000, "chunk_overlap": 200} |
| Chunking Tool | ✗ | Method for splitting content into chunks | json (default) |
| project_id | ✓ | TestRail project ID to index data from | 1 or 5 |
| suite_id | ✗ | Optional TestRail suite ID to filter test cases | 3 or leave empty |
| section_id | ✗ | Optional section ID to filter test cases | 15 or leave empty |
| include_attachments | ✗ | Whether to include attachment content in indexing | ✓ (checked) or ✗ (unchecked) |
| skip_attachment_extensions | ✗ | File extensions to skip when processing attachments | [".png", ".jpg"] |
Step 4: Start Indexing¶
- Form Validation: The Index button remains inactive until all required fields are filled
- Review Configuration: Verify all parameters are correct
- Click Index Button: Start the indexing process
- Monitor Progress: Watch real-time updates with visual indicators:
- 🔄 In Progress: Indexing is currently running
- ✅ Completed: Indexing finished successfully
- ❌ Failed: Indexing encountered an error
Alternative: Test Settings Method
For quick testing and validation, you can also use the Test Settings panel on the right side of the toolkit detail page. Select a model, choose the Index Data tool from the dropdown, configure parameters, and click Run Tool. However, the Indexes Tab Interface is the recommended approach for comprehensive index management.
Step 5: Verify Index Creation¶
After indexing completes, verify the index was created successfully:
- Check Index Status: Visual indicators show completion status
- Review Index Details: Click on the created index to see metadata and document count
- Test Search: Use the Run tab to test search functionality with sample queries
Real-Life Example: Indexing QA Test Documentation¶
Scenario: You have a QA team with comprehensive test documentation in TestRail for an e-commerce web application. You want to make all test cases, procedures, and testing knowledge searchable for team collaboration and knowledge sharing.
Indexing Steps:
-
Configure TestRail Toolkit:
- URL:
https://yourcompany.testrail.io/ - Email:
qa.manager@yourcompany.com - API Key: Generated from TestRail → My Settings → API Keys
- URL:
-
Index Complete E-commerce Project:
- Project ID:
1 - Collection suffix:
ecom - Progress Step:
5(report every 5 test cases) - Clean Index: ✓ (for fresh start)
- Include Attachments: ✓ (for test screenshots and documentation)
- Skip Attachment Extensions:
[".jpg"] - Chunking Tool:
json - Chunking Config: Default
- Project ID:
-
Index Specific Test Suite (Optional):
- Project ID:
1 - Suite ID:
10(only User Authentication Tests) - Collection suffix:
auth - Include Attachments: ✗ (authentication tests rarely have attachments)
- Project ID:
-
Index Specific Section (Optional):
- Project ID:
1 - Suite ID:
20 - Section ID:
203(only Checkout Process tests) - Collection suffix:
checkout - Include Attachments: ✓ (checkout tests often have payment screenshots)
- Project ID:
-
Verify indexing:
- Use "List Collections" tool to confirm collections exist
- Expected collections:
ecom,auth,checkout - Check indexing output for test case processing confirmation
After indexing, you can search for:
- Authentication queries: "Find all test cases for user login functionality"
- Feature-specific tests: "What are the steps to test the shopping cart feature?"
- Cross-functional testing: "Show me test cases that verify payment processing"
- Performance analysis: "What performance tests exist for the checkout process?"
- Test coverage gaps: "Are there tests for guest checkout without registration?"
Search and Chat with Indexed Data¶
Once your TestRail data is indexed, you can use it in multiple ways:
Using the Indexes Interface¶
Direct Search via Indexes Tab:
- Access Indexes Tab: Navigate to your TestRail toolkit → Indexes tab
- Select Index: Click on your created index from the sidebar
- Open Run Tab: Click the Run tab in the center panel
- Choose Search Tool: Select from available search tools:
- Search Index: Basic semantic search
- Stepback Search Index: Advanced search with question breakdown
- Stepback Summary Index: Summarized insights from search results
- Enter Query: Type your natural language question
- View Results: See responses with citations to specific test cases
Using Toolkit in Conversations and Agents¶
Your TestRail toolkit can be used in two main contexts:
- In Conversations: Add the toolkit as a participant to ask questions and search your indexed TestRail data
- In Agents: Include the toolkit when creating AI agents to give them access to your test documentation
How to use:
- Start a New Conversation or Create an Agent
- Add Toolkit as Participant: Select your TestRail toolkit from the available toolkits
- Ask Natural Language Questions: The toolkit will automatically search your indexed data and provide relevant answers with citations
Using Indexed TestRail Data in Conversations¶
Let's walk through a complete example of querying indexed test documentation:
Step 1: Add toolkit to a conversation and start asking questions:
- Navigate to Chat → + Create
- In the participants section click + to add Toolkit
- Select your TestRail toolkit from the available toolkits list
Step 2: Start comprehensive analysis with your indexed test documentation
-
User Request: "Find all test cases that verify user authentication and provide a summary of the testing approach for login functionality from the collection."
-
TestRail Toolkit: "Based on your indexed test cases, here's a comprehensive summary of user authentication testing:
User Authentication Test Cases Found:
- TC-4825: Valid User Login: Verifies successful login with correct credentials
- TC-7213: Invalid Password Handling: Tests error messages for incorrect passwords
- TC-003: Account Lockout Protection: Validates account security after multiple failed attempts
- TC-004: Two-Factor Authentication: Tests 2FA implementation and verification process
- TC-012: Session Timeout: Verifies automatic logout after inactivity period
Testing Approach Summary:
Positive Testing:
- Valid credential combinations across different user roles
- Successful authentication flow validation
- Session management and persistence testing
Negative Testing:
- Invalid credential handling and error messaging
- Security boundary testing (brute force protection)
- Edge cases for special characters and input validation
Security Testing:
- Password encryption verification
- Session token security validation
- Multi-factor authentication workflows
Sources: TC-4285 (Project: Web Application Testing), TC-7213 (Suite: User Authentication Tests), TC-003, TC-004, TC-012"
-
User Request: "Generate a test execution checklist for our app release based on the indexed test cases. Include critical paths and regression testing areas."
-
TestRail Toolkit: "Based on your indexed mobile app test documentation, here's a comprehensive test execution checklist for release validation:
MOBILE APP RELEASE TEST CHECKLIST
**Critical Path Testing (Must Pass):**
- Document Formatting:
- UI and Layout Verification
- Payment Processing & Transaction Handling
- Data Synchronization (Online/Offline)
- Reading and Viewing Modes
- App Store Compliance & Guidelines
Regression Testing Areas:
**Functionality Regression:**
- User profile management and settings
- Search and filtering capabilities
- Social sharing and integration features
- In-app purchases and subscription management
**Platform-Specific Testing:**
- iOS: Touch ID/Face ID authentication
- Android: Background app behavior and permissions
- Cross-platform: UI consistency and responsive design
**Performance & Stability:**
- App launch time and memory usage
- Battery consumption during extended use
- Network connectivity handling (WiFi/Cellular/Offline)
- Device compatibility across OS versions
**Security & Privacy:**
- Data encryption and secure storage
- API security and authentication tokens
- User consent and privacy settings
- Biometric authentication security
Sources: Mobile Test Suite (15 test cases), Performance Tests (8 test cases), Security Tests (6 test cases)"
Best Practices¶
Test Documentation Organization¶
- Use descriptive project names that reflect the application or feature being tested
- Organize test cases by functionality for better search results and coverage analysis
- Include clear test steps and expected results to improve indexing quality and searchability
Indexing Strategy¶
- Use clear collection suffixes to separate different test projects (e.g.,
web,mobile,api) - Clean index periodically when test documentation changes significantly
- Include attachments when test cases contain important screenshots or documentation files
Search Optimization¶
- Use natural language queries rather than specific test case IDs
- Be specific about testing areas for better results (e.g., "authentication tests" vs "login")
- Try different search tools for various use cases:
- Basic questions: Search Index
- Complex analysis: Stepback Search Index
- Test planning: Stepback Summary Index
Content Management¶
- Update indexes when adding significant new test cases or projects
- Remove outdated collections using the Remove Index tool
- Maintain test case organization in TestRail for better indexing results
Common Issues and Troubleshooting¶
Indexes Interface Issues¶
"Indexes tab not visible" or "Tab disabled":
- Verify PgVector and Embedding Model are configured in Settings → AI Configuration
- Ensure the Index Data tool is enabled in your TestRail toolkit configuration
- Check that your toolkit supports indexing (TestRail is supported)
- Refresh the browser page and retry
"+ Create New Index button not working":
- Verify all project-level prerequisites are met (PgVector and Embedding Model)
- Check that you have proper permissions for the toolkit
- Ensure the toolkit is properly saved with credentials
No Test Cases Found During Indexing¶
Problem: Index Data tool reports no test cases to process
Solutions:
- Verify Project ID is correct and exists in your TestRail instance
- Check that your API key has read permissions for the specified project
- Confirm the project contains test cases and is not empty
Authentication Errors¶
Problem: "Unauthorized" or "Access Denied" errors during indexing
Solutions:
- Verify your TestRail URL format includes
https://and correct subdomain - Check that your API key is valid and has not been revoked
- Ensure your TestRail account has appropriate permissions for the target project
Poor Search Results¶
Problem: Search queries return irrelevant or no results
Solutions:
- Try more specific, detailed search queries related to testing terminology
- Adjust the Cut Off score (lower for more results, higher for precision)
- Use Stepback Search Index for complex testing questions
- Verify the Collection Suffix targets the right dataset
Indexing Fails for Specific Test Cases¶
Problem: Some test cases fail to process during indexing
Solutions:
- Check if test cases have corrupt attachments or unsupported file formats
- Verify Suite ID and Section ID are valid if using filters
- Review indexing output for specific error messages
- Try indexing without attachment inclusion first, then add attachments
Collection Not Found¶
Problem: Search tools can't find the specified collection
Solutions:
- Use List Collections tool to see available collections
- Verify collection suffix matches what was used during indexing
- Confirm indexing completed successfully
- Check for typos in collection suffix
Related Documentation
For additional information and detailed setup instructions, see:
- Indexing Overview - Complete guide to ELITEA's indexing system and capabilities
- Indexing Tools - Detailed reference for all indexing tools and parameters
- TestRail Toolkit Guide - Comprehensive guide to the TestRail Toolkit and its capabilities
- How to Use Credentials - TestRail credential setup and management
- AI Configuration - Set up vector storage and embedding models for indexing
- Toolkits Menu - General toolkit configuration and management
- Chat Menu - Create conversations and add toolkits as participants
- Agents Menu - Create AI agents with access to your indexed TestRail data






