Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
maxLevel3

...

POST /rest/testcases/list

Description

Get test case list based on particular ID of test case or folder inside all data or particular version related data.

Request

Content-Type: application/json

...

NameLocated inRequiredDescriptionDefaultSchema
viewIdbodyyesView ID of the user for that particular project and Testcase module. View ID can be fetched from latestViews section of Getinfo API.-integer
folderPathbodyyesPath of folder whose Testcases are to be fetched-string
startbodynoStart index of records-integer
limitbodynoNumber of records per page-integer
pagebodynoPage number to be displayed-integer
havingSharedTestcasesbodynoTrue value will fetch test cases having shared testcases linked with it-boolean


Response

Content-Type: application/json

...

NameLocated inRequiredDescriptionDefaultSchema
folderPathbodyyesFolderPath of Testcase Folder whose testcases are to be listed-string
startbodynoStart index of records-integer
limitbodynoNumber of records per page-integer
pagebodynoPage number to be displayed-integer
filterbodyyes

Filter test cases for respective bulk operations. The following is explanation of filters:

  • ownerAlias: Owner
  • createdByAlias: Created By
  • releaseIDs: comma separated values in case of multiple releases
  • cycleIDs: comma separated values in case of multiple cycles
  • testingTypeAlias: Testing Type (Manual/Automated)
  • testCaseStateAlias: Status
  • componentAlias: Labels
  • priorityAlias: Priorities

Example: {\"type\":\"list\",\"value\":[\"Critical\"],\"field\":\"priorityAlias\"}

  • entityKeyId: ID

Example: {\"type\":\"string\",\"comparison\":\"eq\",\"value\":\"JQ-TC-11\",\"field\":\"entityKeyId\"}

  • name: Summary

Example: {\"type\":\"string\",\"value\":\"Verify Login\",\"field\":\"name\"}

  • IsShared: Represents that displayed testcases should be sharable testcases or not. Default value is“0”

0 Does not display sharable testcases

1Displays sharable testcases

  • approvalStatus: Represents Approval workflow settings.

1 Displays test cases with “In Review” status

2 Displays test cases with “Approved” status

*Notestring

...

POST /rest/testcases/list/forRQ

Description

Get test case list based on particular id of requirement.

Request

Content-Type: application/json

...

NameLocated inRequiredDescriptionDefaultSchema
rqIDbodynoId of Requirement-integer
startbodynoStart index of records-integer
getLinkedbodyno

'True' to get only those testcases that are linked with this Requirement, 'false' to get those testcases which are not linked with this Requirement

-boolean
showEntityWithReleaseCyclebodynoList only Testcase which have given rqID's release and cycle-boolean
limitbodynoNumber of records per page-integer
pagebodynoPage number to be displayed-integer
getColumnsbodynoTrue to get list of all available filters(System + UDF) in 'filterTemplate' field-boolean
udfFilterbodynoApply filter on user defined fields' values-Array[UdfFilter]
filterbodynoSystem filters to be applied-Array[Filter]

Response

Content-Type: application/json

...

POST /rest/testsuites/list/forTC

Description

Get list of test suites for a test case.

Request

Content-Type: application/json

...

NameLocated inRequiredDescriptionDefaultSchema
startbodynoStart index of records-integer
showAllStateEntitiesbodyno

True to get testcases of approved state only, false to get testcases of any state

-boolean
getLinkedbodyno

'true' to get testcases linked with this requirement, 'false' to get all testcases

-boolean
tsIDbodyno

Id of testSuite

"tsID" parameter is mandatory when "getLinked" is True.

-integer
showEntityWithReleaseCyclebodynoList only those Testcases which have the same associated releases and cycles as the Testsuite-boolean
limitbodynoNumber of records per page-integer
pagebodynoPage number to be displayed-integer
getColumnsbodynoTrue to get list of all available filters(System + UDF) in 'filterTemplate' field-boolean
udfFilterbodynoApply filter on user defined fields' values-Array[UdfFilter]
filterbodynoSystem filters to be applied-Array[Filter]
showUnlinkedbodynoTrue to get testcases which are not linked with currently selected testsuite(which means it will Hide already linked test cases)-boolean
showUnlinkedForReleaseCyclebodynoTrue to get testcases linked with selected release and cycle but not linked with testsuites present in selected release and cycle-boolean


Response

Content-Type: application/json

...

NameLocated inRequiredDescriptionDefaultSchema
tcIDbodyyesEntityKey of Testcase-string
tcVersionIdbodyyesVersionId of Testcase-integer
rqVersionIdsbodyyesComma-separated list of versionId to the Requirement-string
rqEntitykeysbodynoComma-separated list of EntityKey to the Requirement-string

Response

Content-Type: application/json

...

NameLocated inRequiredDescriptionDefaultSchema
tcIDbodyyesEntityKey of Testcase-string
tsIDsbodyyesComma-separated value of Testsuite's EntityKey-string
tcVersionbodyyesVersion number of Testcase-integer
testSuiteIdsbodynoIds of TestSuites-integer
isTsSkipbodynoIf you want to skip already linked Testsuites than pass true else false-boolean

Response

Content-Type: application/json

...

NameLocated inRequiredDescriptionDefaultSchema
tcidbodyyesId of Testcase-integer
limitbodyyesNumber of record per page-integer
pagebodynoPage number to be displayed-integer
startbodyyesStart index of records-integer
tcversionbodynoVersion Number of Testcase-integer

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Successfully fetch Executions of particular testcaseResponseEntityString
400Invalid json object or mandatory fields missing-
401Unauthorised or session expired-
500Returned when server connection times out-

...

List Test Cases Linked with Shared Test Case

POST /rest/testcases/list/forSharedTestcase

Request

Content-Type: application/json

...

nametyperequireddescriptionexample
tcFolderIDsarray[integer]requiredArray of Test Case Folder Ids
isBulkOperationbooleanoptionalIs from BulkOperation flag
includeRootFolderEntitiesbooleanoptionalRequired to include Root Folder Entities

...

nametyperequireddescriptionexample
tcFolderIDsarray[integer]requiredArray of Test Case Folder Ids
isBulkOperationbooleanoptionalIs from BulkOperation flag
includeRootFolderEntitiesbooleanoptionalRequired to include Root Folder Entities
Filter
Anchor
Filter
Filter
nametyperequireddescriptionexample
valueobjectrequiredValue to search based on type of filter
comparisonstringrequiredThe comparision operator 'lt' or 'gt' for Date type filter
typestringrequiredType of Filter
fieldstringrequiredField name on which filter is to be applied

...

nametyperequireddescriptionexample
typestringrequiredType of Filter
valuestringrequiredValue to search based on type of UDF
udfmIDintegerrequiredUnique Identifier based on project-module-udf-user
fieldstringrequiredName of User Defined Field


ResponseEntityString
Anchor
ResString
ResString
nametyperequireddescriptionexample
headersobjectoptional-
bodystringoptional-
statusCodestringoptional-
statusCodeValueintegeroptional-