DeviceCloud captures various artifacts during test execution that can help debug and analyze your test runs.
Each test run generates:
- Logs
- Screenshots
- Videos
- Test reports
There are two ways to download artifacts: inline during a dcd cloud run, or on-demand after the fact using dcd artifacts.
Pass --download-artifacts directly to the cloud command and artifacts are downloaded automatically when the run completes:
# Download artifacts for all tests
dcd cloud app.apk flows/ --download-artifacts ALL
# Download artifacts for failed tests only
dcd cloud app.apk flows/ --download-artifacts FAILED
# Save to a custom path
dcd cloud app.apk flows/ --download-artifacts FAILED --artifacts-path ./failed.zipUse the dcd artifacts command to download artifacts or reports for any completed run by its upload ID. This is useful when tests were submitted with --async, or when you need to pull reports after the fact:
# Download a zip of all artifacts
dcd artifacts --upload-id <uuid> --download-artifacts ALL
# Download a JUnit report
dcd artifacts --upload-id <uuid> --report junit
# Download an Allure report
dcd artifacts --upload-id <uuid> --report allure --allure-path ./allure-report.htmlSee the dcd artifacts reference for the full flag list.
Artifacts and workspace downloads are also available directly from the test result page in the DeviceCloud console. Use the download menu on any completed result to save videos, logs, screenshots, or the full workspace bundle.
Artifacts are downloaded as a zip file:
artifacts/
├── test1/
│ ├── logs/
│ ├── screenshots/
│ └── video/
├── test2/
│ ├── logs/
│ ├── screenshots/
│ └── video/
└── report.xml # if JUnit report was requested