I want to write a custom error message in my OucentReports instance.
Tool use:
Cucumbers
Java
Selenium
Junit
Extentreports
What is happening now:
I have a cucumber script.
Given something When I do something Then this step fails
Failed to fail:
Assert.assertTrue("CUSTOM_FAIL_MSG", some_condition);
In ExtentReport I see 
What I want to achieve:

What I have investigated so far:
There is a scenario.write("") function, but this creates a new informational log in the report (But I'm looking for a CustomFailure message, not a new log entry)
scenario.stepResults has a row that appears in the report. However, I could not find a way to set some value in the same.
Any ideas on this?
junit4 selenium cucumber-java selenium-extent-report
Sakshi singla
source share