allure2 icon indicating copy to clipboard operation
allure2 copied to clipboard

Export Allure Report to a single HTML File

Open jakerolandaban opened this issue 7 years ago • 44 comments

I'm submitting a ...

  • [ ] bug report
  • [x] feature request
  • [ ] support request => Please do not submit support request here, see note at the top of this template.

What is the current behavior?

Allure Report is only available as long as i have the json files to generate it and keep the terminal open.

What is the motivation / use case for changing the behavior?

Need a single HTML file to keep track of for historical information of the report, and can be send as 1 file to the whole team. (e.g February2018_Report.html)

I tried saving the report as Webpage, Complete but the webpage was empty, have loading icons, and 404 not found.

Please tell us about your environment:

I'm using allure 2.5.0 and allure-behave using allure serve {folder} in the terminal to generate the report

And that's all i believe what i am doing

jakerolandaban avatar Feb 21 '18 20:02 jakerolandaban

It's a good idea and we can send this report in email to customers.

ant-shch avatar Apr 02 '18 08:04 ant-shch

it's really a must-have feature - please do it as soon as possible

twixdouble avatar Apr 02 '18 08:04 twixdouble

Agree. I would like to have a saved version of previous reports for using when it's needed.

omitiev avatar Apr 02 '18 08:04 omitiev

I actually found a workaround for this, you can use allure generate command to save the website files into a specific folder (files include .json files and index.html).

Once you do that you can store all of it on an aws s3 bucket and enable web hosting. This way you can just send the Link of the report allure has generated.

jakerolandaban avatar Apr 02 '18 15:04 jakerolandaban

Hello! This request has been implemented? I need the same, an html with all the steps to send it to the client.

Thanks!

marcel9414 avatar May 14 '18 10:05 marcel9414

@jakerolandaban I was able to serve a single report by placing it in an s3 bucket as you described. Thanks for that. Can you link to or elaborate on how this would work with multiple test runs? When I go to the buckets suggested domain: bucket-name.s3-website-us-west-2.amazonaws.com the path /# is added by default and the 'trend' section is blank. Thanks

SymphonicJohn avatar Aug 20 '18 15:08 SymphonicJohn

@SymphonicJohn you're running multiple test runs but only 1 is being shown? did I get that correct? for the trends, try to look up categories.json on allure framework docs

jakerolandaban avatar Aug 20 '18 16:08 jakerolandaban

You can use the command allure generate <alluredir> to create html files. This folder you could send around, but you can only directly open the index.html file with Edge or Firefox.

For Chrome, you need the --allow-file-access-from-files flag when running chrome, according to this: https://stackoverflow.com/questions/18586921/how-to-launch-html-using-chrome-at-allow-file-access-from-files-mode. Also it gives you other options, like running python -m http.server in the results folder so you don't have to use that option.

Sup3rGeo avatar Sep 11 '18 18:09 Sup3rGeo

Is any news about generation Allure Report as single HTML File without dependency to json and csv files?

Thanks!

amarusic avatar Oct 30 '18 10:10 amarusic

+1

goodbomb avatar Oct 30 '18 20:10 goodbomb

+1

rapidroamer avatar Dec 07 '18 03:12 rapidroamer

+1

slavvka avatar Jan 07 '19 23:01 slavvka

+1

aikrasnov avatar Feb 21 '19 14:02 aikrasnov

+1 If there is some update, can someone share ?
I would like this report carries:

  1. the current execution statics, suc/failure/skilp rate, in such fancy allure style.
  2. maybe the past 10, 100 execution history, in a diagram chart.
  3. Provide a link, where if the user wants more details, they can click the link to go to the actual jenkins web page.

Thanks a lot ! -cji

chunji08 avatar Feb 22 '19 19:02 chunji08

I actually found a workaround for this, you can use allure generate command to save the website files into a specific folder (files include .json files and index.html).

Once you do that you can store all of it on an aws s3 bucket and enable web hosting. This way you can just send the Link of the report allure has generated.

@jakerolandaban I want to do just that, the problem is that after generating the results (allure generate) and trying to open only the HTML file, the result is not shown, only if I run the allure open command, but my idea is to generate the report and view it in my bucket. More tips?

rafaelcs avatar Mar 19 '19 02:03 rafaelcs

@rafaelcs did you read comment by @Sup3rGeo above?

For Chrome, you need the --allow-file-access-from-files flag

kool79 avatar Apr 17 '19 15:04 kool79

Is any news about generation Allure Report as single HTML File without dependency to json and csv files?

Thanks!

+1

dreambe avatar Apr 22 '19 12:04 dreambe

I actually found a workaround for this, you can use allure generate command to save the website files into a specific folder (files include .json files and index.html). Once you do that you can store all of it on an aws s3 bucket and enable web hosting. This way you can just send the Link of the report allure has generated.

@jakerolandaban I want to do just that, the problem is that after generating the results (allure generate) and trying to open only the HTML file, the result is not shown, only if I run the allure open command, but my idea is to generate the report and view it in my bucket. More tips?

I actually found a workaround for this, you can use allure generate command to save the website files into a specific folder (files include .json files and index.html).

Once you do that you can store all of it on an aws s3 bucket and enable web hosting. This way you can just send the Link of the report allure has generated.

Hi. Could you please elaborate on how you achieved this? I've stored my files in an s3 bucket but I'm getting a 404 error when visit the s3 endpoint. Any help will be greatly appreciated

soduor avatar May 06 '19 03:05 soduor

I actually found a workaround for this, you can use allure generate command to save the website files into a specific folder (files include .json files and index.html). Once you do that you can store all of it on an aws s3 bucket and enable web hosting. This way you can just send the Link of the report allure has generated.

@jakerolandaban I want to do just that, the problem is that after generating the results (allure generate) and trying to open only the HTML file, the result is not shown, only if I run the allure open command, but my idea is to generate the report and view it in my bucket. More tips?

I actually found a workaround for this, you can use allure generate command to save the website files into a specific folder (files include .json files and index.html). Once you do that you can store all of it on an aws s3 bucket and enable web hosting. This way you can just send the Link of the report allure has generated.

Hi. Could you please elaborate on how you achieved this? I've stored my files in an s3 bucket but I'm getting a 404 error when visit the s3 endpoint. Any help will be greatly appreciated

Have you enabled the web-hosting feature of your s3 bucket?

aaa-jake avatar May 09 '19 17:05 aaa-jake

Love this idea and it would be fantastic

ntindle avatar Aug 09 '19 14:08 ntindle

Here is my solution to upload the report to AWS S3

# Generate Allure report
allure generate -c reports/allure-results -o reports/allure-results-html

# Upload HTML report to AWS S3
aws s3 sync reports/allure-results-html s3://your_bucket/

rafaelcs avatar Aug 14 '19 17:08 rafaelcs

I've added to Allure Docker container the emailable report feature. You can export it to a simple Html. https://github.com/fescobar/allure-docker-service#customize-emailable-report

fescobar avatar Aug 14 '19 19:08 fescobar

+1

eleni-salamani avatar Jan 03 '20 12:01 eleni-salamani

@Sup3rGeo Is it also possible if allure server is not up and running ? Thanks

DikshaBaluja avatar Jan 14 '20 13:01 DikshaBaluja

ReportWebPlugin

How to generate static report using ReportWebPlugin ?

poovaraj avatar Feb 15 '20 04:02 poovaraj

How could we access the allure reports .html file in Github? Locally we can achieve it by using allure serve allure-results / allure generate but in Github how we can achieve it

abhi8130 avatar May 29 '20 19:05 abhi8130

This allure generate thing does not work for me... The data are not appearing in the report.... Pages are there but values are not coming... is there any thing extra we have to do.

umeshwalagedara avatar Jul 14 '20 12:07 umeshwalagedara

@umeshwalagedara Can you tell us what steps you have tried so far? How did you install allure?

jmatthews79 avatar Jul 14 '20 13:07 jmatthews79

This allure generate thing does not work for me... The data are not appearing in the report.... Pages are there but values are not coming... is there any thing extra we have to do.

@umeshwalagedara you have here multiple examples: https://github.com/fescobar/allure-docker-service#generate-allure-results Skip the docker part.

fescobar avatar Jul 14 '20 14:07 fescobar

Guys, I posted a workaround with just a few lines of shell script for mac and batch script for windows. Please find my answer in the following link, https://stackoverflow.com/questions/41960081/how-to-send-an-email-of-allure-report/64011632#64011632

We just need to share the entire allure-report folder over the email and the user who downloads it can open the allure report with the shell script/batch script. They don't need to have allure installed in their system as well. Check it out. It's free and it doesn't involve any third party or costly amazon was bucket.

karthick4kumaran avatar Sep 22 '20 14:09 karthick4kumaran