I'm trying to send a detailed email-notification on test failure in azure pipeline build. I'm following the suggestion in this thread : How to send a detailed email to specific developer from Azure DevOps on failure of unit tests from a Build pipeline? I saw the example request as below
GET https://dev.azure.com/{organization}/{project}/_apis/test/Runs/{runId}/results/{testCaseResultId}?api-version=5.0
How can i get the value of 'runId' and 'testCaseResultId' ? Is there any environment variable that can use in my pipeline to automatically substitute their values ?
Can anyone suggest me a best way to use Result-Get?