API changes from v8.5.6.1 to v8.6.1

With the new and upcoming releases of QMetry, we continue to add exciting and useful new features that improve usability. With the new features and improvements being added to QMetry also necessitates changes in the APIs. This page enlists such APIs that will be changed from version 8.5.6.1 to 8.6.1. The purpose of this document is to help Integration Teams keep their code updated and current with the API changes/updates to the existing APIs. In case you do not use any of these APIs, these changes can be safely ignored.


Summarized API changes

API NameREST URLMethodBackward compatibility with 8.5.4Request Change

Response Change

Copy a Test Suite/rest/testsuites/copyPUTYesYesNo
Get list of Test Suites for a Test Case/rest/testsuites/list/forTCPOSTNoNoYes
Link Requirement(s) with Test Case/rest/testcases/link/requirementPUTYesYesNo

Link Test Case(s) to Requirement

/rest/requirements/link/testcasesPUTYesYesNo
Link Test Suite(s) to Test Case/rest/testcases/link/testsuitesPUTYesYesNo
Link Test Case(s) to Test Suite/rest/testsuites/dolink/TCsPUTYesYesNo

Updated APIs

Copy a Test Suite

API/rest/testsuites/copy
MethodPUT
Impact of changeLow
Backward CompatibilityYes
Reason for change

With introduction to the ability to copy Test Suite with the more options like below several new parameters are introduced in the API request.

  • optionally copy platforms
  • copy platforms with selected Execution Status
  • optionally copy release cycle
  • copy/sync latest version of linked test case
  • optionally reset executions to Not Run
  • optionally remove the assigned user, new flags below have been introduced in the request body.
Changes

New parameter flags

  • isPlatformCopy
  • isPlatformCopyWithSelctedStatus
  • executionStatusIds
  • executionStatusIds
  • isReleaseCycleCopy
  • isLatestVersionSync
  • isResetToNotrun
  • isResetAssignee


Version 8.5.4Version 8.6
Request Body
{
	"srcFolderId": 1097,
	"destFolderId": 1097,
	"id": "193755"
}
Request Body
{
	"srcFolderId": 169,
	"destFolderId": 184,
	"id": "855",
	"isPlatformCopy": true,
	"executionStatusIds": [515, 514, 519, 516, 518],
	"isReleaseCycleCopy": true,
	"isLatestVersionSync": true,
	"isPlatformCopyWithSelctedStatus": true,
	"isResetToNotrun": true,
	"isResetAssignee": false
}

Get list of Test Suites to be linked in a Test Case

API/rest/testsuites/list/forTC
MethodPOST
Impact of changeLow
Backward CompatibilityNo
Reason for changeMultiple boolean flags are added in the response in regards to the confirmation message validation check for release, cycle or archived platforms in test suites
ChangesAdded the following boolean flags in the response:
  • isCycleArchived
  • isReleaseArchived
  • isAnyPlatRelCycArchived
Version 8.5.4Version 8.6
Response Body
{
	"tsID": 193754,
	"projectID": 578,
	"entityKey": "PLA-TS-27",
	"tsFolderID": 1097,
	"name": "iMobile Pay Suite",
	"linkedTcCount": 2,
	"linkedPlatform": 1,
	"platform": "Android,Firefox,Google Chrome,Internet Explorer,Safari",
	"attachmentCount": 0,
	"releaseNameList": "Pro,Macro",
	"cycleNameList": "Pro Q1-20,Alpha Macro",
	"createdDate": "02-21-2020 22:16:54",
	"createdBy": "John",
	"createdByAlias": "john",
	"isPlatformArchived": false,
	"isArchived": false,
	"canLink": true
}
Response Body
{
	"tsID": 5145,
	"projectID": 74,
	"entityKey": "FIT-TS-14",
	"tsFolderID": 169,
	"name": "iMobile Pay Suite",
	"linkedTcCount": 36,
	"linkedPlatform": 5,
	"platform": "Android,Firefox,Google Chrome,Internet Explorer,Safari",
	"attachmentCount": 0,
	"releaseNameList": "Pro,Macro",
	"cycleNameList": "Pro Q1-20,Alpha Macro",
	"createdDate": "27-02-2020 05:23:00 PM",
	"createdBy": "Jane",
	"createdByAlias": "jane",
	"ownerAlias": "jane",
	"testSuiteState": 9751,
	"testSuiteStateAlias": "In Progress",
	"isCycleArchived": true,
	"isReleaseArchived": true,
	"isPlatformArchived": false,
	"isArchived": false,
	"canLink": false,
	"isAnyPlatRelCycArchived": true
}

Link Requirement(s) to Test Case

API/rest/testcases/link/requirement
MethodPUT
Impact of changeLow
Backward CompatibilityYes
Reason for changeWith introduction feature to be able to link Requirement(s) to a Test Case using the Requirement Entity Key directly, with the Version 8.6, a new parameter is introduced to pass the requirement(s) key as comma separated values through Rest API.
ChangesAbility to use the option "rqEntitykeys" in the request to specify one or more requirement key.
Version 8.5.4Version 8.6
Request Body
{
	"tcID": "PLA-TC-42",
	"tcVersionId": 1626274,
	"rqVersionIds": "546473,546472"
}
Request Body
{
	"tcID": "FIT-TC-8",
	"tcVersionId": 203819,
	"rqEntitykeys": "FIT-RQ-1,FIT-RQ-2"
}

Link Test Case(s) to Requirement

API/rest/requirements/link/testcases
MethodPUT
Impact of changeLow
Backward CompatibilityYes
Reason for changeWith introduction of feature to be able to link Test Case(s) to a Requirement using the Test Case's Entity Key directly, with the Version 8.6, an option is introduced to pass the test case(s) key as comma separated values through Rest API.
ChangesAbility to use the option "tcEntitykeys" in the request to specify one or more test case key.
Version 8.5.4Version 8.6
Request Body
{
	"rqID": "PLA-RQ-2035",
	"rqVersionId": 546473,
	"tcVersionIds": "1757615,1757614,1757613"
}
Request Body
{
	"rqID": "FIT-RQ-1",
	"rqVersionId": 876240,
	"tcEntitykeys": "FIT-TC-9,FIT-TC-10,FIT-TC-11"
}

Link Test Suite(s) to Test Case

API/rest/testcases/link/testsuites
MethodPUT
Impact of changeLow
Backward CompatibilityYes
Reason for changeWith introduction of feature to be able to link Test Suites(s) to a Test Case using the Test Suite's Entity Key directly, with the Version 8.6, an option is introduced to pass the test suite(s) key as comma separated values through Rest API.
ChangesAbility to use the option "tsIDs" in the request to specify one or more test suite key.
Version 8.5.4Version 8.6
Request Body
{
	"tcID": "PLA-TC-40",
	"tsIDs": "PLA-TS-30,PLA-TS-29",
	"tcVersion": 2,
	"testSuiteIds": [193945, 193944]
}
Request Body
{
	"tcID": "FIT-TC-59",
	"tcVersion": 1,
	"tsIDs": "FIT-TS-7,FIT-TS-8",
}

Link Test Case(s) to Test Suite

API/rest/testsuites/dolink/TCs
MethodPUT
Impact of changeLow
Backward CompatibilityNo
Reason for changeWith introduction to be able to link Test Case(s) to a Test Suite using the Test Case's Entity Key directly, with the Version 8.6, an option is introduced to pass the test case(s) key as comma separated values through Rest API.
ChangesAbility to use the option "tcEntitykeys" in the request to specify one or more test case key.
Version 8.5.4Version 8.6
Request Body
{
	"tsID": 193944,
	"tcvdIDs": [1757616, 1757614, 1757615],
	"fromReqs": false
}
Request Body
{
	"tsID": 5087,
	"isTcSkip": true,
	"tcEntitykeys": "FIT-TC-3,FIT-TC-4"
}

Common Changes to Request of Following APIs

APIs/rest/requirements/list/viewColumns
/rest/testcases/list/viewColumns
/rest/testsuites/list/viewColumns
/rest/execution/list/viewColumns
/rest/issues/list/viewColumns
/rest/testcases/list/forRQ
/rest/issues/list/ForRQ
/rest/requirements/list/forTC
/rest/testsuites/list/forTC
/rest/requirements/list/forTS
/rest/testcases/list/forTS
/rest/execution/issue/list/forTCStepRun
/rest/execution/issue/list/forTCRun
/rest/requirements/list/forIS
/rest/search
MethodPOST
Impact of changeLow
Backward CompatibilityYes
Reason for changeAbility to search assets in filters by using comma separated entity IDs.
Changes to Request Body
Filter object now supports passing entity keys comma separated for search:
"filter": "[{\"type\":\"string\",\"value\":\"QTM-RQ-20, QTM-RQ-21\",\"field\":\"entityKeyId\"}]"
OR
"filter": "[{\"type\":\"string\",\"value\":\"20,21\",\"field\":\"entityKeyId\"}]"

Deprecated APIs

API NameDeprecated REST LinkAlternate REST Link
Get list of test run under execution/rest/execution/list/tcr/rest/execution/list/viewColumns
Get list of issues linked on Execution or Available for linking/rest/execution/issue/list
  • (Get list of Issue available for linking or already linked to Test case Run)
    /rest/execution/issue/list/forTCRun
  • (Get list of issue available for linking or already linked to Test case Step Run)
    /rest/execution/issue/list/forTCStepRun
Upload Attachment/rest/attachments/reference/rest/attachments
Update Parameter/rest/parameter/deleteValue/{parameterValueID}/rest/parameter/update/{paramID}
Fetch Testcases linked with RQ/rest/requirements/testcase/list/rest/testcases/list/forRQ
Search Entities/rest/search/result/rest/search