GeezerVison is showing github.com — Add a ZIP AttachmentType for the Attach File keyword · Issue #442 · allure-framework/allure-python
Add a ZIP AttachmentType for the Attach File keyword #442
Description
I'm submitting a ...
What is the current behavior?
I would like to use the Robot Framework "AllureLibrary.Attach File" keyword with a .zip file.
Currently, ZIP is not available as AttachmentType. So the downloaded file is a ".attach" file that I have to rename as a .zip file.

What is the expected behavior?
I would like to be able to set attachment_type to ZIP for the "AllureLibrary.Attach File" keyword, so that I can directly download the .zip file.
Reacted by Guillaume GENS and decado87
Activity
apallier commented on Nov 7, 2019
arkuz commented on Nov 3, 2022
amielnoyp commented on Dec 6, 2022
This feature is needed now on playwright api on python to add traces
PLEASE ADD THIS FEATURE THIS IS OFF HIGH PRIORITY please!!!
Reacted by AnastasiiaVint
decado87 commented on Jan 24, 2024
This feature would be very useful for same reason as previous comment. I would like to attach pw traces as zip file.
kieran-ryan commented on Dec 29, 2025
Will be officially supported upon merge of #889.
Meanwhile, this can be mitigated by specifying the extension directly as zip.
*** Settings ***
Documentation Sample test to attach a zip file with the appropriate file ending
Library AllureLibrary
*** Test Cases ***
Sample Allure Test
Attach File file.zip
... extension=zip
name can be specified alternatively to extension (i.e. name=file.zip instead of extension=zip), which will retain the file name and its extension, though replaces the unique, generated name.
The below sample pytest test case demonstrates the equivalent Python API. See more information on the linked merge request.
import allure
def test_sample():
allure.attach.file(
source="file.zip",
extension="zip",
)
Metadata
Metadata
Development
No branches or pull requestsIssue actions