Back to QMetry All Products Help Page
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 Test suites for a Testcase
- 7 Get Test case linked to a TestSuite
- 8 Get information of parameters associated with the Testcase linked to a Testsuite
- 9 List Version details of Test case
- 10 View Test Case Details
- 11 List Test Case Steps
- 12 Get All Versions of Testcase
- 13 Create Testcase
- 14 Update Test case(s)
- 15 Archive Testcase
- 16 Delete Testcase
- 17 Delete a Testcase Version
- 18 Get sub folder information of a particular folder
- 19 Get Details of Test Case Folder
- 20 Create Test Case Folder
- 21 Archive Testcase Folder
- 22 Unarchive Testcase Folder
- 23 Update Test Case Folder
- 24 Delete Test Case folder
- 25 Get Release & Cycle of Test Case
- 26 Add Release & Cycle to Test Case
- 27 Remove Release & Cycle from Test Case
- 28 Add Testcase Comments
- 29 Update Testcase Comments
- 30 Get Testcase Comments
- 31 Delete Testcase Comments
- 32 Get List of Requirements in Test Case
- 33 Link Requirement(s) to Testcase
- 34 Unlink Requirement(s) fromTestcase
- 35 Link TestSuites to Testcase
- 36 List Test Case Executions
- 37 List Test Cases Linked with Shared Test Case
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 |
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 | Description | Default | Schema |
---|---|---|---|---|---|
rqID | body | no | Id of Requirement | - | 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] |
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 Test suites for a Testcase
POST /rest/testsuites/list/forTC
Description
Get list of test suites for a test case.
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
---|---|---|---|---|---|
tcID | body | no | 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 |
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]
|
Response
Content-Type: application/json
Status Code | Reason | Response Model |
---|---|---|
200 | Testsuite 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] |
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 |
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 |
limit | body | yes | Number of record per page | - | integer |
page | body | yes | Page number to be displayed | - | integer |
start | body | yes | Start index of records | - | 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 |
associateRelCyc | body | no | Pass true only when releaseCycleMapping is passed | - | boolean |
releaseCycleMapping | body | no | An array of release, cycle & version mapping (pass version as 1) | - | Array |
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 |
tcFolderID | body | yes | FolderId of Testcase | - | integer |
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 Minute/s) for Execution | - | integer |
priority | body | no | PriorityID of Testcase | - | integer |
owner | body | no | OwnerId of Testcase | - | integer |
testCaseState | body | no | StatusId of Testcase | - | integer |
component | body | no | Component(Label) Id of Testcase | - | integer |
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
POST /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 |
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 | Id of Testcase | - | 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 | - |
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 | - | 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
POST /rest/testcases/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 | - |
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 |
limit | body | yes | Number of record per page | - | integer |
page | body | yes | Page number to be displayed | - | integer |
start | body | yes | Start index of records | - | 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 & Cycle to Test Case
POST /rest/testcases/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 & 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 Testcase | - | integer |
sourceReleaseId | body | yes | ReleaseId of the Project | - | integer |
entityType | body | yes | Entity type for the testcase, the default value is 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
POST /rest/testcases/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 |
limit | body | yes | Number of record per page | - | integer |
page | body | yes | Page number to be displayed | - | integer |
start | body | yes | Start index of records | - | 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
POST /rest/testcases/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 |
limit | body | yes | Number of record per page | - | integer |
page | body | yes | Page number to be displayed | - | integer |
start | body | yes | Start index of records | - | 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 Requirement(s) to Testcase
PUT /rest/testcases/link/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 |
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 Requirement(s) fromTestcase
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 of 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 Testcase | - | integer |
Response
Content-Type: application/json
Status Code | Reason | Response Model |
---|---|---|
200 | Successfully fetch Executions of particular testcase | |
400 | Invalid json object or mandatory fields missing | - |
401 | Unauthorised or session expired | - |
500 | Returned when server connection times out | - |
List Test Cases Linked with Shared Test Case
POST /rest/testcases/list/forSharedTestcase
Request
Content-Type: application/json
Parameters
Name | Located in | Required | Description | Default | Schema |
---|---|---|---|---|---|
tcVersionID | body | yes | VersionID 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 |
getColumns | body | no | True to get list of all available filters(System + UDF) in 'filterTemplate' field | - | boolean |
filter | body | no | System filters to be applied | - | Array[Filter] |
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 | - |
Definition
ResponseEntity
name | type | required | description | example |
---|---|---|---|---|
headers | object | optional | - | |
body | object | optional | - | |
statusCode | string | optional | - |
Steps
name | type | required | description | example |
---|---|---|---|---|
orderId | integer | required | Number of Order | |
description | string | required | Value of Description | |
inputData | string | required | Value of InputData | |
expectedOutcome | string | required | Value of ExpectedOutcome | |
tcRunID | string | optional | Id of Test Run |
|
RequirementRepository
name | type | required | description | example |
---|---|---|---|---|
manager | optional | - |
ReleaseCycleMapping
name | type | required | description | example |
---|---|---|---|---|
release | integer | required | Id of Release | |
cycle | array[integer] | required | An array of cycle's Id | |
version | integer | required | Number of the version |
|
EntityData
name | type | required | description | example |
---|---|---|---|---|
entityId | integer | required | Id of Entity | |
version | integer | required | VersionId of Entity |
|
EntityManager
name | type | required | description | example |
---|---|---|---|---|
properties | object | optional | - | |
open | boolean | optional | - | |
delegate | object | optional | - | |
entityManagerFactory | optional | - | ||
joinedToTransaction | boolean | optional | - | |
criteriaBuilder | optional | - | ||
transaction | optional | - | ||
flushMode | string | optional | - | |
metamodel | optional | - |
|
EntityManagerFactory
name | type | required | description | example |
---|---|---|---|---|
properties | object | optional | - | |
cache | optional | - | ||
open | boolean | optional | - | |
criteriaBuilder | optional | - | ||
persistenceUnitUtil | optional | - | ||
metamodel | optional | - |
|
CriteriaBuilder
name | type | required | description | example |
---|
EntityTransaction
name | type | required | description | example |
---|---|---|---|---|
active | boolean | optional | - | |
rollbackOnly | boolean | optional | - |
|
Metamodel
name | type | required | description | example |
---|---|---|---|---|
entities | array[EntityTypeObject] | optional | - | |
managedTypes | array[ManagedTypeObject] | optional | - | |
embeddables | array[EmbeddableTypeObject] | optional | - |
|
Cache
name | type | required | description | example |
---|
PersistenceUnitUtil
name | type | required | description | example |
---|
EntityTypeObject
name | type | required | description | example |
---|---|---|---|---|
name | string | optional | - | |
supertype | optional | - | ||
idClassAttributes | optional | - | ||
idType | optional | - | ||
attributes | array[AttributeObjectObject] | optional | - | |
declaredAttributes | array[AttributeObjectObject] | optional | - | |
pluralAttributes | optional | - | ||
singularAttributes | optional | - | ||
declaredPluralAttributes | optional | - | ||
declaredSingularAttributes | optional | - | ||
persistenceType | string | optional | - | |
bindableType | string | optional | - |
|
EmbeddableTypeObject
name | type | required | description | example |
---|---|---|---|---|
attributes | array[AttributeObjectObject] | optional | - | |
declaredAttributes | array[AttributeObjectObject] | optional | - | |
pluralAttributes | optional | - | ||
singularAttributes | optional | - | ||
declaredPluralAttributes | optional | - | ||
declaredSingularAttributes | optional | - | ||
persistenceType | string | optional | - |
|
ManagedTypeObject
name | type | required | description | example |
---|---|---|---|---|
attributes | array[AttributeObjectObject] | optional | - | |
declaredAttributes | array[AttributeObjectObject] | optional | - | |
pluralAttributes | optional | - | ||
singularAttributes | optional | - | ||
declaredPluralAttributes | optional | - | ||
declaredSingularAttributes | optional | - | ||
persistenceType | string | optional | - |
|
IdentifiableTypeObject
name | type | required | description | example |
---|---|---|---|---|
supertype | optional | - | ||
idClassAttributes | optional | - | ||
idType | optional | - | ||
attributes | array[AttributeObjectObject] | optional | - | |
declaredAttributes | array[AttributeObjectObject] | optional | - | |
pluralAttributes | optional | - | ||
singularAttributes | optional | - | ||
declaredPluralAttributes | optional | - | ||
declaredSingularAttributes | optional | - | ||
persistenceType | string |
|
|
|
AttributeObjectObject
name | type | required | description | example |
---|---|---|---|---|
name | string | optional | - | |
declaringType | array[ManagedTypeObject] | optional | - | |
collection | boolean | optional | - | |
persistentAttributeType | string | optional | - | |
javaMember | optional | - | ||
association | boolean | optional | - |
|
SingularAttributeObjectObject
name | type | required | description | example |
---|---|---|---|---|
type | optional | - | ||
version | boolean | optional | - | |
optional | boolean | optional | - | |
id | boolean | optional | - | |
name | string | optional | - | |
declaringType | array[ManagedTypeObject] | optional | - | |
collection | boolean | optional | - | |
persistentAttributeType | string | optional | - | |
javaMember | optional | - | ||
association | boolean | optional | - | |
bindableType | string | optional | - |
|
PluralAttributeObjectObjectObject
name | type | required | description | example |
---|---|---|---|---|
elementType | optional | - | ||
collectionType | string | optional | - | |
name | string | optional | - | |
declaringType | array[ManagedTypeObject] | optional | - | |
collection | boolean | optional | - | |
persistentAttributeType | string | optional | - | |
javaMember | optional | - | ||
association | boolean | optional | - | |
bindableType | string | optional | - |
|
Member
name | type | required | description | example |
---|---|---|---|---|
modifiers | integer | optional | - | |
name | string | optional | - | |
synthetic | boolean | optional | - |
|
TypeObject
name | type | required | description | example |
---|---|---|---|---|
persistenceType | string | optional | - |
|
TcFolderArchiveRequestDetail
name | type | required | description | example |
---|---|---|---|---|
tcFolderIDs | array[integer] | required | Array of Test Case Folder Ids | |
isBulkOperation | boolean | optional | Is from BulkOperation flag | |
includeRootFolderEntities | boolean | optional | Required to include Root Folder Entities |
TcFolderUnarchiveRequestDetail
name | type | required | description | example |
---|---|---|---|---|
tcFolderIDs | array[integer] | required | Array of Test Case Folder Ids | |
isBulkOperation | boolean | optional | Is from BulkOperation flag | |
includeRootFolderEntities | boolean | optional | Required to include Root Folder Entities |
Filter
name | type | required | description | example |
---|---|---|---|---|
value | object | required | Value to search based on type of filter | |
comparison | string | required | The comparision operator 'lt' or 'gt' for Date type filter | |
type | string | required | Type of Filter | |
field | string | required | Field name on which filter is to be applied |
UdfFilter
name | type | required | description | example |
---|---|---|---|---|
type | string | required | Type of Filter | |
value | string | required | Value to search based on type of UDF | |
udfmID | integer | required | Unique Identifier based on project-module-udf-user | |
field | string | required | Name of User Defined Field |
ResponseEntityString
name | type | required | description | example |
---|---|---|---|---|
headers | object | optional | - | |
body | string | optional | - | |
statusCode | string | optional | - | |
statusCodeValue | integer | optional | - |
Back to QMetry All Products Help Page