How to get results/Status of TestSet from Orchastrator using API(Post Man)

Hi All,

I am using the below url to invoke the testset from UI path from Post Man tool. It is giving me the below response.

Post Request:
https://cloud.uipath.com/{OrgdomainName}/S_Tenant2/orchestrator_/api/TestAutomation/StartTestSetExecution?triggerType=ExternalTool&testSetId={Id}&X-UIPATH-OrganizationUnitId={Id}

Response:
{Id/Number}

I want to get the actual test results and Status of my testset. how can I achieve that. what is the url i can use.

Hi @Bhavya_A,

Once you have the Id from the response you can use that Id to query the test results and status.

You can use the following URL with GET method: https://cloud.uipath.com/{OrgdomainName}/S_Tenant2/orchestrator_/api/TestAutomation/TestSetExecution/{executionId}

1 Like

Thank you for the input. I am able to recieve the response like below. Is there any way we can get more details… like results… number of test cases passed or failed like more information. Please help.
{
“@odata.context”: “https://cloud.uipath.com/{Organizationname}/{Tenant}/orchestrator_/odata/$metadata#TestSetExecutions/$entity”,
“Name”: “##########”,
“TestSetId”: {Number},
“OrganizationUnitId”: {Number},
“StartTime”: “##########”,
“EndTime”: “##########”,
“Status”: “Failed”,
“TriggerType”: “ExternalTool”,
“ScheduleId”: null,
“BatchExecutionKey”: “{alphanumberic}”,
“CoverageStatus”: “Disabled”,
“RunId”: 1,
“EnforceExecutionOrder”: false,
“CreationTime”: “############”,
“CreatorUserId”: {Number},
“Id”: {Number}
}