-
-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Edit custom fields in summary report at runtime #3446
Comments
@wakaleo This page doesn't tell me how to overwrite the values from the code. According to my requirements, I would like the "ApplicationVersion" custom field to overwrite from 1.0.0 to 1.0.1 based solely on the code being executed, and not the values set before execution. The value for ApplicationVersion can be fetched via an API call, but I can't figure out how I would overwrite the older value. Here's a step by step breakdown of what I'm looking for: Initial Command: (ApplicationVersion = 1.0.0)
(ApplicationVersion = 1.0.1)
|
This would add data to the index report though, right? |
That is not currently supported but you are more than welcome to propose a PR to update the Thymeleaf template files in the serenity-single-page-report module to allow for this. Alternatively, if this is valuable for your company, you can always request a commercial support package (these start at as little as $395 per month so are very good value from a corporate perspective). |
This is a use case specifically for my project and not a company-wide requirement, so it's unlikely that we'll get the package, but I'll look into proposing a PR |
Hi!
Is it possible to update the values of the custom fields that are being used when generating the serenity-summary.html report?
My current project takes in a system property named "ApplicationVersion" through the VM Options, and adds the value passed to it to the serenity-summary report.
This is defined in my serenity.properties file as such
However, I would like to make it so that the value of this variable is fetched and updated dynamically.
So if my cmd arguments are something like
and the latest version is 1.0.1, the 1.0.0 is overridden with 1.0.1 and the summary report shows the same.
I've tried the following methods, but they don't seem to work. These were placed in the Runner file with JUnit's "Before" annotation
I had the initial value set to 1.0.0, and the value to update it with (currently hard coded) as 1.0.1.
However, in the serenity-summary.html report, the value remained as 1.0.0.
Is there a way to do this?
Same Query on Stack Overflow
The text was updated successfully, but these errors were encountered: