The ID of the test case the attachment should be added to
The file to be uploaded
The filename to be associated
Object containing attachment_id
Adds an attachment to a test plan. The maximum allowable upload size is set to 256MB.
The ID of the test plan the attachment should be added to
The file to be uploaded
The filename to be associated
Adds an attachment to a test plan entry. The maximum allowable upload size is set to 256MB.
The ID of the test plan containing the entry
The ID of the test plan entry the attachment should be added to
The file to be uploaded
The filename to be associated
Object containing attachment_id
Adds an attachment to a result based on the result ID. The maximum allowable upload size is set to 256MB.
The ID of the test result the attachment should be added to
The file to be uploaded
The filename to be associated
Object containing attachment_id
Adds an attachment to test run. The maximum allowable upload size is set to 256MB.
The ID of the test run the attachment should be added to
The file to be uploaded
The filename to be associated
Object containing attachment_id
Creates a new test case custom field.
The new CaseField data
If successful, this method returns the new custom field.
Creates a new configuration – requires TestRail 5.2 or later.
The ID of the configuration group the configuration should be added to
The new config data
Creates a new configuration group – requires TestRail 5.2 or later.
The ID of the project the configuration group should be added to
The new config group data
Creates a new milestone.
The ID of the project the milestone should be added to
An object with the new milestone data
If successful, this method returns the new milestone using the same response format as getMilestone
.
Creates a new test plan.
The ID of the project the test plan should be added to
The new test plan data
If successful, this method returns the new test plan using the same response format as getPlan
.
Adds one or more new test runs to a test plan.
The ID of the plan the test runs should be added to
The new plan entry data
If successful, this method returns the new test plan entry including test runs using the same response format as the entries field of getPlan
, but for a single entry instead of a list of entries.
Adds a new test result, comment or assigns a test. It’s recommended to use addResults
instead if you plan to add results for multiple tests.
The ID of the test the result should be added to
Object containing new result data
If successful, this method returns the new test result using the same response format as getResults
, but with a single result instead of a list of results.
Adds a new test result, comment or assigns a test (for a test run and case combination). It’s recommended to use addResultsForCases
instead if you plan to add results for multiple test cases.
The ID of the test run
The ID of the test case
Object containing new result data
If successful, this method returns the new test result using the same response format as getResults
, but with a single result instead of a list of results.
Adds one or more new test results, comments or assigns one or more tests. Ideal for test automation to bulk-add multiple test results in one step.
The ID of the test run the results should be added to
A list of objects containing the new result data
If successful, this method returns the new test results using the same response format as getResults
and in the same order as the list of the request.
Adds one or more new test results, comments or assigns one or more tests (using the case IDs). Ideal for test automation to bulk-add multiple test results in one step.
The ID of the test run the results should be added to
A list of objects containing the new result data
If successful, this method returns the new test results using the same response format as getResults
and in the same order as the list of the request.
Creates a new test run.
The ID of the project the test run should be added to
The new Run data
If successful, this method returns the new test run using the same response format as getRun
.
Adds a new test run to a test plan entry (using configurations)
The ID of the plan the test runs should be added to
The ID of the test plan entry
The new run data
Creates a new section.
The ID of the project
An object containing the new section data
If successful, this method returns the new section using the same response format as getSection
.
Creates a new set of shared steps. Requires permission to add test cases within the project.
The ID of the project
The new shared step data
If successful, this method returns the new shared steps using the same response format as getSharedStep
.
Creates a new test suite.
The ID of the project the test suite should be added to
The new suite data
If successful, this method returns the new test suite using the same response format as getSuite
.
Closes an existing test plan and archives its test runs & results.
The ID of the test plan
If successful, this method returns the closed test plan using the same response format as getPlan
.
Closes an existing test run and archives its tests & results.
The ID of the test run
If successful, this method returns the closed test run using the same response format as getRun
.
Copies the list of cases to another suite/section.
The ID of the section the test case should be copied to
Filter parameters
Deletes the specified attachment identified by attachmentID
.
The ID of the attachment to delete
Deletes an existing test case.
The ID of the test case
Set to true to return information about the data which will be deleted, but will not proceed with the deletion.
Deletes multiple test cases from a project or test suite.
The ID of the suite (Only required if project is in multi-suite mode)
An object containing case_ids and project_id
Set to true to return information about the data which will be deleted, but will not proceed with the deletion.
Deletes an existing configuration – requires TestRail 5.2 or later.
The ID of the configuration
Deletes an existing configuration group and its configurations – requires TestRail 5.2 or later.
The ID of the configuration group
Deletes an existing dataset.
The ID of the dataset to be deleted.
Deletes an existing group
The ID of the group
Deletes an existing milestone.
The ID of the milestone
Deletes an existing test plan.
The ID of the test plan
Deletes one or more existing test runs from a plan.
The ID of the test plan
The ID of the test plan entry (note: not the test run ID)
Deletes an existing project (admin status required).
The ID of the project
Deletes an existing test run.
The ID of the test run
Set to true to return information about the data which will be deleted, but will not proceed with the deletion.
Deletes a test run from a test plan entry
The ID of the test run
Deletes an existing section.
The ID of the section
Set to true to return information about the data which will be deleted, but will not proceed with the deletion.
Deletes an existing shared step entity. Requires permission to delete test cases within the project.
The ID of the set of shared steps
Default is true. Submit false to delete the shared steps from all test cases as well as the shared step repository
The ID of the test suite
An object containing the populated fields to be updated
Set to true to return information about the data which will be deleted, but will not proceed with the deletion.
Deletes an existing variable.
The ID of the variable to be deleted.
Retrieves the requested file identified by attachment_id.
The ID of the test to retrieve attachments from
Object containing attachment metadata
Returns a list of attachments for a test case.
The ID of the test case to retrieve attachments from
Filter parameters
A cursor object containing the current attachment and next
and prev
functions
Returns a list of attachments for a test plan.
The ID of the test plan to retrieve attachments from
Filter parameters
A list of attachments
Returns a list of attachments for a test plan entry.
The ID of the test plan containing the entry
The ID of the test plan entry to retrieve attachments from
Filter parameters
The method returns the same response format as getAttachmentsForPlan
.
Returns a list of attachments for a test run.
The ID of the test run to retrieve attachments from
Filter parameters
A cursor object containing the current attachment and next
and prev
functions
Returns a list of attachments for a test’s results.
The ID of the test to retrieve attachments from
Filter parameters
Returns an existing test case
The ID of the test case
Case
Returns a list of available test case custom fields.
A list of case fields
Returns a list of available test case statuses.
An object containing all test case statuses with next and prev cursor functions
Returns a list of available case types.
The response includes an array of test case types. Each case type has a unique ID and a name. The field is true for the default case type and false otherwise.
Returns a list of test cases for a project or specific test suite (if the project has multiple suites enabled).
The ID of the project
Filter parameters
An object containing a list of cases and next and previous cursors
Returns a list of available configurations, grouped by configuration groups.
The ID of the project
An array of configuration groups
Retrieves the requested dataset.
The ID of the dataset to retrieve.
The dataset referenced by the ID
Retrieves the requested list of datasets
The ID of the project from which to retrieve datasets
An object containing a list of datasets along with next and prev cursor functions
Returns an existing group.
The ID of the group
The group referenced by the ID
Returns the list of available groups
An object containing a list of the groups along with next and prev cursor functions
Returns the edit history for a test case_id
.
The ID of the test case
Filter parameters
Returns an existing milestone.
The ID of the milestone
The milestone referenced by the ID
Returns the list of milestones for a project.
The ID of the project
Filter parameters
An object containing a list of milestones along with next and prev cursor functions
Returns an existing test plan.
The ID of the test plan
The test plan if found, if not throws an error
Returns a list of test plans for a project.
The ID of the project
Filter parameters
The response includes an array of test plans. Each test plan in this list follows the same format as getPlan
, except for the entries field which is not included in the response.
Returns a list of available test case priorities.
The response include an array of priorities. Each priority has a unique ID, a name, and a short version of the name. The priority field determines the order of the priorities. The is_default
field is true for the default priority and false otherwise.
Returns an existing project.
The ID of the project
The project if found, throws an error if not
Returns the list of available projects.
Filter parameters
The response includes an array of projects. Each project in this list follows the same format as getProject
.
Returns a list of API available reports by the project.
The ID of the project for which you want a list of API accessible reports
A list of reports owned by the project referenced by the ID
Returns a list of available test result custom fields.
An array of custom field definitions
Returns a list of test results for a test.
The ID of the test
Filter parameters
An object containing all the test results along with next and prev cursor functions
Returns a list of test results for a test run and case combination.
The ID of the test run
The ID of the test case
Filter parameters
This method uses the same response format as getResults
.
Returns a list of test results for a test run.
The ID of the test run
Filter parameters
This method uses the same response format as getResults
.
Returns a list of available roles
Filter parameters
An object containing a list of roles along with next and prev cursor functions
Returns an existing test run. Please see getTests
for the list of included tests in this run.
The ID of the test run
Object containing system fields
Returns a list of test runs for a project. Only returns those test runs that are not part of a test plan (please see getPlans
/getPlan
for this).
The ID of the project
Filter parameters
The response includes an array of test runs. Each test run in ‘runs’ array follows the same format as getRun
.
Returns an existing section.
The ID of the section
The section referenced by the ID
Returns a list of sections for a project and test suite.
The ID of the project
Filter parameters
An object containing a list of sections along with next and prev cursor functions
Returns an existing set of shared steps.
The ID of the set of shared steps
An object containing custom shared steps
Returns an existing set of shared steps.
The ID of the set of shared steps
The change history of the steps
Returns a list of shared steps for a project.
The ID of the project
Filter parameters
The response includes an array of shared test steps. Each entry in the array follows the same format as getSharedStep
.
Returns a list of available test statuses.
Returns a list of all system and custom formats
Returns an existing test suite.
The ID of the test suite
The suite referenced by the ID
Returns a list of test suites for a project.
The ID of the project
The response includes an array of test suites. Each test suite in this list follows the same format as getSuite
.
Returns a list of available templates for a project_id.
The ID of the project
The response includes an array of templates (field layouts). Each template has a unique ID and a name. The is_default
field is true for the default template and false otherwise.
Returns an existing test.
The ID of the test
The parameter to get data
Object containing system fields
Returns a list of tests for a test run
The ID of the test run
Filter parameters
The response includes an array of tests. Each test in this list follows the same format as getTest
.
Retrieves the requested variables.
The ID of the project from which to retrieve variables.
Filter parameters
An object containing a list of variables along with next and prev cursor functions
Moves cases to another suite or section.
The ID of the section the case will be moved to.
Supported system fields
Moves a section to another suite or section.
The ID of the section
Object containing parent_id and after_id of a section to insert this section after
Executes the report identified using the report_id parameter and returns URL‘s for accessing the report in HTML and PDF format.
The ID of the run template
An object containing URIs for the generated reports
Updates an existing test case (partial updates are supported, i.e. you can submit and update specific fields only).
The ID of the test case
An object with the populated fields to be updated
If successful, this method returns the new test case using the same response format as getCase.
Updates multiple test cases with the same values, like setting a set of test cases to “High” priority. This does not support updating multiple test cases with different values per test case.
The ID of the test suite (optional if the project is operating in single suite mode)
An object with the populated fields to be updated
If successful, this method returns the new test case using the same response format as getCase.
Updates an existing configuration- requires TestRail 5.2 or later.
The ID of the configuration
An object containing the populated fields to be updated
Updates an existing configuration group – requires TestRail 5.2 or later.
The ID of the configuration group
An object containing the populated fields to be updated
Updates an existing milestone (partial updates are supported, i.e. you can submit and update specific fields only).
The ID of the milestone
An object containing the populated fields to be updated
If successful, this method returns the updated milestone using the same response format as getMilestone
.
Updates an existing test plan (partial updates are supported, i.e. you can submit and update specific fields only).
The ID of the test plan
Object containing the populated fields to be updated
If successful, this method returns the updated test plan using the same response format as getPlan
.
Updates one or more groups of test runs in a plan (partial updates are supported, i.e. you can submit and update specific fields only).
The ID of the test plan
The ID of the test plan entry
Object containing the populated fields to be updated
If successful, this method returns the updated test plan entry including test runs using the same response format as the entries field of getPlan
, but for a single entry instead of a list of entries.
Updates an existing project (admin status required; partial updates are supported, i.e. you can submit and update specific fields only).
The ID of the project
Object containing the populated fields to be updated
The updated project
Updates an existing test run (partial updates are supported, i.e. you can submit and update specific fields only).
The ID of the test run
Object containing populated fields to be updated
If successful, this method returns the updated test run using the same response format as getRun
.
Updates a run inside a plan entry which uses configurations
The ID of the test run
Object containing the populated fields to be updated
Updates an existing section (partial updates are supported, i.e. you can submit and update specific fields only).
The ID of the section
An object containing the populated fields to be updated
If successful, this method returns the updated section using the same response format as getSection
.
Updates an existing set of shared steps (partial updates are supported, i.e. you can submit and update specific fields only). Requires permission to edit test cases within the project.
The ID of the set of shared steps
An object containing the populated fields to be updated
If successful, this method returns the updated shared steps using the same response format as getSharedStep
.
Updates an existing test suite (partial updates are supported, i.e. you can submit and update specific fields only).
The ID of the test suite
If successful, this method returns the updated test suite using the same response format as getSuite
.
Generated using TypeDoc
Adds an attachment to a test plan. The maximum allowable upload size is set to 256MB.