Skip to content

TestObj

parkd126 edited this page Dec 11, 2018 · 6 revisions

Overview

Fields

Name Type Description Request Methods
assignedToId Int The ID of the user the test is assigned to TODO
caseId Int The ID of the related test case TODO
estimate Timespan The estimate of the related test case, e.g. "30s" or "1m 45s" TODO
estimateForecast Timespan The estimate forecast of the related test case, e.g. "30s" or "1m 45s" TODO
id Int The unique ID of the test TODO
milestoneId Int The ID of the milestone that is linked to the test case
TODO
priorityId Int The ID of the priority that is linked to the test case TODO
refs String A comma-separated list of references/requirements that are linked to the test case TODO
runId Int The ID of the test run the test belongs to TODO
statusId Int The ID of the current status of the test TODO
title String The title of the related test case TODO
typeId Int The ID of the test case type that is linked to the test case TODO
templateId Int The ID of the template (field layout) the test case uses (requires TestRail 5.2 or later) TODO
customAutomationType String TODO TODO
customExpected String TODO TODO
customPreconds String TODO TODO
customStepsSeparated List<Step> TODO TODO
customSteps String TODO TODO
customMission String TODO TODO
customGoals String TODO TODO

Methods

GET Requests:


1. getTest

Description:

Returns an existing test.

Parameters:
Name Type Description Required
testId Int The ID of the test Yes
Returns:
Example:
val someTestId = 1
val testObjFoo = TestObj().getTest(someTestId)

 

2. getTests

Description:

Returns a list of tests for a test run.

Parameters:
Name Type Description Required
runId Int The ID of the test run Yes
statusId List<Int> A comma-separated list of status IDs to filter by No
Returns:
Example:
val someRunId = 1
val actualTestObjList = TestObj().getTests(someRunId)

 

Clone this wiki locally