I have my UI tests setup with screenshots going out to Bitrise Test Reports. According to this page, it’s possible to show the screenshots inline (with the button) on the page.
But on my Test Reports page, I only have a Download
button under Test Artifacts.
How can I display images on the same page without having to manually download them?
This is my log:
+------------------------------------------------------------------------------+
| (7) deploy-to-bitrise-io |
+------------------------------------------------------------------------------+
| id: deploy-to-bitrise-io |
| version: 2.0.1 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: go |
| time: 2021-12-02T02:23:39Z |
+------------------------------------------------------------------------------+
| |
Config:
- BuildURL: https://app.bitrise.io/build/f26c08a9-e6df-4071-bb1c-6ce99dcef142
- APIToken: [REDACTED]
- IsCompress: false
- ZipName:
- DeployPath: /Users/vagrant/deploy
- NotifyUserGroups: everyone
- NotifyEmailList:
- IsPublicPageEnabled: false
- PublicInstallPageMapFormat: {{range $index, $element := .}}{{if $index}}|{{end}}{{$element.File}}=>{{$element.URL}}{{end}}
- PermanentDownloadURLMapFormat: {{range $index, $element := .}}{{if $index}}|{{end}}{{$element.File}}=>{{$element.URL}}{{end}}
- BuildSlug: f26c08a9-e6df-4071-bb1c-6ce99dcef142
- TestDeployDir: /var/folders/6q/wgy6jtp12w5gzgm9lzcglpqw0000gn/T/test_results606608005
- AppSlug: ffc79d919e1efa04
- AddonAPIBaseURL: [REDACTED]
- AddonAPIToken: [REDACTED]
- DebugMode: false
- BundletoolVersion: 1.8.1
Deploying the content of the Deploy directory separately
List of files to deploy
- /Users/vagrant/deploy/Screenshot_0BAF6777-D2BE-4153-AEDC-DFAD85743538.jpg
- /Users/vagrant/deploy/Screenshot_3CE3A001-F6FB-40DE-A9C0-0F434BF4F3FE.jpg
- /Users/vagrant/deploy/Screenshot_4F644953-5059-4BB9-8DB2-BD678D99C6D3.jpg
- /Users/vagrant/deploy/Screenshot_7194BF3B-B5A2-4FEA-A4D3-29C4B870B75C.jpg
- /Users/vagrant/deploy/Screenshot_8FE90801-F8FF-4D10-87AE-AA6BBFCBA5BE.jpg
- /Users/vagrant/deploy/Screenshot_BB1FCD77-5701-43C9-B19D-374BCE1D4FBB.jpg
- /Users/vagrant/deploy/Screenshot_D8A0731E-9ED2-4276-AE1D-2CDF4F7A69CC.jpg
- /Users/vagrant/deploy/Screenshot_E9AA8D35-995D-4A61-9EB8-AD6F053CA842.jpg
Deploying files
Uploading file: /Users/vagrant/deploy/Screenshot_0BAF6777-D2BE-4153-AEDC-DFAD85743538.jpg
creating artifact
file size: 68460B
uploading artifact
finishing artifact
Uploading file: /Users/vagrant/deploy/Screenshot_3CE3A001-F6FB-40DE-A9C0-0F434BF4F3FE.jpg
creating artifact
file size: 65789B
uploading artifact
finishing artifact
Uploading file: /Users/vagrant/deploy/Screenshot_4F644953-5059-4BB9-8DB2-BD678D99C6D3.jpg
creating artifact
file size: 70336B
uploading artifact
finishing artifact
Uploading file: /Users/vagrant/deploy/Screenshot_7194BF3B-B5A2-4FEA-A4D3-29C4B870B75C.jpg
creating artifact
file size: 70336B
uploading artifact
finishing artifact
Uploading file: /Users/vagrant/deploy/Screenshot_8FE90801-F8FF-4D10-87AE-AA6BBFCBA5BE.jpg
creating artifact
file size: 68460B
uploading artifact
finishing artifact
Uploading file: /Users/vagrant/deploy/Screenshot_BB1FCD77-5701-43C9-B19D-374BCE1D4FBB.jpg
creating artifact
file size: 68460B
uploading artifact
finishing artifact
Uploading file: /Users/vagrant/deploy/Screenshot_D8A0731E-9ED2-4276-AE1D-2CDF4F7A69CC.jpg
creating artifact
file size: 68460B
uploading artifact
finishing artifact
Uploading file: /Users/vagrant/deploy/Screenshot_E9AA8D35-995D-4A61-9EB8-AD6F053CA842.jpg
creating artifact
file size: 68460B
uploading artifact
finishing artifact
Success
You can find the Artifact on Bitrise, on the Build's page: https://app.bitrise.io/build/f26c08a9-e6df-4071-bb1c-6ce99dcef142
A map of deployed files and their permanent download urls is now available in the Environment Variable: BITRISE_PERMANENT_DOWNLOAD_URL_MAP (value: Screenshot_BB1FCD77-5701-43C9-B19D-374BCE1D4FBB.jpg=>https://app.bitrise.io/artifact/f76e66a3e3b1db9d/download|Screenshot_D8A0731E-9ED2-4276-AE1D-2CDF4F7A69CC.jpg=>https://app.bitrise.io/artifact/a744e36da518f7d7/download|Screenshot_E9AA8D35-995D-4A61-9EB8-AD6F053CA842.jpg=>https://app.bitrise.io/artifact/c9454ffbbcda23af/download|Screenshot_0BAF6777-D2BE-4153-AEDC-DFAD85743538.jpg=>https://app.bitrise.io/artifact/2bcc749afc991571/download|Screenshot_3CE3A001-F6FB-40DE-A9C0-0F434BF4F3FE.jpg=>https://app.bitrise.io/artifact/609b2dc007cf2820/download|Screenshot_4F644953-5059-4BB9-8DB2-BD678D99C6D3.jpg=>https://app.bitrise.io/artifact/dc42c9fb6fa3a196/download|Screenshot_7194BF3B-B5A2-4FEA-A4D3-29C4B870B75C.jpg=>https://app.bitrise.io/artifact/79bebb27217215f4/download|Screenshot_8FE90801-F8FF-4D10-87AE-AA6BBFCBA5BE.jpg=>https://app.bitrise.io/artifact/72d30fa42d1c3839/download)
Upload test results
- uploading (1) test results
Success