API for Test Cases
Get List of Testcases in Folder
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
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
tcFolderID | body | yes | FolderId of Testcase. Get it from Get List of Testcase Folder/Sub Folders | - | integer |
showAllStateEntities | body | yes | value "true" | - | boolean |
scope | body | no | Scope of Testcase, possible values project,release,cycle. Default Project | - | integer |
start | body | no | Start index of records | - | integer |
limit | body | no | Number of records per page | - | integer |
page | body | no | Page number to be displayed | - | integer |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Testcase list fetch successfully | |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Get Test Case List along with Custom Fields
POST /rest/testcases/list/viewColumns
Description
Fetch specific data of test cases with custom fields.
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
viewId | body | yes | View ID of the user for that particular project and Testcase module. View ID can be fetched from latestViews section of Getinfo API. | - | integer |
folderPath | body | yes | Path of folder whose Testcases are to be fetched | - | integer |
start | body | no | Start index of records | - | integer |
limit | body | no | Number of records per page | - | integer |
page | body | no | Page number to be displayed | - | integer |
havingSharedTestcases | body | no | True value will fetch test cases having shared testcases linked with it | - | boolean |
isForCopyPasteTestStep | body | no | This will fetch version number list of testcase's in response | - | boolean |
isForCopyPaste | body | no | Get version number list of testcase's in response | - | boolean |
showRootOnly | body | no | “true” - shows only root folder. | - | boolean |
getSubEntities | body | no | “true” - gets entities from sub-folders | - | boolean |
hideEmptyFolders | body | no | “false” - to get list of all folders. “True” - to get list of folders with 0 entries. | - | boolean |
folderSortColumn | body | no | - | boolean | |
folderSortOrder | body | no | - | boolean |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Testcase list fetched successfully | |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Get Test case Details
POST /rest/testcases/list
Description
Get details of Testcase.
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
id | body | Yes | Id of Testcase. Get it from "Get Testcase in Folder" API parameter "tcID" | - | integer |
version | body | Yes | Version number of Testcase. | - | integer |
scope | body | Yes | Scope of Testcase, possible values project,release,cycle | - | integer |
Response
Status Code | Reason | Response Model |
|---|---|---|
200 | Testcase list fetch successfully | |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
List of Test cases for Bulk Operations
POST /rest/testcases/listForBulkOperation
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
folderPath | body | yes | FolderPath of Testcase Folder whose testcases are to be listed | - | string |
showAllStateEntities | body | yes | value "true" | - | boolean |
start | body | no | Start index of records | - | integer |
limit | body | no | Number of records per page | - | integer |
page | body | no | Page number to be displayed | - | integer |
filter | body | yes | Filter test cases for respective bulk operations. The following is explanation of filters:
| *Note | string |
Note
IsShared: Default value is "0"
approvalStatus:
If approval workflow is enabled, the default value is "1".
If approval workflow is disabled, the default values is "2"
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | TestCase list fetch successfully | |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Get Test case Linked to a Requirement
POST /rest/testcases/list/forRQ
Description
Get test case list based on particular id of requirement.
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
rqID | body | no | ID of requirement | - | integer |
tsID | body | no | Id of test suite | - | integer |
start | body | no | Start index of records | - | integer |
getLinked | body | no | '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 |
showEntityWithReleaseCycle | body | no | List only Testcase which have given rqID's release and cycle | - | boolean |
limit | body | no | Number of records per page | - | integer |
page | body | no | Page number to be displayed | - | integer |
getColumns | body | no | True to get list of all available filters(System + UDF) in 'filterTemplate' field | - | boolean |
udfFilter | body | no | Apply filter on user defined fields' values | - | Array[UdfFilter] |
filter | body | no | System filters to be applied | - | Array[Filter] |
viewId | body | yes | View ID of the user for that particular project and Testcase module. View ID can be fetched from latestViews section of Getinfo API. | - | integer |
tcFolderPath | body | no | The folder path where test case is saved. | - | string |
getSubEntities | body | no | “true” to get sub-folder entities. “false” to exclude entries from sub-folders | - | boolean |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Testcase list fetch successfully | |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Get List of Issues for a Testcase
POST /rest/issues/getIssuesForTestCase
Description
Get issue list based on particular id of test case.
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
start | body | no | Start index of records | - | integer |
limit | body | no | Number of records per page | - | integer |
page | body | no | Page number to be displayed | - | integer |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Testcase list fetch successfully |
|
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Get Test Case Linked to a TestSuite
POST /rest/testcases/list/forTS
Description
Test Case list for Test Suite.
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
start | body | no | Start index of records | - | integer |
showAllStateEntities | body | no | True to get testcases of approved state only, false to get testcases of any state | - | boolean |
getLinked | body | no | 'true' to get testcases linked with this requirement, 'false' to get all testcases | - | boolean |
tsID | body | no | Id of testSuite "tsID" parameter is mandatory when "getLinked" is True. | - | integer |
showEntityWithReleaseCycle | body | no | List only those Testcases which have the same associated releases and cycles as the Testsuite | - | boolean |
limit | body | no | Number of records per page | - | integer |
page | body | no | Page number to be displayed | - | integer |
getColumns | body | no | True to get list of all available filters(System + UDF) in 'filterTemplate' field | - | boolean |
udfFilter | body | no | Apply filter on user defined fields' values | - | Array[UdfFilter] |
filter | body | no | System filters to be applied | - | Array[Filter] |
viewId | body | yes | View ID of the user for that particular project and Testcase module. View ID can be fetched from latestViews section of Getinfo API. | - | integer |
showUnlinked | body | no | True to get testcases which are not linked with currently selected testsuite(which means it will Hide already linked test cases) | - | boolean |
showUnlinkedForReleaseCycle | body | no | True to get testcases linked with selected release and cycle but not linked with testsuites present in selected release and cycle | - | boolean |
tcFolderPath | body | no | The folder path where test case is saved. | - | string |
getSubEntities | body | no | Filter of Get Sub-entities for TC | - | boolean |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Testcase list fetch successfully | |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Get Information of Parameters Associated with the Testcase Linked to a Testsuite
POST /rest/testcases/getParamDetails
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
tctsID | body | yes | tctsID for fetching linked paramIDs | - | integer |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Param Details List fetch successfully | |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
List Version Details of Test case
POST /rest/testcases/getVersionDetail
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
tcID | body | yes | Id of Testcase | - | integer |
start | body | no | Start index of records | - | integer |
limit | body | no | Number of records per page | - | integer |
page | body | no | Page number to be displayed | - | integer |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | TestCase Version detail listed successfully | |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
View Test Case Details
POST /rest/testcases/versions/{id}
Request
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
id | path | yes | Id of Testcase | - | integer |
entityId | body | yes | Id of Testcase | - | string |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Testcase detail fetch successfully | |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
List Test Case Steps
POST /rest/testcases/steps/list
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
id | body | yes | Id of Testcase | - | integer |
start | body | yes | Start index of records | - | integer |
limit | body | yes | Number of records per page | - | integer |
page | body | yes | Page number to be displayed | - | integer |
version | body | yes | Version number of Testcase | - | integer |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Test case steps shown successfully | |
500 | Returned when server connection times out | - |
Get All Versions of Testcase
POST /rest/testcases/listmanageversions
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
entityId | body | yes | Id of Testcase | - | integer |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Successfully get all versions of a Testcase | |
400 | Entity not found | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Create Testcase
POST /rest/testcases
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
tcFolderID | body | yes | FolderId of Testcase | - | string |
steps | body | no | An array of Steps | - | Array[Steps] |
name | body | yes | Summary of Testcase | - | string |
priority | body | no | PriorityID of Testcase | - | integer |
component | body | no | Component(Label) Id of Testcase | - | integer |
owner | body | no | OwnerId of Testcase | - | integer |
testCaseState | body | no | StatusId of Testcase | - | integer |
testCaseType | body | no | Id of Test Category | - | integer |
estimatedTime | body | no | Estimated Time (In Minute/s) for Execution | - | integer |
testingType | body | no | Id of TestingType | - | integer |
description | body | no | Description of Testcase | - | string |
sourceTcStepId | body | no | To copy the copied step attachment's source to destination | - | integer |
copiedStepsData | body | no | For audit log purpose. | - | Array[Steps] |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Testcase added successfully | |
400 | Invalid json object | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Update Test case(s)
PUT /rest/testcases
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
tcID | body | yes | Id of Testcase | - | string |
tcVersionID | body | yes | VersionID of Testcase | - | integer |
tcVersion | body | yes | Version number of Testcase | - | integer |
name | body | yes | Summary of Testcase | - | string |
description | body | no | Value of Description | - | string |
testCaseType | body | no | Id of TestingType | - | integer |
executionMinutes | body | no | Estimated Time (In Minutes) for Execution | - | integer |
priority | body | no | PriorityID of Testcase | - | integer |
component | body | no | Component(Label) Id of Testcase | - | integer |
owner | body | no | OwnerId of Testcase | - | integer |
testCaseState | body | no | StatusId of Testcase | - | integer |
withVersion | body | no | Pass 'true' if update test case with a newer version | - | boolean |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Test case(s) updated successfully | |
400 | Invalid json object | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Archive Testcase
/rest/testcases/archiveEntity
Description
API to archive test case based on a specific version or all versions.
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
entityIds | body | yes | An array of testcaseId or testcaseVersionId | - | Array[integer] |
isArchived | body | yes | True for archive, false for unarchive | - | boolean |
isEntityVersion | body | no | True for archive specific version of Testcase otherwise false | - | boolean |
destinationFolderIds | body | no | Specify destination folder to move the test cases before moving the test cases. | - | integer |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Testcase archive successfully | |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Delete Testcase
POST /rest/testcases/deleteEntity
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
entityIds | body | yes | An array of TestcaseId | - | Array[integer] |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Testcase deleted successfully | |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Delete a Testcase Version
POST /rest/testcases/deleteEntityVersion
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
entityId | body | yes | An array of TestcaseId | - | integer |
entityVersions | body | yes | An array of version number of the Testcase | - | Array[integer] |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Testcase version deleted successfully | |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Link Issues to Testcase
POST /rest/testcases/link/issues
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
dfIDs | body | yes | IDs of Issues to be linked with Testcase | - | Array[integer] |
tcID | body | yes | EntityKey of Testcase | - | string |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Issues successfully linked to testcase | |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Unlink Issues from Testcase
PUT /rest/testcases/unlink/issues
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
dfIDs | body | yes | An array of issue Id | - | Array[integer] |
tcID | body | yes | EntityKey of Testcase | - | string |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Unlink issue successfully | |
400 | Invalid json object or or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Get Sub Folder Information of a Particular Folder
POST /rest/testcases/tree
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
tcFolderID | body | yes | FolderID for selected folder | - | integer |
hideFolders | body | no | Flag for hide empty folders | - | boolean |
sort | body | no | Sort Folders by date or name. E.g. sort: "[{"property":"name","direction":"ASC"}]" sort: "[{"property":"createdDate","direction":"DESC"}]" | - | string |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | TestCase Folder Tree listed successfully. | |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Get Details of Test Case Folder
POST /rest/testcases/tree/data
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
tcFolderID | body | yes | FolderId of Testcase | - | integer |
isInheritFromParent | body | yes | Possible value is true or false | - | boolean |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Testcase folder detail fetch successfully | |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Create Test Case Folder
/folders
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
parentId | body | yes | Id of parent folder | - | integer |
name | body | yes | Folder Name | - | string |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Testcase folder created successfully | |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Archive Testcase Folder
POST /rest/testcases/folder/archive
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
Archive Folder Request | body | yes | Archive Folder Inputs | - | |
destinationFolderId | body | yes | Destination FolderID to move existing TC to another selected folder | - | integer |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Folder archived successfully | |
400 | Following fields are missing:tcFolderIDs | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Unarchive Testcase Folder
POST /rest/testcases/folder/unarchive
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
Unarchive Folder Request | body | yes | Unarchive Folder Inputs | - |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Folder unarchived successfully | |
400 | Following fields are missing:tcFolderIDs | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Update Test Case Folder
PUT /rest/testcases/folders
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
name | body | yes | Updated Folder name | - | string |
tcFolderID | body | yes | Unique Identifier of Testcase Folder to update | - | integer |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Testcase Folder updated successfully | |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Delete Test Case folder
POST /rest/testcases/folders/delete
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
tcFolderID | body | yes | FolderId of Testcase | - | integer |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Testcase folder deleted successfully. | |
400 | Invalid json object | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Get Release & Cycle of Test Case
PUT /rest/testcases/scope/list
Description
To view list of scope (Release/Cycle) of testcase
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
entityID | body | yes | Id of Testcase | - | integer |
start | body | yes | Start index of records | - | integer |
limit | body | yes | Number of records per page | - | integer |
page | body | yes | Page number to be displayed | - | integer |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Scope(Release/Cycle) fetch successfully | |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Add Release and Cycle to Test Case
/scope/add
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
entityId | body | yes | Id of Testcase | - | integer |
sourceBuildId | body | yes | BuildId of the Cycle associated with Release | - | integer |
sourceProjectId | body | yes | ProjectId of the Testcase | - | integer |
sourceReleaseId | body | yes | ReleaseId of the Project | - | integer |
releaseCycleMapping | body | yes | An array of release, cycle & version mapping | - | Array[ReleaseCycleMapping] |
opType | body | yes | Operation types possible value likes otherScope or current | - | string |
withVersion | body | no | Scope added with the version or not | - | boolean |
updateFlag | body | no | This flag for the scope update or not | - | boolean |
destinationProjectId | body | yes | ProjectId based on operation type, possible value likes current project or another project of the id | - | integer |
entityData | body | yes | An array of entityId & version for the Testcase | - | Array[EntityData] |
entityType | body | yes | Abbreviated entityType of Testcase - 'TC' | - | string |
sourceScope | body | yes | scope('project'/'release'/'cycle') | - | string |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Scope added to testcase successfully | |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Remove Release and Cycle from Test Case
POST /rest/testcases/scope/remove
Description
API to remove scope(release/cycle) from testcase
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
entityID | body | yes | Id of Testcase | - | integer |
sourceBuildId | body | yes | BuildId of the Cycle associated with Release | - | integer |
sourceProjectId | body | yes | ProjectId of the Testcase | - | integer |
sourceReleaseId | body | yes | ReleaseId of the Project | - | integer |
entityType | body | yes | Abbreviated entityType of Testcase - 'TC' | - | string |
opType | body | yes | Operation types possible value likes currentBuild,allBuildsInRelease,allReleases | - | string |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Remove scope successfully | |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Add Testcase Comments
POST /rest/testcases/comments
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
comments | body | yes | Comments of Testcase | - | string |
entityId | body | yes | Id of Testcase | - | integer |
entityType | body | yes | Entity Type of Testcase, default value is TC | - | string |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Comments added successfully | |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Update Testcase Comments
POST /rest/testcases/comments/update
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
comments | body | yes | Comments of Testcase | - | string |
entityId | body | yes | Id of Testcase | - | integer |
entityType | body | yes | Entity Type of Testcase, default value is TC | - | string |
commentId | body | yes | CommentId of Testcase | - | integer |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Comments updated successfully | |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Get Testcase Comments
/getCommentsData
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
entityID | body | yes | Id of Testcase | - | integer |
entityType | body | yes | Entity Type of Testcase, default value is TC | - | string |
start | body | yes | Start index of records | - | integer |
limit | body | yes | Number of records per page | - | integer |
page | body | yes | Page number to be displayed | - | integer |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Comments get successfully | |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Delete Testcase Comments
/comments/delete
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
entityID | body | yes | Id of Testcase | - | integer |
entityType | body | yes | Entity Type of Testcase, default value is TC | - | string |
commentId | body | yes | CommentId of Testcase | - | integer |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Comments deleted successfully | |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Get List of Requirements in Test Case
POST /rest/testcases/requirements/list
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
tcID | body | yes | Id of Testcase | - | integer |
start | body | yes | Start index of records | - | integer |
limit | body | yes | Number of records per page | - | integer |
page | body | yes | Page number to be displayed | - | integer |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Requirement list fetch successfully | |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Link Requirements to Testcase
PUT /rest/testcases/link/requirements
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
tcID | body | yes | Id of Testcase | - | string |
tcVersionId | body | yes | VersionId of Testcase | - | integer |
rqVersionIds | body | yes | Comma-separated list of versionId to the Requirement | - | string |
rqEntitykeys | body | no | Comma-separated list of EntityKey to the Requirement | - | string |
Response
Content-Type:application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Requirements successfully linked to testcase | |
400 | Invalid json object or entityKey | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Unlink Requirements from Testcase
PUT /rest/testcases/unlink/requirements
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
tcID | body | yes | EntityKey of Testcase | - | string |
tcVersionId | body | yes | VersionId of Testcase | - | integer |
rqVersionIds | body | yes | Comma-separated list of versionId to the Requirement | - | string |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Requirements successfully unlinked to testcase | |
400 | Invalid json object or entityKey | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
Link TestSuites to Testcase
PUT /rest/testcases/link/testsuites
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
tcID | body | yes | EntityKey of Testcase | - | string |
tsIDs | body | yes | Comma-separated value of Testsuite's EntityKey | - | string |
tcVersion | body | yes | Version number of Testcase | - | integer |
testSuiteIds | body | no | Ids of TestSuites | - | integer |
isTsSkip | body | no | If you want to skip already linked Testsuites than pass true else false | - | boolean |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Testsuites successfully linked to testcases | |
400 | Invalid json object | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
List Test Case Executions
POST /rest/testcases/execution
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
|---|---|---|---|---|---|
tcid | body | yes | Id of Testcase | - | integer |
limit | body | yes | Number of record per page | - | integer |
page | body | no | Page number to be displayed | - | integer |
start | body | yes | Start index of records | - | integer |
tcversion | body | no | Version Number of Test case | - | integer |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
|---|---|---|
200 | Successfully fetch Executions of particular testcase | ResponseEntityString |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |