Dataset
TestRail test case and run result datasets for AI training
A TestRail dataset is an export of a company's TestRail instance: its test cases, each with preconditions, steps and expected results, and the runs and plans in which testers executed them, with every result's status, comment, elapsed time, tested version and defect reference. Most of it is manual and exploratory QA work. SourceX sources it to a buyer's spec from established businesses that run TestRail. Each dataset is de-identified, with tester names, credentials and customer test data replaced, and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- Cases with steps and expected results, and the runs, tests and results recorded when testers executed them
- Typical systems
- TestRail Cloud or TestRail Server, Professional or Enterprise, with defect and reference links to Jira or another tracker
- Typical history
- Specified by the buyer; results last as long as their runs, and closed runs keep the case wording as it stood at closing
- Modality
- Step and comment text; structured case, test and result records; screenshots as attachments
- Delivery formats
- Agreed per order; cases and results as JSONL from the API, or TestRail XML or CSV exports, with attachment files
- Preparation
- Tester names replaced with keys; credentials, customer accounts and production URLs in steps and comments scrubbed
- Licensing
- Rights reviewed per company; permitted use set in the license
- Availability
- Sourced to your spec from businesses that run TestRail; supply is not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| case | object | The Case's id, shown in TestRail with a C prefix, its title and its estimate. |
| section_path | array | The Suite and nested Section names the Case is filed under. |
| template | enum | The Case template: Test Case (Text), Test Case (Steps) or Exploratory Session. |
| type_and_priority | object | The Case type and priority, resolved from type_id and priority_id to labels. |
| custom_preconds | string | The Case's preconditions field, after scrubbing. |
| custom_steps_separated | array | For the Steps template, each Step with its content and expected result; Text template cases carry custom_steps and custom_expected. |
| refs | array | The Case's references field, split into the requirement or ticket IDs it lists. |
| custom_fields | object | Other custom Case fields the instance defined, with dropdown values resolved to labels. |
| run | object | The Run the Test belongs to: name, Configuration, Milestone, parent Plan and whether the Run was closed. |
| test_id | integer | The Test, the instance of the Case inside this Run, shown with a T prefix. |
| results | array | Every Result added to the Test, in order: status, time, tester key, comment, tested version and elapsed time. |
| custom_step_results | array | Inside a Result on a Steps template Case, each step's content, expected result, actual result and status as stored with that Result. |
| defects | array | Inside a Result, the Defect reference IDs entered on it, kept as strings that point to the external tracker. |
| attachments | array | Files attached to the Case, Test or Result, by attachment id, delivered separately. |
Field names from the table above; values are masked placeholders.
Example record
{
"case": {
"id": 18422,
"title": "Pay with a saved card that has expired",
"estimate": "5m"
},
"section_path": [
"Web checkout",
"Saved cards"
],
"template": "Test Case (Steps)",
"type_and_priority": {
"type": "Regression",
"priority": "High"
},
"custom_preconds": "Account [TEST_ACCOUNT] has one expired saved card.",
"custom_steps_separated": [
{
"content": "Open checkout with one item in the cart.",
"expected": "The saved card is listed."
},
{
"content": "Select the saved card and press Pay now.",
"expected": "Payment is refused and no order is created."
}
],
"refs": [
"PAY-2291"
],
"run": {
"run_id": 3310,
"name": "Release 4.12 regression",
"config": "Chrome, Windows 11",
"is_completed": true
},
"test_id": 905117,
"results": [
{
"status": "Failed",
"created_on": "2024-03-05T14:12:40Z",
"created_by": "tester_014",
"version": "4.12.0-rc1",
"elapsed": "4m 10s",
"custom_step_results": [
{
"content": "Open checkout with one item in the cart.",
"expected": "The saved card is listed.",
"actual": "",
"status": "Passed"
},
{
"content": "Select the saved card and press Pay now.",
"expected": "Payment is refused and no order is created.",
"actual": "Refused, but order [ORDER_ID] was created as Pending.",
"status": "Failed"
}
],
"defects": [
"PAY-2317"
],
"attachment_ids": [
"att_5521"
]
},
{
"status": "Retest",
"created_on": "2024-03-07T09:03:12Z",
"created_by": "qa_lead_003",
"comment": "Fix is in rc2, please verify."
},
{
"status": "Passed",
"created_on": "2024-03-07T11:47:55Z",
"created_by": "tester_014",
"version": "4.12.0-rc2",
"elapsed": "3m 5s"
}
],
"attachments": [
{
"attachment_id": "att_5521",
"file": "attachments/att_5521.png"
}
]
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Build stepwise tasks with a check at every step
Separated steps, each with its own expected result, convert into agent tasks with a pass condition per step.
Learn fix verification from result chains
Failed, Retest and Passed results on one test, with versions and comments, show how a tester confirmed a fix.
Write bug reports from failed steps
A failed step's actual result, joined to the tracker's text by defect ID, pairs an observation with the bug filed from it.
Generate test cases from requirements
Cases joined to requirement IDs in the references field show how a user story becomes concrete checks.
Estimate test effort
Estimates on cases beside elapsed times on results show how long checks really took.
Use-case guides: Private evaluation sets, Coding agents, Enterprise and computer-use agents
What makes this data valuable
Steps template in use
Most cases use separated steps, so results carry an actual result and a status per step.
Whole result chains
Tests arrive with every result, including Retest and comment-only entries.
Closed runs
Runs in scope were closed, so each test holds the case wording frozen at closing.
Resolvable defect IDs
Defect and reference strings match records in a delivered tracker export.
Attachments on failures
Failed results have their screenshots as files, not dangling references.
Labels resolved
Statuses, types, priorities and custom dropdowns are delivered as labels.
Process
TestRail dataset
A test is a case inside one run, and it keeps every result
TestRail separates what should be checked from each time it was checked. A case is the reusable specification, filed in a section of a suite. A run selects cases, and for each one TestRail creates a test, a separate record with its own id that links that case to that run. Results are added to the test, never to the case. A test plan groups runs and can multiply one selection across configurations, so the same case appears as several tests, each with its own results.
Adding a result does not replace the one before. A test that was marked Failed, then set to Retest by a lead once a fix was merged, then Passed against a later version holds three results in order, each with its tester, time, comment and version string. The test's current status alone would show only Passed. Under the Test Case (Steps) template a result goes further: each step is stored with the result as content, expected result, actual result and its own status, so the record names the step where behavior diverged. Untested is the starting state of a test, not a result.
What TestRail overwrites is the case. Editing a case changes it for every open run, so tests in an active run show today's wording beside results recorded against earlier wording. Closing a run freezes its tests as they stood at that moment, and a closed run cannot be reopened. Deleting a case removes its tests and results from runs that are still open. Step results soften the first problem, because each one is stored with its own copy of the step text. Ask which runs in scope were closed, and whether case change history was exported.
Defects are ID strings, and attachments arrive separately
The defects field on a result is text. A tester types or pushes one or more IDs, and TestRail stores them as a comma-separated string. If the instance has a defect integration set up, the interface turns each ID into a link and can show a live summary from Jira or another tracker, but the title, description, severity and resolution of the bug are not copied into TestRail. A delivery that needs the bug text must include a matching export from the tracker, joined on those ID strings, and the IDs are only as clean as the testers' typing.
The interface export and the API return different things. The interface exports cases or a run as XML, CSV or Excel, with the columns of a CSV or Excel file chosen by the person exporting, and attachment files are not part of the export. The API returns cases, runs, tests and results as JSON with timestamps as UNIX time, with users, types, priorities and statuses as numeric IDs, and with dropdown custom fields as the stored option number, so labels must be resolved from other endpoints. Attachments are listed and downloaded by further API calls. Screenshots pasted into step text are stored as references to attachment addresses on the instance, which resolve to nothing once the text is exported.
Two shortcuts spoil an export. Reading tests without results returns the current status of each test and drops the Failed and Retest entries behind it. Reading results without the custom field definitions leaves columns of integers nobody can interpret. Entries with no status are comments or reassignments, not verdicts. To test a sample, find a test with several results and check that the sequence is whole, follow three defect IDs into the tracker export, open the files behind three attachment IDs, and read steps and preconditions for real customer accounts, passwords and production URLs.
What to check before licensing
- Have counsel for the buyer and for the data owner read the TestRail terms from Gurock and Idera, Inc. on exported data and API use, for the Cloud or Server edition the business runs.
- Read steps, preconditions and result comments on a sample for real customer accounts, passwords, API keys and production URLs, and ask how test data was scrubbed.
- Ask whether results came from the API, an interface export or the database, and confirm every result per test was delivered, not only its current status.
- Ask which runs were closed and which were still open at export, and whether case history was delivered.
- Check that defect IDs and references can be joined to a tracker export in the delivery, and what share of failed results carry a defect ID.
- Confirm attachments were downloaded as files, and that image references in step text point to them.
- Ask what share of results was posted by automation through the API or the TestRail CLI, and how those are flagged.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
What does a TestRail dataset contain?
It contains one company's test case library and its execution history. Cases come with section path, template, type, priority, preconditions, steps and expected results. Each test in a run comes with every result: status, comment, version, elapsed time, step results and defect IDs. Attachments are delivered as separate files.
Does it include the bug reports linked to failed tests?
No, not from TestRail itself. A result stores defect references only as ID strings that point to Jira or another tracker, and the bug's title, description and resolution stay in that system. To get them, ask for a tracker export and join on the IDs. Some IDs will not match, since they are typed by hand.
Are results recorded per step or per test case?
It depends on the template the case uses. Cases on the Test Case (Steps) template record an actual result and a status for each step inside every result, along with the step text. Cases on the Text template record one status and one comment for the whole case. Ask for the split by template.
Can I see what a test case said when it was executed?
Sometimes. Tests in a closed run are frozen with the case as it stood at closing, and step results keep the step text recorded with each result. For open runs and Text template cases, results point at the live case, which may have been edited since. Ask whether case history was exported.
Is the data all manual testing?
Mostly, but check. TestRail is built around testers working through cases by hand, including exploratory sessions, and that is where its comments, elapsed times and step results come from. Teams also post automated results through the API or the TestRail CLI, and those appear as ordinary results. Ask how they are flagged.
Is SourceX affiliated with Gurock or Idera, Inc.?
TestRail is named to identify the system the records come from. That does not imply a partnership with or endorsement by Gurock or Idera, Inc. The records belong to the business that runs TestRail, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.
Related datasets
- QA test cases and manual test runs
Written test cases with steps and expected results, plus the result of every manual execution by build
- Test suites with run-by-run results
Automated test code plus one result row per test per run, keyed to the commit under test
- Bug reports with reproduction steps and verified fixes
Defect records from report to triage outcome, fixing change and QA verification
- Jira issue histories
Issues from a Jira site with their changelog, comments, links and sprints, plus the site's field and workflow definitions
- Qase test cases and run results
Test cases with steps, suites, shared steps and plans, and test runs with results per case, step statuses, attachments and defects
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell us what your models need
Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.
Updated 26 November 2026.