allure-framework / allure-framework/allure-python

When I attach an image diff with Attach keyword, the report comparator has the height of the shortest image

未关闭
#887 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
815
派生
260
PR 合并指标
30 天内没有已合并 PR

描述

Hi everybody,

I'm using `allure-robotframework==2.15.2` with `robotframework==7.3.2`
My report is generated with allure-commandline version 2.34.1 `npx --yes allure-commandline generate`

When I attach images (diff, expected, actual) with Attach keyword, then the images displayed in "Show overlay" mode are too short. The bottom of the biggest images is hidden. I have to set the effective size of the `//div[@class="screen-diff__overlay screen-diff__container"]` to show it completely.

For example I've two images with different sizes :

- left img **2109px**
- right img **1907px**
- Comparator size **1926.9px** `//div[@class="screen-diff__overlay screen-diff__container"]`

I expect the comparator height to be at least **2109** instead of **1926**

I don't know if the issue is on allure report or in the listener allure-robotframework

Here is my snipet :
```
${dico}= Create Dictionary expected=data:image/png;base64,${expected_Base64}
... actual=data:image/png;base64,${actual_Base64} diff=data:image/png;base64,${diff_Base64}

${discoAsString} = Convert To String ${dico}
${discoAsStringDoubleQuote} Replace String ${discoAsString} ' "
${dicoAsJson} Convert String To Json ${discoAsStringDoubleQuote}
AllureLibrary.Attach ${discoAsStringDoubleQuote} name=Screenshot diff
... attachment_type=application/vnd.allure.image.diff
```

Thanks for feedback

贡献指南

打开贡献指南

调研方向

使用提供的 allure-robotframework、Robot Framework 和 allure-commandline 版本,并使用高度不同的 expected、actual 和 diff 图像,复现 image-diff 附件。确定 comparator 的行为属于 Python listener 还是生成的报告,然后验证 Show overlay 是否显示最高图像的完整高度。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
testing-qa
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。