WasiqB / multiple-cucumber-html-reporter

Generate beautiful Cucumber HTML reports
https://github.com/WasiqB/multiple-cucumber-html-reporter/blob/main/README.md
MIT License
247 stars 115 forks source link

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

Open siddharthsid opened 2 years ago

siddharthsid commented 2 years ago

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 commented 2 years ago

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

siddharthsid commented 2 years ago

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

wswebcreation commented 2 years ago

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 commented 2 years ago

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

wswebcreation commented 2 years ago

Hi @Yohandah

Feel free to open a PR 😉

fadomire commented 1 year ago

@siddharthsid what is preventing this from working currently ? i have kind of the same problem but stucked because of https://github.com/WasiqB/multiple-cucumber-html-reporter/issues/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 commented 1 year ago

would be very nice to integrate with the video reporter