Lieutenant
Lieutenant
302 views

How to relate (by relation) a automated test to a manual test by REST API

I want to link my automated test to manual by relation through REST API ,Is there any API for that?

I found below API 

https://alm-360.octane.internal.ericsson.com/api/shared_spaces/<space_id>/workspaces/<workspace_id>/tests

Payload:

{
"covered_content": {
"data": [
{
"type": "string",
"id": "string"
}
]
},
"backlog_coverage": {
"data": [
{
"type": "string",
"id": "string"
}
]
}

can we use it if yes then how ?

Regards

Nazim

0 Likes
1 Reply
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

currently, saas version is 15.0.60.

on this version you can perform from TECH PREVIEW access level:

PUT Request: https://alm-360.octane.internal.ericsson.com/api/shared_spaces/<space_id>/workspaces/<workspace_id>/tests

Body:

{"data":[{"covered_manual_test": {"id": "<manual_test_id>", "type": "test" }    , "id":"<automated_test_id>" }]}

This will set the “covered_manual_test” field of the automated test to the given manual test id

And also will set the “covering_automated_test” field of the manual test to the given automated test id.

note this will only work if you use the TECH PREVIEW access level.

 

 

from version 15.1.4 that will be released as the next saas version, you will be able perform from PUBLIC access level:

Put request: https://alm-360.octane.internal.ericsson.com/api/shared_spaces/<space_id>/workspaces/<workspace_id>/manual_tests/<manual_test_id>

Body: {"covering_automated_test":{"type":"test","id":"<automated_test_id>"}}

 

Hope this helps,

Oded

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.