extent-framework / extentreports-java

Extent Reporting Library, Java
http://extentreports.com
Apache License 2.0
220 stars 126 forks source link

Test case is showing as pass even though its failing #406

Closed yasinyilmazzz closed 1 year ago

yasinyilmazzz commented 1 year ago

Test case is showing as pass even though its failing, but take screenshot on failed step

image
anshooarora commented 1 year ago

Looks like the failed status isn't passed to the test. The default status on each step is PASS - the other steps may be showing the default status. On failure, within your hook, you can:

test.fail("details");