Attachments downloads instead of opening in a new tab #2141
Replies: 6 comments 15 replies
-
|
The behaviour changed due to single file mode support. For single-file reports, the only way to open attachments in the new tab is to use data links. And since all the browsers have limits for URL size, we decided to drop this feature (at least for now). We aim to enable single-file mode by default for all users in future releases. Considering this, we prefer to avoid introducing any feature difference between classic & single-file modes. However, we are open to hearing your feedback! |
Beta Was this translation helpful? Give feedback.
-
|
I've noticed another problem with single-file report. Please take a look at our case. We have a report from weekend tests (100h, 25k test-cases). It contains a lot of test cases. Directory allure-results weighs 1G. When I generate a normal report, it works fast in browser. But when I generate a report in single-file mode and try to open using option "allure open" chrome hangs and finally tab crashes. File index.html weighs 1.5G. |
Beta Was this translation helpful? Give feedback.
-
|
@baev it is still very inconvenient for my team and myself. Any workaround or anything else we can do other than revert to 2.23? Thanks! |
Beta Was this translation helpful? Give feedback.
-
|
If the attachment is a plain text file, opening it in the current tab is totally fine for me. But if the attachment is a JSON file, opening it in a new browser tab can invoke the browser's JSON parser plugin. It's very efficient for me to do further investigation on it. For example:
Opening the JSON attachment in the current browser tab is really hard to read. Use the same JSON content for example:
Multi-file mode and single file mode are two different user cases, as @biski mentioned, single file mode cannot support large report very well, but multi-file mode can. I think single file mode can be used for simple and small test reports and multi-file mode can be used for complicated and large test reports, it's reasonable to provide better user experience in multi file mode. |
Beta Was this translation helpful? Give feedback.
-
|
Recently I investigated changing the iframe height of embedded html attachment and found a temp solution for it: After generated the html report with I'm using the latest release version 2.33.0 of allure, it works perfectly for me. :) |
Beta Was this translation helpful? Give feedback.
-
|
Will there be an option or a workaround to allow opening an attachment in a new browser tab? |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the Bug
After update allure from 2.23.1 to 2.24.0 changed behaviour opening attachments in report. When click to open attachment in new tab, download window opens.

Steps to Reproduce
allure serve target/allure-resultsExpected Behaviour
Attachment opens in new tab
Screenshots or Additional Context
What Language are you using?
Java
What Framework/Allure Integration you are using?
allure-junit5
What version of Allure Integration you are using?
2.24.0
What version of Allure Report you are using?
2.24.0
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions