Java – add custom information to the jbehave HTML report

When generating the report, jbehave will automatically put the story content into the report, and assertion failure may occur So far, it's very good However, I would like to add some information, especially (but not necessarily limited to) failed steps

In a specific case, the test will generate random file names to ensure uniqueness when running the scenario I want these names generated in my @ given or @ when annotated methods to be included in the report

I found the document a little lacking / confused Did I miss something obvious

Solution

See:

Additional logging JBehave

In your case, you must store the generated file name as the properties of the test driver and print it out at the end

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>