allure-java icon indicating copy to clipboard operation
allure-java copied to clipboard

Add screenshots for passed steps feature for allure-java

Open occupant23 opened this issue 4 years ago • 3 comments

Context

A lot of our customers and users Allure requested the feature to easily create screenshots also if a Step passes. I tried to match the style of the already available functions. I added a unit test for this functionality and adjusted the old ones.

Checklist

occupant23 avatar Jan 22 '21 13:01 occupant23

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jan 22 '21 13:01 CLAassistant

@baev @eroshenkoam : Could somebody have a look at this?

occupant23 avatar Mar 04 '21 10:03 occupant23

Is there any progress? I am using allure selenide and in selenide has enabled screenshot on success TRUE but in allure report, I am getting broken img Is that somehow related?

sergsol avatar Mar 19 '21 20:03 sergsol

Allure has https://github.com/allure-framework/allure-java/blob/master/allure-java-commons/src/main/java/io/qameta/allure/listener/StepLifecycleListener.java that can be used to add any additional data per Allure step no matter what framework is used.

baev avatar Feb 21 '23 04:02 baev