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

Aperta
#887 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
814
Fork
260
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Riproduci l’allegato image-diff con le versioni fornite di allure-robotframework, Robot Framework e allure-commandline, utilizzando le immagini expected, actual e diff con altezze diverse. Determina se il comportamento del comparator appartiene al Python listener o al report generato, quindi verifica che Show overlay visualizzi l’intera altezza dell’immagine più alta.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
testing-qa
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.