Sign Up

Log In

TestRail

FREE
By raygorodskij
Updated 9 months ago
Tools
-/10
Popularity Score
-
Latency
-
Success Rate

TestRail API Documentation

TestRail helps you manage and track your software testing efforts and organize your QA department.
View API Details

Supercharge your App

Discover and connect to thousands of APIs in the world's largest API Hub

POSTaddResult
POSTaddResultForCase
POSTaddResults
POSTaddResultsForCases
POSTclosePlan
POSTcloseRun
POSTcreateCase
POSTcreateNewConfiguration
POSTcreateNewConfigurationGroup
POSTcreatePlan
POSTcreatePlanEntry
POSTcreateProject
POSTcreateSection
POSTcreateTestRun
POSTcreateTestSuite
POSTcreatesMilestone
POSTdeleteCase
POSTdeleteConfig
POSTdeleteConfigGroup
POSTdeleteMilestone
POSTdeletePlan
POSTdeletePlanEntry
POSTdeleteProject
POSTdeleteRun
POSTdeleteSection
POSTdeleteTestSuit
POSTgetAllCaseFields
POSTgetAllCaseTypes
POSTgetAllPriorities
POSTgetCase
POSTgetCases
POSTgetMilestone
POSTgetMilestones
POSTgetPlan
POSTgetPlans
POSTgetProject
POSTgetProjectConfigs
POSTgetProjects
POSTgetResultFields
POSTgetResults
POSTgetResultsForCase
POSTgetResultsForRun
POSTgetRun
POSTgetRuns
POSTgetSection
POSTgetSections
POSTgetStatuses
POSTgetTemplates
POSTgetTest
POSTgetTestSuite
POSTgetTestSuitesForProject
POSTgetTests
POSTgetUser
POSTgetUserByEmail
POSTgetUsers
POSTupdateCase
POSTupdateConfig
POSTupdateConfigGroup
POSTupdateMilestone
POSTupdatePlan
POSTupdatePlanEntry
POSTupdateProject
POSTupdateSection
POSTupdateTestRun
POSTupdateTestSuite
POSTaddResult

Adds a new test result, comment or assigns a test. It's recommended to use add_results instead if you plan to add results for multiple tests.

Sign up to test this endpoint
Log in
Header Parameters
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
usernameCREDENTIALS
REQUIREDYour username.
apiKeyCREDENTIALS
REQUIREDYour API Key.Also you can use account password.
testIdSTRING
REQUIREDThe ID of the test.
appNameCREDENTIALS
REQUIREDYour app name. Example - rapidtest.testrail.io
Optional Parameters
defectsLIST
OPTIONALList of defects to link to the test result.
customFieldsARRAY
OPTIONALCustom fields are supported as well and must be submitted with their system name, prefixed with 'custom_'.See more in readme.
commentSTRING
OPTIONALThe comment / description for the test result.
statusIdNUMBER
OPTIONALYou can get a full list of system and custom statuses via getStatuses.
versionSTRING
OPTIONALThe version or build you tested against.
elapsedSTRING
OPTIONALThe time it took to execute the test, e.g. `30s` or `1m 45s`
assignedToIdSTRING
OPTIONALThe ID of a user the test should be assigned to.
Request Snippet
unirest.post("https://35.193.161.9:8080null")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("defects=undefined")
.send("customFields=undefined")
.send("comment=undefined")
.send("statusId=undefined")
.send("version=undefined")
.send("elapsed=undefined")
.send("assignedToId=undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response

loading...

Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://35.193.161.9:8080null")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("defects=undefined")
.send("customFields=undefined")
.send("comment=undefined")
.send("statusId=undefined")
.send("version=undefined")
.send("elapsed=undefined")
.send("assignedToId=undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication
Sign up for freeto test this endpoint
Join the world’s largest API marketplace with over half a million developers and thousands of APIs.
DiscoverAPIs
Testfrom the browser
Connectusing code snippets
Managefrom one dashboard