Expand my Community achievements bar.

AIO CLI Command to Retrieve Custom UI Test Report Details

Avatar

Level 2

 

Enabled a custom UI test  in cloud manager pipeline which work fine and able to see the corresponding Download Details tab, clicking on which a detailed set of logs and test reports are generated.

 

Is it possible to retrieve  same set of reports using the aio cli command ?

 

On checking the repository https://github.com/adobe/aio-cli-plugin-cloudmanager, I could not find a corresponding command for downloading the details and all available commands just download the entire log.

 

 

4 Replies

Avatar

Community Advisor

Hi @sanith 

Not sure if there is a command for that, I was not able to find REST API as well,

The available Pipeline execution commands/API are

https://developer.adobe.com/experience-cloud/cloud-manager/reference/api/#tag/Pipeline-Execution/ope... 



Arun Patidar

Avatar

Level 2

Hi @arunpatidar ,

 

Yes, there is no command available for this.

But by utilising the Cloud Manager API, we can access "artifacts" through the following endpoint:
https://developer.adobe.com/experience-cloud/cloud-manager/reference/api/#tag/Execution-Artifacts.

For instance, to obtain details about our pipeline, you can execute this API call:
GET /program/{programId}/pipeline/{pipelineId}/execution/{executionId}/phase/{phaseId}/step/{stepId}/artifacts,

which will return a response such as:

{
  "id": "291",
  "stepName": "uiTest",
  "type": "UI_TEST_RESULTS",
  "file": "ui-test-results.zip",
  "format": "zip",
  "md5": "\"0x8DD0EC\""
}

To download the "ui-test-results.zip" file, you can make another API call using the artifact ID:
GET /program/{programId}/pipeline/{pipelineId}/execution/{executionId}/phase/{phaseId}/step/{stepId}/artifact/291.

Integrating this process is straightforward if you are using the Cloud Manager SDK.

Avatar

Community Advisor

Hi,

 

I believe you've answered your own question. The GitHub repo contains the official information and available functionality at the moment. You can always open a GitHub issue to propose new ideas.

 

Hope this helps!



Esteban Bustamante

Avatar

Administrator

@sanith Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni