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

adding an HTTP link to a step #1356

Open
adrian-herscu opened this issue Jul 30, 2023 · 3 comments
Open

adding an HTTP link to a step #1356

adrian-herscu opened this issue Jul 30, 2023 · 3 comments

Comments

@adrian-herscu
Copy link

adrian-herscu commented Jul 30, 2023

Besides attachments, is it possible to add some arbitrary HTML to a step?
For example an HTTP link to a step?

I would like for certain steps, namely Given step that establishes a Selenium session, to add a link for a video recording of that session, for example on SauceLabs.

Here is an example report:
https://qa-automation-starter.aherscu.dev/qa-testing-parent/qa-testing-example/jgiven-reports/functional-dev/local/html/index.html#/all

The Given google <driver> step has two plain text attachements containing Selenium session information.
I would like to add a link to video recording, in addition or in place of these attachments.

@l-1squared
Copy link
Collaborator

Hi @adrian-herscu,
if I recall correctly, we handle attachments more or less as arbitrary bytes, although we might make some assumptions about the possible MIME types. I'd need to look into the code exactly.

Please keep in mind that it is holiday season, so response might be a bit slow at the moment.

@l-1squared
Copy link
Collaborator

l-1squared commented Aug 2, 2023

short answer ( I haven't reviewed your request fully); but you s[hould at least be able to attach videos. there is a corresponding media type in the MediaType.java:
/** * Creates a binary video media type with the given subtype. */ public static MediaType video( String subType ) { return binary( VIDEO, subType ); }`

@adrian-herscu
Copy link
Author

adrian-herscu commented Aug 2, 2023 via email

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

2 participants