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

Attaching a zip file to the report #343

Open
MaximeAnsquer opened this issue Feb 28, 2024 · 1 comment
Open

Attaching a zip file to the report #343

MaximeAnsquer opened this issue Feb 28, 2024 · 1 comment

Comments

@MaximeAnsquer
Copy link

🤔 What's the problem you're trying to solve?

Attaching a zip file to the html report in Java.
I have tried several media types but always get an error:

Couldn't display application/octet-stream attachment because the media type is unsupported. Please submit a feature request at https://github.com/cucumber/cucumber/issues
Couldn't display .zip attachment because the media type is unsupported. Please submit a feature request at https://github.com/cucumber/cucumber/issues
Couldn't display application/x-zip attachment because the media type is unsupported. Please submit a feature request at https://github.com/cucumber/cucumber/issues
Couldn't display application/x-zip-compressed attachment because the media type is unsupported. Please submit a feature request at https://github.com/cucumber/cucumber/issues

✨ What's your proposed solution?

Handle the media type "application/zip" in the Java method Scenario#attach.

⛏ Have you considered any alternatives or workarounds?

No.

📚 Any additional context?

My zip file contains a csv file


This text was originally generated from a template, then edited by hand. You can modify the template here.

@mpkorstanje mpkorstanje transferred this issue from cucumber/common Feb 28, 2024
@mpkorstanje mpkorstanje transferred this issue from cucumber/html-formatter Feb 28, 2024
@mpkorstanje
Copy link
Contributor

mpkorstanje commented Feb 28, 2024

Which Cucumber and Html formatter version are you using? Downloading arbitrary content was implemented in #333.

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

No branches or pull requests

2 participants