fescobar / allure-docker-service

This docker container allows you to see up to date reports simply mounting your "allure-results" directory in the container (for a Single Project) or your "projects" directory (for Multiple Projects). Every time appears new results (generated for your tests), Allure Docker Service will detect those changes and it will generate a new report automatically (optional: send results / generate report through API), what you will see refreshing your browser.
Apache License 2.0
636 stars 183 forks source link

the screenshot is not showed #223

Open pduyet opened 1 year ago

pduyet commented 1 year ago

I run test and use API to send reports to allure docker service. but the screenshot cannot show image on my local, the report generate by allure serve still appears the screenshot

victor-wang-anz commented 1 year ago

hey @pduyet , we have a same problem here. according to the swagger spec, each file in the allure-results folder must be converted to a base64 for string. I am wondering if this rule also applies to the screenshot.png file?

@fescobar is it something possible or we cannot upload png images through the send result api?

pduyet commented 1 year ago

hey @pduyet , we have a same problem here. according to the swagger spec, each file in the allure-results folder must be converted to a base64 for string. I am wondering if this rule also applies to the screenshot.png file?

@fescobar is it something possible or we cannot upload png images through the send result api?

yes, I see that rule. we cannot convert the attachment file png in allure-results to base64. it makes the screenshot cannot show on the report. I'm studying about this issue

fescobar commented 6 months ago

Hi @victor-wang-anz @pduyet What is the file that you want to send? Please, can you send me the example? I don't have any issues with any image. Did you try using the scripts provided here? https://github.com/fescobar/allure-docker-service?tab=readme-ov-file#send-results-through-api