Interface ITrackDefectByRulesBuilder


public interface ITrackDefectByRulesBuilder
Since:
3.17.3
  • Method Details

    • withDefectTemplate

      @NotNull ITrackDefectByRulesBuilder withDefectTemplate(@Nullable IWorkItem defectTemplate)
      Specify which defect template to use when creating a new defect. If no defect template is supplied, the default will be selected from the configuration.
    • withSummaryDefect

      @NotNull ITrackDefectByRulesBuilder withSummaryDefect(@Nullable IWorkItem summaryDefect)
      Call this method if you don't want to create a separate defect for this Test Record, but use a summary defect instead. If the Test Record already contains a defect, it will be updated and the summary defect will be ignored.
    • forRecord

      @NotNull ITrackDefectByRulesBuilder forRecord(@NotNull ITestRecord record)
      If the result of the Test Record has the "createDefect" property set to true, it executes the processing of a given Test Record and one of the following will happen. (Ordered by priority):
      • If the Test Record already has a defect, it will be updated.
      • If the summary defect is specified, it will be linked to the Test Record instead.
      • A defect will be found and updated, or created depending on the defect reuse strategy.
      It can be called multiple times on the same builder for several Test Records.

      Note: The Test Run that the Test Record belongs to must already be persisted. (If the Test Run is just being created, save method must be called on it before calling this method.)