API for Test Cases
- 1 Get List of Testcases in Folder
- 2 Get Test Case List along with Custom Fields
- 3 Get Test case Details
- 4 List of Test case(s) for Bulk Operations
- 5 Get Test case linked to a Requirement
- 6 Get List of Issues for a Testcase
- 7 Get Test case linked to a TestSuite
- 8 Bulk Reuse
- 9 Get information of parameters associated with the Testcase linked to a Testsuite
- 10 List Version details of Test case
- 11 View Test Case Details
- 12 List Test Case Steps
- 13 Get All Versions of Testcase
- 14 Create Testcase
- 15 Update Test case(s)
- 16 Archive Testcase
- 17 Delete Testcase
- 18 Delete a Testcase Version
- 19 Link Issue(s) to Testcase
- 20 Unlink Issue(s) from Testcase
- 21 Get sub folder information of a particular folder
- 22 Get Details of Test Case Folder
- 23 Create Test Case Folder
- 24 Archive Testcase Folder
- 25 Unarchive Testcase Folder
- 26 Update Test Case Folder
- 27 Delete Test Case folder
- 28 Get Release & Cycle of Test Case
- 29 Add Release & Cycle to Test Case
- 30 Remove Release & Cycle from Test Case
- 31 Add Testcase Comments
- 32 Update Testcase Comments
- 33 Get Testcase Comments
- 34 Delete Testcase Comments
- 35 Get List of Requirements in Test Case
- 36 Link Requirement(s) to Testcase
- 37 Unlink Requirement(s) fromTestcase
- 38 Link TestSuites to Testcase
- 39 List Test Case Executions
- 40 List Test Cases Linked with Shared Test Case
- 41 Reordering Test Cases
- 42 Reusing 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 |
|---|---|---|---|---|---|
id | body | yes | Id of Testcase | - | integer |
version | body | yes | Version number 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 |
tcFolderID | body | no | FolderId of Testcase | - | integer |
scope | body | yes | Scope of Testcase, possible values project,release,cycle | - | 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 | - | string |
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
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 | - |
List of Test case(s) 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:
Example: {\"type\":\"list\",\"value\":[\"Critical\"],\"field\":\"priorityAlias\"}
Example: {\"type\":\"string\",\"comparison\":\"eq\",\"value\":\"JQ-TC-11\",\"field\":\"entityKeyId\"}
Example: {\"type\":\"string\",\"value\":\"Verify Login\",\"field\":\"name\"}
0 Does not display sharable testcases 1 Displays sharable testcases
1 Displays test cases with “In Review” status 2 Displays test cases with “Approved” status | *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 |
|---|