I am trying to add the application version number that is displayed in the login page in the serenity report. Currently I am just capturing it in the code and printing in the console. Is there anyway the console output can be included in the serenity index.html
Asked
Active
Viewed 966 times
2 Answers
1
Take a look at the following property of Serenity:
serenity.project.name
It displays a project name in the top-right corner of the test case report (not the main Serenity page though). I have not tried this, but you might override that property each time you run prior to when Serenity kicks in. Here's what it would look like:
Alternatively, you could provide a final String
with version to a test case tag, e.g. with @WithTag
or @WithTags
or @WithTagValuesOf
annotations. Example:
final String version = "1.0";
// ...
@Test
@WithTagValuesOf({ "version:" + version })
// test method here
Result:
Hope you will find this useful.

JDelorean
- 631
- 13
- 26