-
Notifications
You must be signed in to change notification settings - Fork 90
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
Consolidated report for retry runs #245
Comments
I have to disagree here because we frequently run the same scenario multiple times and we need this information in the report. Also, Cluecumber shows the exact information that is included in the json file. Omitting something because of the same uri/name is actually falsifying this information. |
Fair enough, point understood. Can this be implemented with a toggle on\off option in the report. Select it and only the latest scenario execution results are displayed. Else the default display of all execution results. |
Yes, a configuration option is a good idea actually. I'll keep this in mind. |
Hello @bischoffdev - I see that this feature will be really useful when we dont care about first run and like to override report by second run results. This feature is available in this reporting plugin |
I will look at this again |
FYI @grasshopper7 the new feature added in the latest version v.3.5.0 might suit your needs |
Is your feature request related to a problem? Please describe.
When there is a retry runner the report generated by the plugin contains duplicate lines for the same scenarios which had failed initially and may have passed\failed on rerun. This is a pain as the report does not reflect the true picture. A pretty frequent situation with Selenium's element not found exceptions.
Describe the solution you'd like
Scenarios which are available multiple times should be filtered and sorted such that only the latest one is taken into consideration in the report.
A class to filter the latest
Element
objects from theReport
list can be called before the below line of codeCluecumberReportPlugin
.https://github.com/trivago/cluecumber-report-plugin/blob/b13b2edd2d3a647a3c5830f3946b072c40c6e659/plugin-code/src/main/java/com/trivago/cluecumber/CluecumberReportPlugin.java#L116
The
Report
objects would be collected in a Map with the key as a combination of the feature file uri and the line number of the scenario. The value will be a list of the appropriate Report & Element combinations. Remove entries for which the value list size is less than 2.Each values in the map can be sorted on the basis of the starttime timestamp available on the
Element
object. For each the first and latestElement
and also the originalReport
can be determined. Remove the firstElement
from the originalReport
and add the latestElement
to it. Something like below.This can be controlled by using a
retry
flag with default false value, which can be setup in the pom plugin section.The text was updated successfully, but these errors were encountered: