AIO CLI Command to Retrieve Custom UI Test Report Details | Community
Skip to main content
December 2, 2024

AIO CLI Command to Retrieve Custom UI Test Report Details

  • December 2, 2024
  • 3 replies
  • 901 views

 

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.

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

arunpatidar
Community Advisor
Community Advisor
December 2, 2024

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/operation/stepState 

Arun Patidar
sanithAuthor
December 10, 2024

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.

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
December 3, 2024

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
kautuk_sahni
Community Manager
Community Manager
December 16, 2024

@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