Test Case in Run
Get available test cases to add to run
List the cases within a given suite that are available to add into Run. This excludes the cases already in Run.
This accepts a parent node as a starting point for searching, which can be Test suite or Test folder, then it will returns all the available nodes (Test folders and Test cases) of this parent node.
For a test folder you might have in the response, you can continually use this endpoint to search recursively until all test cases are found.
This is not applicable for closed run
Notice: TMT currently uses this operation to travel the test case tree. Thus it can reused by API Client to get the test cases of a suite too. However, this "tree traversal" process might too complicated for API client, then this operation is subject to change by providing a new operation for easily getting all test cases of a suite in Run
Authorizations:
header Parameters
Project-Id required | string Project Id or the project document reference |
Subproject-Id | string Sub Project Id or the project document reference. It might be required if you want to access the sub project's resource |
Request Body schema: application/jsonrequired
id required | string id of the operation |
jsonrpc required | string must be 2.0 |
method required | string LIST_MULTIPLE_LINKS_TEST_CASES_IN_RUN |
required | object test run document reference |
Responses
Request samples
- Payload
{- "jsonrpc": "2.0",
- "id": "LIST_MULTIPLE_LINKS_TEST_CASES_IN_RUN_ed21f0f4-906b-4eec-9978-1e4777d4356c",
- "method": "LIST_MULTIPLE_LINKS_TEST_CASES_IN_RUN",
- "params": {
- "filter": { },
- "sort": { },
- "testRunFilter": {
- "testRunDocRef": "TestRun-dm/3b53beea-a611-462c-9553-703c4df4d669",
- "isTestCaseFilter": false,
- "resultDocumentModel": "TestRunTestCaseTestCase-dm"
}, - "sources": [
- {
- "docRef": "TestSuite-dm/20744",
- "relationshipModel": "TestSuiteTestCaseFolder-rm",
- "role": "TestSuite"
}
]
}
}
Response samples
- 200
{- "jsonrpc": "2.0",
- "id": "LIST_MULTIPLE_LINKS_TEST_CASES_IN_RUN_ed21f0f4-906b-4eec-9978-1e4777d4356c",
- "result": [
- {
- "source": {
- "relationshipModel": "TestSuiteTestCaseFolder-rm",
- "role": "TestSuite",
- "docRef": "TestSuite-dm/20744"
}, - "linkResultEntries": {
- "fullSize": 4,
- "page": {
- "offset": 0,
- "limit": 4
}, - "entries": [
- {
- "linkRef": {
- "linkDescriptor": {
- "relationshipModel": "TestSuiteTestCaseFolder-rm",
- "entities": [
- {
- "role": "TestSuite",
- "modelName": "TestSuite-dm",
- "docRef": "TestSuite-dm/20744"
}, - {
- "role": "TestCaseFolderSupertype",
- "modelName": "TestCase-dm",
- "docRef": "TestCase-dm/20760"
}
], - "predecessorLinkRef": null,
- "position": "TOP"
}, - "id": "19441"
}, - "document": {
- "target": {
- "Root": {
- "General": {
- "Title": "Filtering",
- "Id": "C_36",
- "Status": "NEW",
- "ImportantAdditionForNextTestRun": false
}, - "Criteria": {
- "TimeRelevance": false
}, - "Risk": {
- "RiskLevel": "UNDEFINED",
- "CombinationLikelihoodImpact": "null__null"
}
}
}
}
}, - {
- "linkRef": {
- "linkDescriptor": {
- "relationshipModel": "TestSuiteTestCaseFolder-rm",
- "entities": [
- {
- "role": "TestSuite",
- "modelName": "TestSuite-dm",
- "docRef": "TestSuite-dm/20744"
}, - {
- "role": "TestCaseFolderSupertype",
- "modelName": "TestCase-dm",
- "docRef": "TestCase-dm/20758"
}
], - "predecessorLinkRef": null,
- "position": "TOP"
}, - "id": "19442"
}, - "document": {
- "target": {
- "Root": {
- "General": {
- "Title": "Update Product, Update Index",
- "Id": "C_37",
- "Status": "NEW",
- "ImportantAdditionForNextTestRun": false
}, - "Criteria": {
- "TimeRelevance": false
}, - "Risk": {
- "RiskLevel": "UNDEFINED",
- "CombinationLikelihoodImpact": "null__null"
}
}
}
}
}, - {
- "linkRef": {
- "linkDescriptor": {
- "relationshipModel": "TestSuiteTestCaseFolder-rm",
- "entities": [
- {
- "role": "TestSuite",
- "modelName": "TestSuite-dm",
- "docRef": "TestSuite-dm/20744"
}, - {
- "role": "TestCaseFolderSupertype",
- "modelName": "TestCase-dm",
- "docRef": "TestCase-dm/20755"
}
], - "predecessorLinkRef": null,
- "position": "TOP"
}, - "id": "19443"
}, - "document": {
- "target": {
- "Root": {
- "General": {
- "Title": "Sold-out Products",
- "Id": "C_38",
- "Status": "NEW",
- "ImportantAdditionForNextTestRun": false
}, - "Criteria": {
- "TimeRelevance": false
}, - "Risk": {
- "RiskLevel": "UNDEFINED",
- "CombinationLikelihoodImpact": "null__null"
}
}
}
}
}, - {
- "linkRef": {
- "linkDescriptor": {
- "relationshipModel": "TestSuiteTestCaseFolder-rm",
- "entities": [
- {
- "role": "TestSuite",
- "modelName": "TestSuite-dm",
- "docRef": "TestSuite-dm/20744"
}, - {
- "role": "TestCaseFolderSupertype",
- "modelName": "TestFolder-dm",
- "docRef": "TestFolder-dm/f533a52b-2cf6-4c99-b3e5-e6e4a4c4ed78"
}
], - "predecessorLinkRef": null,
- "position": "TOP"
}, - "id": "947755"
}, - "document": {
- "target": {
- "Root": {
- "General": {
- "Title": "search",
- "Id": "F_4",
- "Description": ""
}
}
}
}
}
]
}
}
]
}
Get test case execution detail
Return detailed information of a test execution document
Authorizations:
header Parameters
Project-Id required | string Project Id or the project document reference |
Subproject-Id | string Sub Project Id or the project document reference. It might be required if you want to access the sub project's resource |
Request Body schema: application/jsonrequired
id required | string id of the operation |
jsonrpc required | string must be 2.0 |
method required | string GET_TEST_CASE_EXECUTION |
required | object |
Responses
Request samples
- Payload
{- "jsonrpc": "2.0",
- "id": "GET_TEST_CASE_EXECUTION_55e7567c-c3ff-4c76-904f-05508a7bddda",
- "method": "GET_TEST_CASE_EXECUTION",
- "params": {
- "testRunDocRef": "TestRun-dm/3b53beea-a611-462c-9553-703c4df4d669",
- "testCaseDocRef": "TestCase-dm/20766"
}
}
Response samples
- 200
{- "jsonrpc": "2.0",
- "id": "GET_TEST_CASE_EXECUTION_55e7567c-c3ff-4c76-904f-05508a7bddda",
- "result": {
- "docRef": "TestRunTestCaseTestCase-dm/947761",
- "documentModelName": "TestRunTestCaseTestCase-dm",
- "document": {
- "target": {
- "Root": {
- "Criteria": {
- "TimeRelevance": false,
- "Dependency": "INTERRELATION",
- "Tags": "search,basic",
- "SearchableTags": "|[search]|,|[basic]|",
- "Assignment": [
- {
- "value": "CUSTOMER_APPROVAL"
}
], - "AdditionalToolsAids": [
- {
- "value": "DATABASE"
}, - {
- "value": "IMPORT_FILE"
}, - {
- "value": "SCRIPT"
}
], - "SearchTags": [
- {
- "Value": "search"
}, - {
- "Value": "basic"
}
], - "TestFocus": [
- {
- "value": "CALCULATION"
}
]
}, - "General": {
- "ImportantAdditionForNextTestRun": true,
- "Status": "NEW",
- "ProjectId": "P_9",
- "ProjectVersionNumber": "1.2.0",
- "SubprojectId": "SP_1",
- "TestSuiteId": "S_5",
- "Title": "Simple search",
- "Id": "C_34",
- "TechnicalId": "d36ab1ba-62b2-4ee0-aac5-3c596e4c61b1",
- "TenantId": "T_1",
- "HasAssignee": true,
- "User": "viethuynh",
- "Type": "FUNCTIONAL",
- "Automation": "TO_BE_EVALUATED",
- "Prioritization": "MANDATORY",
- "EstimatedExecutionTime": 15,
- "Description": "Basis seach test"
}, - "AdditionalInfo": {
- "TriggeredBy": "peter.lange",
- "TriggeredAt": 1691563510046,
- "CreatingEvent": "NEW_VERSION_CREATED",
- "Path": "mgm Webshop$###$Web Frontend$###$04 Browse and search products$###$Simple search",
- "CurrentPath": "TestSuite-dm/5860",
- "SourceTestCaseInfo": {
- "Id": "C_34",
- "TenantId": "T_1",
- "ProjectId": "P_9",
- "SubprojectId": "SP_1",
- "ProjectVersionNumber": "1.1.0"
}
}, - "Metadata": {
- "CreatedBy": "peter.parker",
- "DisplayCreatedOn": "2023-03-07T13:04:35",
- "CreatedOn": 1678194275028,
- "EditedBy": "trung",
- "DisplayEditedOn": "2024-11-14T07:58:33",
- "EditedOn": 1731571113058,
- "IsImported": false,
- "AssignedToVersion": {
- "AssignedToNumber": "1.2.0",
- "AssignedToTitle": "August 2023"
}
}, - "Risk": {
- "RiskLevel": "UNDEFINED",
- "CombinationLikelihoodImpact": "null__null"
}, - "Sources": {
- "Tickets": "TMT-123"
}, - "TestSteps": [
- {
- "No": 1,
- "Id": "44c23d35-8ff8-4e94-ad98-74720c1f155c",
- "Action": "enter product title \"abc\"",
- "ExpectedResult": "return products containing the \"abc\" in the title"
}
]
}, - "__meta": {
- "creator": "SYSTEM",
- "modifier": "trung",
- "docRef": "TestCase-dm/20766",
- "modelReference": "TestCase-dm",
- "createdAt": "2023-08-09T06:45:10",
- "modifiedAt": "2024-11-14T07:58:32",
- "modelVersion": null
}, - "docRef": "TestCase-dm/20766"
}, - "relationship": {
- "id": "TestRunTestCaseAdditionalFields-dm",
- "Root": {
- "General": {
- "TenantId": "T_1",
- "Result": "1",
- "TestRunDocRef": "TestRun-dm/3b53beea-a611-462c-9553-703c4df4d669",
- "TestSuiteDocRef": "TestSuite-dm/20744",
- "TestCaseDocRef": "TestCase-dm/20766",
- "Id": "RC_2",
- "ProjectId": "P_9",
- "SubprojectId": "SP_1",
- "ResultDetails": null,
- "Defects": null,
- "HasTester": false
}, - "Metadata": {
- "CreatedBy": "trung",
- "DisplayCreatedOn": "2024-11-14T06:58:05",
- "CreatedOn": 1731567485440,
- "EditedBy": "trung",
- "DisplayEditedOn": "2024-11-14T06:58:05",
- "EditedOn": 1731567485440,
- "LatestTestCaseExecutionData": {
- "TestRunId": "R_4",
- "TestCaseId": "C_34",
- "TestCaseTitle": "Simple search"
}
}, - "TestSteps": [
- {
- "Id": "44c23d35-8ff8-4e94-ad98-74720c1f155c",
- "Result": "1",
- "Number": 1
}
]
}, - "__meta": {
- "creator": "trung",
- "modifier": "trung",
- "createdAt": "2024-11-14T06:58:05",
- "modifiedAt": "2024-11-14T06:58:05",
- "modelReference": "TestRunTestCaseAdditionalFields-dm",
- "docRef": "TestRunTestCaseAdditionalFields-dm/b2480120-3f21-4001-81bc-9f8e8801d3fa",
- "modelVersion": null
}, - "docRef": "TestRunTestCaseAdditionalFields-dm/b2480120-3f21-4001-81bc-9f8e8801d3fa"
}
}
}
}
Get test case executions
Return detailed information of multiple test execution documents
Authorizations:
header Parameters
Project-Id required | string Project Id or the project document reference |
Subproject-Id | string Sub Project Id or the project document reference. It might be required if you want to access the sub project's resource |
Request Body schema: application/jsonrequired
id required | string id of the operation |
jsonrpc required | string must be 2.0 |
method required | string GET_TEST_CASE_EXECUTIONS |
required | object |
Responses
Request samples
- Payload
{- "jsonrpc": "2.0",
- "id": "GetTestExecutionsOperation",
- "method": "GET_TEST_EXECUTIONS",
- "params": {
- "testRunDocRef": "TestRun-dm/3b53beea-a611-462c-9553-703c4df4d669",
- "page": {
- "offset": 0,
- "limit": 10
}
}
}
Response samples
- 200
{- "jsonrpc": "2.0",
- "id": "GetTestExecutionsOperation",
- "result": {
- "fullSize": 3,
- "page": {
- "offset": 0,
- "limit": 10
}, - "entries": [
- {
- "docRef": "TestRunTestCaseAdditionalFields-dm/502a7144-60b4-4e42-93af-649793c6f7c1",
- "documentModelName": "TestRunTestCaseAdditionalFields-dm",
- "document": {
- "id": "TestRunTestCaseAdditionalFields-dm",
- "Root": {
- "General": {
- "TenantId": "T_1",
- "Result": "1",
- "TestRunDocRef": "TestRun-dm/3b53beea-a611-462c-9553-703c4df4d669",
- "TestSuiteDocRef": "TestSuite-dm/20744",
- "TestCaseDocRef": "TestCase-dm/20763",
- "Id": "RC_5",
- "ProjectId": "P_9",
- "SubprojectId": "SP_1",
- "ResultDetails": null,
- "Defects": null,
- "HasTester": false
}, - "Metadata": {
- "CreatedBy": "tmtdev",
- "DisplayCreatedOn": "2024-11-14T07:12:08",
- "CreatedOn": 1731568328343,
- "EditedBy": "tmtdev",
- "DisplayEditedOn": "2024-11-14T07:12:08",
- "EditedOn": 1731568328343,
- "LatestTestCaseExecutionData": {
- "TestRunId": "R_4",
- "TestCaseId": "C_35",
- "TestCaseTitle": "Advanced Search"
}
}, - "TestSteps": [
- {
- "Id": "b1479160-2865-49ae-b437-0aa9c1a6af51",
- "Result": "1",
- "Number": 1
}
], - "DisplayFields": {
- "TesterDisplayName": ""
}
}, - "__meta": {
- "creator": "tmtdev",
- "modifier": "tmtdev",
- "createdAt": "2024-11-14T07:12:08",
- "modifiedAt": "2024-11-14T07:12:08",
- "modelReference": "TestRunTestCaseAdditionalFields-dm",
- "docRef": "TestRunTestCaseAdditionalFields-dm/502a7144-60b4-4e42-93af-649793c6f7c1",
- "modelVersion": null
}
}
}, - {
- "docRef": "TestRunTestCaseAdditionalFields-dm/1662df01-7cfb-41a2-8f4f-1e2e1d5a4af3",
- "documentModelName": "TestRunTestCaseAdditionalFields-dm",
- "document": {
- "id": "TestRunTestCaseAdditionalFields-dm",
- "Root": {
- "General": {
- "TenantId": "T_1",
- "Result": "1",
- "TestRunDocRef": "TestRun-dm/3b53beea-a611-462c-9553-703c4df4d669",
- "TestSuiteDocRef": "TestSuite-dm/20744",
- "TestCaseDocRef": "TestCase-dm/20758",
- "Id": "RC_4",
- "ProjectId": "P_9",
- "SubprojectId": "SP_1",
- "ResultDetails": null,
- "Defects": null,
- "HasTester": false
}, - "Metadata": {
- "CreatedBy": "trung",
- "DisplayCreatedOn": "2024-11-14T07:00:58",
- "CreatedOn": 1731567658860,
- "EditedBy": "trung",
- "DisplayEditedOn": "2024-11-14T07:00:58",
- "EditedOn": 1731567658860,
- "LatestTestCaseExecutionData": {
- "TestRunId": "R_4",
- "TestCaseId": "C_37",
- "TestCaseTitle": "Update Product, Update Index"
}
}, - "TestSteps": [
- {
- "Id": "76cef20c-c068-4993-a2cc-9360353931bb",
- "Result": "1",
- "Number": 1
}
], - "DisplayFields": {
- "TesterDisplayName": ""
}
}, - "__meta": {
- "creator": "trung",
- "modifier": "trung",
- "createdAt": "2024-11-14T07:00:58",
- "modifiedAt": "2024-11-14T07:00:58",
- "modelReference": "TestRunTestCaseAdditionalFields-dm",
- "docRef": "TestRunTestCaseAdditionalFields-dm/1662df01-7cfb-41a2-8f4f-1e2e1d5a4af3",
- "modelVersion": null
}
}
}
]
}
}
Add test cases to run
Add test cases of a test suite into a test run
Notice:
- This is not applicable for closed test run
- All test cases must be in the same suite
- The test suite must be added into the Run first before adding TC to Run
Authorizations:
header Parameters
Project-Id required | string Project Id or the project document reference |
Subproject-Id | string Sub Project Id or the project document reference. It might be required if you want to access the sub project's resource |
Request Body schema: application/jsonrequired
id required | string id of the operation |
jsonrpc required | string must be 2.0 |
method required | string ADD_TEST_CASES_TO_RUN |
required | object |
Responses
Request samples
- Payload
{- "id": "ADD_TEST_CASES_TO_RUN_1",
- "method": "ADD_TEST_CASES_TO_RUN",
- "params": {
- "testRunDocRef": "TestRun-dm/3b53beea-a611-462c-9553-703c4df4d669",
- "testCaseDocRefs": [
- "TestCase-dm/20760",
- "TestCase-dm/20755"
]
}
}
Response samples
- 200
{- "jsonrpc": "2.0",
- "id": "ADD_TEST_CASES_TO_RUN_1",
- "result": null
}
Add test cases to run by id
Add test cases of a test suite into a test run by using test case's id
Notice:
- This is not applicable for closed test run
- All test cases must be in the same suite
- Test suites cointaing test cases which were not added to the test run yet will be added automatically
Authorizations:
header Parameters
Project-Id required | string Project Id or the project document reference |
Subproject-Id | string Sub Project Id or the project document reference. It might be required if you want to access the sub project's resource |
Request Body schema: application/jsonrequired
id required | string id of the operation |
jsonrpc required | string must be 2.0 |
method required | string ADD_TEST_CASES_TO_RUN_BY_ID |
required | object |
Responses
Request samples
- Payload
{- "id": "ADD_TEST_CASES_TO_RUN_1",
- "method": "ADD_TEST_CASES_TO_RUN_BY_ID",
- "params": {
- "testRunId": "R_4",
- "testCaseIds": [
- "C_35",
- "C_38"
]
}
}
Response samples
- 200
{- "jsonrpc": "2.0",
- "id": "ADD_TEST_CASES_TO_RUN_1",
- "result": null
}
Add test cases to run async by id
Add test cases of a test suite into a test run. The process submit a task request to add the test case into Run asynchronously. The operation simply returns the document reference of the task request. Which you can refer to get the task status.
Notice:
- This is not applicable for closed test run
- All test cases must be in the same suite
- Test suites containing test cases which were not added to the test run yet will be added automatically
Authorizations:
header Parameters
Project-Id required | string Project Id or the project document reference |
Subproject-Id | string Sub Project Id or the project document reference. It might be required if you want to access the sub project's resource |
Request Body schema: application/jsonrequired
id required | string id of the operation |
jsonrpc required | string must be 2.0 |
method required | string ADD_TEST_CASES_TO_RUN_BY_ID |
required | object |
Responses
Request samples
- Payload
{- "id": "ADD_TEST_CASES_TO_RUN_1",
- "method": "ADD_TEST_CASES_TO_RUN_BY_ID",
- "params": {
- "testRunId": "R_4",
- "testCaseIds": [
- "C_35",
- "C_38"
]
}
}
Response samples
- 200
{- "jsonrpc": "2.0",
- "id": "ADD_TEST_CASES_TO_RUN_1",
- "result": null
}
Delete test cases from run
Delete test cases from run. This is not applicable for closed test run
Authorizations:
header Parameters
Project-Id required | string Project Id or the project document reference |
Subproject-Id | string Sub Project Id or the project document reference. It might be required if you want to access the sub project's resource |
Request Body schema: application/jsonrequired
id required | string id of the operation |
jsonrpc required | string must be 2.0 |
method required | string DELETE_TEST_CASES_FROM_RUN |
required | object |
Responses
Request samples
- Payload
{- "id": "DELETE_TEST_CASES_FROM_RUN-1",
- "method": "DELETE_TEST_CASES_FROM_RUN",
- "params": {
- "testRunDocRef": "TestRun-dm/3b53beea-a611-462c-9553-703c4df4d669",
- "testCaseDocRefs": [
- "TestCase-dm/20760",
- "TestCase-dm/20755"
]
}
}
Response samples
- 200
{- "jsonrpc": "2.0",
- "id": "ADD_TEST_CASES_TO_RUN_1",
- "result": null
}
Update a test case execution
Update content of a test case execution. This is not applicable for closed test run
Notice: The result must be not Untested during the update test execution
Authorizations:
header Parameters
Project-Id required | string Project Id or the project document reference |
Subproject-Id | string Sub Project Id or the project document reference. It might be required if you want to access the sub project's resource |
Request Body schema: application/jsonrequired
id required | string id of the operation |
jsonrpc required | string must be 2.0 |
method required | string SAVE_TEST_CASE_EXECUTION |
required | object |
Responses
Request samples
- Payload
{- "jsonrpc": "2.0",
- "id": "SAVE_TEST_CASE_EXECUTION_42835c59-72d6-43d5-94d6-95b75aaa415b",
- "method": "SAVE_TEST_CASE_EXECUTION",
- "params": {
- "docRef": "TestRunTestCaseAdditionalFields-dm/b2480120-3f21-4001-81bc-9f8e8801d3fa",
- "document": {
- "id": "TestRunTestCaseAdditionalFields-dm",
- "Root": {
- "General": {
- "TenantId": "T_1",
- "Result": "2",
- "TestRunDocRef": "TestRun-dm/3b53beea-a611-462c-9553-703c4df4d669",
- "TestSuiteDocRef": "TestSuite-dm/20744",
- "TestCaseDocRef": "TestCase-dm/20766",
- "Id": "RC_2",
- "ProjectId": "P_9",
- "SubprojectId": "SP_1",
- "ResultDetails": "detail",
- "Defects": "TMT-456",
- "HasTester": false,
- "Tester": "viethuynh"
}, - "Metadata": {
- "CreatedBy": "trung",
- "DisplayCreatedOn": "2024-11-14T06:58:05",
- "CreatedOn": 1731567485440,
- "EditedBy": "trung",
- "DisplayEditedOn": "2024-11-14T06:58:05",
- "EditedOn": 1731567485440,
- "LatestTestCaseExecutionData": {
- "TestRunId": "R_4",
- "TestCaseId": "C_34",
- "TestCaseTitle": "Simple search"
}
}, - "TestSteps": [
- {
- "Id": "44c23d35-8ff8-4e94-ad98-74720c1f155c",
- "Result": "1",
- "Number": 1
}
], - "Attachments": [
- {
- "FileName": "bapserver-metrix-snapshot 10.55.51.png",
- "File": {
- "content": null,
- "attachment_id": "5a1c0924-9e3c-4144-8a84-f6426c096e51",
- "internal_filename": "1731576021318-0f034d9e-45a9-472b-83f1-1afe33b956cf.png",
- "original_filename": "bapserver-metrix-snapshot 10.55.51.png",
- "size": 635194,
- "mime_type": "image/png"
}, - "CreatedAt": "2024-11-14T09:20:28",
- "UploadOn": "2024-11-14",
- "OriginalFileName": "bapserver-metrix-snapshot 10.55.51.png",
- "UploadBy": "trung",
- "Referenced": false,
- "CopyNumber": 0,
- "ThumbnailId": "128633f6-b8d1-4579-9baa-1086b26eec85"
}
]
}, - "__meta": {
- "creator": "trung",
- "modifier": "trung",
- "createdAt": "2024-11-14T06:58:05",
- "modifiedAt": "2024-11-14T06:58:05",
- "modelReference": "TestRunTestCaseAdditionalFields-dm",
- "docRef": "TestRunTestCaseAdditionalFields-dm/b2480120-3f21-4001-81bc-9f8e8801d3fa",
- "modelVersion": null
}, - "docRef": "TestRunTestCaseAdditionalFields-dm/b2480120-3f21-4001-81bc-9f8e8801d3fa"
}
}
}
Response samples
- 200
{- "jsonrpc": "2.0",
- "id": "SAVE_TEST_CASE_EXECUTION_42835c59-72d6-43d5-94d6-95b75aaa415b",
- "result": null
}
Update multiple test case executions
Update content of multiple test case executions. This is not applicable for closed test run
The process submit a task request to modify the test executions asynchronously. The operation simply returns the document reference of the task request. Which you can refer to get the task status.
Authorizations:
header Parameters
Project-Id required | string Project Id or the project document reference |
Subproject-Id | string Sub Project Id or the project document reference. It might be required if you want to access the sub project's resource |
Request Body schema: application/jsonrequired
id required | string id of the operation |
jsonrpc required | string must be 2.0 |
method required | string SAVE_TEST_EXECUTIONS_ASYNC |
required | object |
Responses
Request samples
- Payload
{- "id": "SAVE_TEST_EXECUTIONS_ASYNC-123",
- "method": "SAVE_TEST_EXECUTIONS_ASYNC",
- "params": {
- "testRunId": "R_15",
- "decisionOnInvalidTestExecutionResult": "SET_IN_PROGRESS",
- "testExecutions": [
- {
- "testCaseId": "C_19",
- "tester": "tphan",
- "attachments": {
- "FileName": "Screenshot 2024-08-19 at 14.13.42.png",
- "File": {
- "content": null,
- "attachment_id": "de297d05-1451-4c22-9336-36f8f252f4e1",
- "internal_filename": "1724827189603-30ca30ef-09fe-4677-8523-794bc3996af8.png",
- "original_filename": "Screenshot 2024-08-19 at 14.13.42.png",
- "size": 89314,
- "mime_type": "image/png"
}, - "CreatedAt": "2024-08-28T06:39:50",
- "UploadOn": "2024-08-28",
- "OriginalFileName": "Screenshot 2024-08-19 at 14.13.42.png",
- "UploadBy": "tmtdev",
- "Referenced": false,
- "CopyNumber": 0,
- "ThumbnailId": "5b12dbde-c453-4972-a4f2-a478c7738f6d"
}, - "result": "5",
- "defects": "TMT-1,TMT-2",
- "details": "details"
}, - {
- "testCaseId": "C_21",
- "tester": "tphan",
- "attachments": [ ],
- "result": "0",
- "defects": "TMT-4,TMT-5",
- "details": "details for C_1"
}
]
}
}
Response samples
- 200
{- "jsonrpc": "2.0",
- "id": "SAVE_TEST_EXECUTIONS_ASYNC-123",
- "result": "TaskRequest-dm/661666"
}