Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can i insert video tag as an attachment with in my scenario/feature ? #156

Open
siddharthsid opened this issue Nov 12, 2021 · 8 comments
Open

Comments

@siddharthsid
Copy link

siddharthsid commented Nov 12, 2021

Hi team,

I have a video recording which is done as part of After Hooks and i want to attach it with my scenario.

My tag would look like

<video width="320" height="240" controls> <source src="PATH_TO_VIDEO" type="video/mp4"> </video>

Is there a way I can insert such tag?

@wswebcreation
Copy link
Collaborator

Hmm, good one, never thought about this. Where would you like to put this, in the embeddings?

@siddharthsid
Copy link
Author

yes in the embeddings
embeddings: [ { data: , mime_type: "text/plain", }, ],

@wswebcreation
Copy link
Collaborator

That would be possible, we only need to find a way to distinguish that embeddings: [ { data: , mime_type: "text/plain", }, ], is for a video tag instead of plain text. How do you normally use that?

@Yohandah
Copy link

Yohandah commented Mar 7, 2022

Some other reporters like https:/damianszczepanik/cucumber-reporting offer video import, this would be a nice feature to implement.

@wswebcreation
Copy link
Collaborator

Hi @Yohandah

Feel free to open a PR 😉

@fadomire
Copy link

@siddharthsid what is preventing this from working currently ?
i have kind of the same problem but stucked because of #46

in our json we have:

embedding: [
  { 
    "data": "PHZpZGVvIGNvbnRyb2xzIHNyYz0iaHR0cHM6Ly9hdXRvbWF0ZS5icm93c2Vyc3RhY2suY29tL3Nlc3Npb25zLzEyNDIzMjM0MjQyIiBzdHlsZT0id2lkdGg6MTAwJSIvPg==",
    "mime_type": "text/html"
  }
]

it works with jenkins reporter for e.g and cucumber-reporting also, because it decode this base64 string that finaly is rendered as:

<video controls src="https://automate.browserstack.com/sessions/12423234242" style="width:100%"/>

@a7madgamal
Copy link

would be very nice to integrate with the video reporter

@WasiqB
Copy link
Owner

WasiqB commented Sep 7, 2024

We have added support to attach video recording to the report in PR #369 , it would be great if anyone from this thread would like to give it a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants