Failures' report


NBi execution and failures’ analysis display by default the first 10 rows of a result-set or the first 10 items of a list. It’s possible to override this behavior in the config file of a test-suite.

To achieve this, you must edit the nbi element in your config file and add a child element named failure-report-profile.

The first two attributes specify the maximum count of rows (items). The first one, threshold-sample-items specify when the full list will not be rendered and only a subset of the items of this list will be rendered. The second named max-sample-items specifies how many items will contain this subset.

Then, you’ve three attributes to specify when the previous values will be effectively in use. For each set rendered in a report you can define three values:

  • None: this set will never be rendered
  • Sample: the two previously defined attributes will be applied. Meaning that if the set to render has more attributes than threshold-sample-items, only max-sample-items will be rendered. If the set contains less than threshold-sample-items items then the whole set will be rendered.
  • Full: the whole set will be rendered even if it contains more items than the value defined for the attribute threshold-sample-items.
<nbi>
    <failure-report-profile
        threshold-sample-items="50"
        max-sample-items="25"
        expected-set="None"
        actual-set="Sample"
        analysis-set="Full"
    />
</nbi>

For your information, the equivalent notation of the default profile is

<nbi>
    <failure-report-profile
        max-sample-items="10"
        threshold-sample-items="15"
        expected-set="Sample"
        actual-set="Sample"
        analysis-set="Sample"
    />
</nbi>