allure2
allure2 copied to clipboard
Export Allure Report to a single HTML File
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
It's a good idea and we can send this report in email to customers.
it's really a must-have feature - please do it as soon as possible
Agree. I would like to have a saved version of previous reports for using when it's needed.
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.
Hello! This request has been implemented? I need the same, an html with all the steps to send it to the client.
Thanks!
@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 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
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.
Is any news about generation Allure Report as single HTML File without dependency to json and csv files?
Thanks!
+1
+1
+1
+1
+1
If there is some update, can someone share ?
I would like this report carries:
- the current execution statics, suc/failure/skilp rate, in such fancy allure style.
- maybe the past 10, 100 execution history, in a diagram chart.
- 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
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 did you read comment by @Sup3rGeo above?
For Chrome, you need the --allow-file-access-from-files flag
Is any news about generation Allure Report as single HTML File without dependency to json and csv files?
Thanks!
+1
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 theallure 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
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 theallure 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?
Love this idea and it would be fantastic
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/
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
+1
@Sup3rGeo Is it also possible if allure server is not up and running ? Thanks
ReportWebPlugin
How to generate static report using ReportWebPlugin ?
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
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 Can you tell us what steps you have tried so far? How did you install allure?
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.
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.