Skip to content

Step attachments can't be previewed or downloaded from the test body section #171

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

Closed
delatrie opened this issue May 6, 2025 · 0 comments · Fixed by #173
Closed

Step attachments can't be previewed or downloaded from the test body section #171

delatrie opened this issue May 6, 2025 · 0 comments · Fixed by #173
Assignees

Comments

@delatrie
Copy link
Collaborator

delatrie commented May 6, 2025

Describe the bug
Step attachments are missing in the step tree of a test. They can't be previewed or downloaded.

At the same time, the Attachments tab works as expected: the same attachments can be viewed and downloaded.

To Reproduce
Steps to reproduce the behavior:

  1. Download and extract the input files:
    allure-results.zip
  2. Generate and open the report:
    npx allure awesome ./allure-results
    npx allure open
  3. Open the test details page (there will be only one test in the report).
  4. Expand the test body.
  5. Expand the Foo step. Note the missed label in the attachment row.
  6. Expand the attachment. Note that the content is not shown.

Expected behavior
The Hello text is shown in the expanded attachment content area.

Screenshots

The test body misses the attachment content:

Image

In contrast, the Attachments tab works as expected:

Image

Videos

Screen.Recording.2025-05-07.at.01.03.38.mov

Desktop (please complete the following information):

  • OS: Mac OS 15.4.1
  • Browser MS Edge
  • Version 135.0.3179.85

Additional context

URLs used to fetch the attachment content from the server differ. Example:

  • In the test body: GET /data/attachments/648e81d3-1b08-4076-bdcc-ac34651016a8?attachment
  • In the Attachments tab: GET /data/attachments/e76f050b0e27f70d01286d4dd50f6669.txt?attachment

Note that different UUIDs are used. Those are internal Allure 3 UUIDs: new values are created when a new report is generated.

In Allure2 (allure serve ./allure-results), everything works as expected.

Also, test-level attachments work as expected (the URLs are the same). An example of such test result would be:

{
  "name": "foo",
  "status": "passed",
  "steps": [
    {
      "name": "bar",
      "status": "passed",
      "attachments": [
        {
          "name": "bar",
          "source": "0ec9ddf1-e853-47b1-9d27-510bf4dbc2ab-attachment.txt",
          "type": "text/plain"
        }
      ],
      "start": 1746524896881,
      "stop": 1746524896881
    }
  ],
  "start": 1746524896881,
  "stop": 1746524896881,
  "uuid": "2cc4446b-8226-4cfd-8271-d3a0753a9fbf",
  "fullName": "foo"
}
@delatrie delatrie changed the title Attachments can't be previewed or downloaded from the overview tab on the test details page Step attachments can't be previewed or downloaded from the test body section May 6, 2025
@delatrie delatrie self-assigned this May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant