allure-framework / allure-framework/allure2
Would like better support for embedded video links that contain test runs - bigger and shown at top level
- Dominant language
- HTML
- Stars
- 5.5k
- Forks
- 782
- Avg merge
- 2d 33m
- Merged PRs (30d)
- 16
Description
**Is your feature request related to a problem? Please describe.**
A remote video uploaded as an HTML attachment only is shown in a very tiny area without scrolling. It would be better if it could be shown larger. Another improvement would be for it to be shown "outside" the tree structure that is created using Allure with Junit5. Uploads of any kind often happen in the @AfterEach or @AfterAll methods.
NOTE: the videos are hosted on a different server and are NOT uploaded to Allure. Only html link code is being uploaded as type 'text/html'.
I've posted stackoverflow query to see if someone has a solution without making changes to Allure. https://stackoverflow.com/questions/71001513/how-can-i-improve-display-of-attached-video-link-in-allure-report
**Describe the solution you'd like**
- I would like to ebed the video in the Allure report per test
- The horizontal area for the html used for the video should not be so short
- I would like to be able to upload the attachment "outside" of the tree structure
- I would like this to be shown without having to "click into" some visual tree structure. It should just appear when the test details are shown in the right side panel
**Describe alternatives you've considered**
I'm making the video very, very small right now to avoid the scroll bar. I've tried some other html code variations to see if I can get a taller area for the video.
**Additional context**
``` // this attaches video url to an allure test result
@Attachment(value = "video", type = "text/html")
public String saveVideoUrl(String url) {
logger.info("**** Embedding video in Allure report ****");
String html = String.format("Did the video show up?", url);
return html;
}
```
This screenshot shows the result of my attachment code above. You can see the small size as well as how deep into the tree structure it is because of execution in the @AfterEach method of the Junit5 test.

Contributor guide
Research direction
Start with the @Attachment saveVideoUrl example and the JUnit5 @AfterEach/@AfterAll context described in the issue, then trace how text/html attachments appear in the Allure report. Done means video links have a larger display, appear at the requested test-detail level, and can be shown outside the current tree structure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html, java
- Domain
- frontend, testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100