Video html tag not supported inside Allure report #1862
Unanswered
sergiu-mezei-aera
asked this question in
Questions & Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Unable to embed
<video>
inside Allure report.To Reproduce
Steps to reproduce the behavior:
I'm trying to add a html
<video>
tag inside the Allure report that has the source pointing to a AWS S3 URL that contains the browser session recording. Since this recording is only available after the browser session closes, cannot stream it inside the TestNG TestListener - onTestFailure()/onTestSuccess() to attach it as video/mp4 because it doesn't exist yet.I've tried attaching a html code snippet (as shown here) as 'text/html' but it shows up as a text attachment, not processing the html code.
The code I've tried inside the TestListener:
Allure.addAttachment("Click here for video : ", "text/html", htmlSource);
After re-generating the report, I see a text attached containing my htmlSource
but also:
@Attachment(value = "Click here for video : ", type = "text/html") public static String publishVideo(WebDriver driver, String videoName) { ..... return htmlSource }
After re-generating the report, nothing is displayed.
So, none of the approaches worked.
How can I achieve something like this?
Expected behavior
Video player should be displayed & working.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
Beta Was this translation helpful? Give feedback.
All reactions