Add Custom Information to JBehave HTML Report

When creating reports, JBehave automatically puts the contents of the story into the report along with possible approval failures. So far, so good. However, I would like to add additional information, especially (but not necessarily limited to) unsuccessful steps.

In a specific case, the test generates random file names to ensure uniqueness when running the script. I would like these names that were generated in my annotated @Given or @When methods to be included in the report.

I found that the documentation is a bit missing / confusing. Am I missing something?

+4
source share
1 answer

Cm:

Optional JBehave Magazine

In your case, you will need to save the generated file names as attributes of the test driver and print them at the end.

+1
source

Source: https://habr.com/ru/post/1392874/


All Articles