GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

New issue
Copy link
New issue
Copy link
Closed
#889
Closed
Add a ZIP AttachmentType for the Attach File keyword#442
#889
Copy link
Labels
theme:robotframework

Description

@chache35
chache35
opened on Nov 5, 2019
Issue body actions

I'm submitting a ...

  • [X ] feature request

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.

image

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.

  • Allure version: 2.12.1
  • Test framework: [email protected]
  • Allure adaptor: [email protected]
Reacted by Guillaume GENS and decado87

Activity

  1. apallier commented on Nov 7, 2019

    @apallier
    apallier
    on Nov 7, 2019
    More actions

    +1

  2. arkuz commented on Nov 3, 2022

    @arkuz
    arkuz
    on Nov 3, 2022
    More actions

    +1

  3. delatrie
    added
    theme:robotframework
    on Dec 5, 2022
  4. amielnoyp commented on Dec 6, 2022

    @amielnoyp
    amielnoyp
    on Dec 6, 2022
    More actions

    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
  5. decado87 commented on Jan 24, 2024

    @decado87
    decado87
    on Jan 24, 2024
    More actions

    This feature would be very useful for same reason as previous comment. I would like to attach pw traces as zip file.

  6. kieran-ryan commented on Dec 29, 2025

    @kieran-ryan
    kieran-ryan
    on Dec 29, 2025
    Contributor
    More actions

    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
    Image

    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.

    Image

    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",
        )
  7. delatrie
    closed this as completedin #889on Dec 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    theme:robotframework

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.