# Allure report is not displaying failed test case screenshot

**URL:** <https://forum.robotframework.org/t/allure-report-is-not-displaying-failed-test-case-screenshot/8463>\
**Category:** Robot Framework\
**Created:** [13 February 2025 19:22 UTC](https://forum.robotframework.org/t/allure-report-is-not-displaying-failed-test-case-screenshot/8463 "2025-02-13T19:22:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Renuka.U](https://avatars.discourse-cdn.com/v4/letter/r/d26b3c/32.png) [@Renuka.U](https://forum.robotframework.org/u/Renuka.U)\
**Post date:** [13 February 2025 19:22 UTC](https://forum.robotframework.org/t/allure-report-is-not-displaying-failed-test-case-screenshot/8463/1 "2025-02-13T19:22:53Z")

</div>

Please Help me with this

This report is not displaying screenshot  
And the test case file names are concatenating instead it should display like  
1.Logout  
2.AddToCart  
3.PlaceOrder  
4.Logout

This is my project structure  
I would like to provide if anything else is needed

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [13 February 2025 20:59 UTC](https://forum.robotframework.org/t/allure-report-is-not-displaying-failed-test-case-screenshot/8463/2 "2025-02-13T20:59:23Z")

</div>

Hi Renuka,

Reporting to Allure is not part of the base Robot Framework functionality, so perhaps you are using an extension or other tool to do this reporting?

Mentioning what that extention/tool is in this question would be a good idea.

I would suggest you start by checking versions, bot of the tool your using to publish the test report and the version of robot framework you’re running, also check if the tool supports that version of robot framework?

I’ll note that with Robot Framework 7.0 the output.xml format changed, so if the tool that publishes to Allure is expecting the old format and you are using Robot Framework \>= 7.0 you may need to use the `--legacyoutput` option (see [Output file](https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#output-file))

Hopefully that helps guide you to a solution,

Dave.

---

<div class="post-metadata">

**Author:** ![Renuka.U](https://avatars.discourse-cdn.com/v4/letter/r/d26b3c/32.png) [@Renuka.U](https://forum.robotframework.org/u/Renuka.U)\
**Post date:** [14 February 2025 05:51 UTC](https://forum.robotframework.org/t/allure-report-is-not-displaying-failed-test-case-screenshot/8463/3 "2025-02-14T05:51:21Z")

</div>

actually i have provided the screenshot but as i’m a new user this platform is not allowing me to upload . so any other platform to connect with you so that i can explain my issue.

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [14 February 2025 06:00 UTC](https://forum.robotframework.org/t/allure-report-is-not-displaying-failed-test-case-screenshot/8463/4 "2025-02-14T06:00:06Z")

</div>

Hi Renuka,

Don’t worry about the screenshot, later you’ll be able to include it if it’s needed (the forums are restricted to new users because of spammers, I’m not an admin, just a forum user like you).

First what’s the tool that sends the report data to Allure? If I know that I can read the doc’s and try to help you resolve your issue. Also someone else who uses that tool might help too.

In the meantime can you open the log.html that Robot Framework generates and confirm you can see the screenshots in there, this way we can rule out any bugs in Robot Framework itself and narrow down where the problem is rather than chasing in wrong directions.

Dave.

---

<div class="post-metadata">

**Author:** ![Renuka.U](https://avatars.discourse-cdn.com/v4/letter/r/d26b3c/32.png) [@Renuka.U](https://forum.robotframework.org/u/Renuka.U)\
**Post date:** [14 February 2025 06:06 UTC](https://forum.robotframework.org/t/allure-report-is-not-displaying-failed-test-case-screenshot/8463/5 "2025-02-14T06:06:48Z")

</div>

“robotframework-allure-library” this is the tool i’m using

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [14 February 2025 08:11 UTC](https://forum.robotframework.org/t/allure-report-is-not-displaying-failed-test-case-screenshot/8463/6 "2025-02-14T08:11:17Z")

</div>

Hi Renuka,

The documentation for this project is a little confusing, it says:

> **Attachments** : Automatically capture [screenshots and other files](https://allurereport.org/docs/robotframework/#attach-screenshots-and-other-files) during test execution.

but when you follow that link it shows an example:

```python
***Settings***
Library AllureLibrary
Library RequestsLibrary

***Test Cases***
Test Authentication
    # ...

    ${response}= GET https://example.com/image.png
    Attach ${response.content}
    ... name=Image attachment_type=PNG

    Attach File /path/to/image.png
    ... name=Image attachment_type=PNG

```

So it’s not clear whether you need to use the `Attach File` or it will do it automatically?

Looking at the [code base fo that project](https://github.com/allure-framework/allure-python/tree/master/allure-robotframework) it looks like it’s not been updated for ~2 years (before Robot Framework 6.1) though it does correctly identify it’s listener api version as `ROBOT_LISTENER_API_VERSION = 2` so it should work as I’ve not seen any notice of that api version being deprecated yet

As I mentioned this plugin / add on listener is not part of robot framework itself and I don’t use this listener so am not familiar with it.

All I can suggest follow their documentation for [Attachments](https://allurereport.org/docs/robotframework-reference/#attachments) and if that doesn’t work contact the developers of this add on for robot framework.

Hope that helps,

Dave.

---

<div class="post-metadata">

**Author:** ![Renuka.U](https://avatars.discourse-cdn.com/v4/letter/r/d26b3c/32.png) [@Renuka.U](https://forum.robotframework.org/u/Renuka.U)\
**Post date:** [14 February 2025 09:43 UTC](https://forum.robotframework.org/t/allure-report-is-not-displaying-failed-test-case-screenshot/8463/7 "2025-02-14T09:43:56Z")

</div>

Thanks for your efforts dave but it is not working if tried as in the document

---

<div class="post-metadata">

**Author:** ![rasjani](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@rasjani](https://forum.robotframework.org/u/rasjani)\
**Post date:** [14 February 2025 10:11 UTC](https://forum.robotframework.org/t/allure-report-is-not-displaying-failed-test-case-screenshot/8463/8 "2025-02-14T10:11:51Z")

</div>

@Renuka.U

1. You have not shared a single line of code on how the screenshot should be attached.
2. You didn’t mention at which point you see the image on filesystem but not on the web ui ? Is this in the robot’s output directory or in the temporary directory `allure serve` creates.
3. You dont mention if the image looks like broken image or not.
4. And one more; Is the “image missing” from the `attach file` keyword or from the screenshot keyword ?

If the screenshot is just missing from `Take Screenshot` keyword. This feels like a bug in allure itself, not even on the listener / library portion of allure-robotframework package. Albeit, it could be because of changes to RF since 6.1…

EDIT; Im making a bet that this is a bug in allure. `Attach File` keyword works just fine and the screenshot can be downloaded from allure but the screenshot is not copied into data/attachments/ folder so that it doesn’t show in allure like this:

 ![Screenshot 2025-02-14 at 12.37.40](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/7/741e208dcca6314514b997ea0f599f9990e9c06e.png)

**Same issue happens with `allure generate --single-file`**

Next, when running `allure serve`, it prints out following:

Generating report to temp directory…  
Report successfully generated to /var/folders/8t/p8j6rj4s0yl3vkqc\_wcc19wh0000gn/T/17798986160415926529/allure-report  
Starting web server…  
2025-02-14 12:34:51.683:INFO::main: Logging initialized @879ms to org.eclipse.jetty.util.log.StdErrLog  
Server started at [http://127.0.0.1:49467/](http://127.0.0.1:49467/). Press \<Ctrl+C\> to exit

If copy the missing image into `/var/folders/8t/p8j6rj4s0yl3vkqc_wcc19wh0000gn/data/attachments`, screenshot is shown:

 ![Screenshot 2025-02-14 at 12.42.35](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/b/b0f59aadc19d0537e6145dded6f9dd4ceea2525c.jpeg)

Definitely feels like a bug in allure

---

<div class="post-metadata">

**Author:** ![rasjani](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@rasjani](https://forum.robotframework.org/u/rasjani)\
**Post date:** [17 February 2025 07:05 UTC](https://forum.robotframework.org/t/allure-report-is-not-displaying-failed-test-case-screenshot/8463/11 "2025-02-17T07:05:38Z")

</div>

> [@rasjani](#):
>
> - You have not shared a single line of code on how the screenshot should be attached.
> - You didn’t mention at which point you see the image on filesystem but not on the web ui ? Is this in the robot’s output directory or in the temporary directory `allure serve` creates.
> - You dont mention if the image looks like broken image or not.

^ read these and answered ?
