com.polarion.alm.tracker.ITrackDefectByRulesBuilder


METHODS
Modifiers and TypeNameDescription
ITrackDefectByRulesBuilder withDefectTemplate(IWorkItem) 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.
ITrackDefectByRulesBuilder withSummaryDefect(IWorkItem) 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.
ITrackDefectByRulesBuilder forRecord(ITestRecord) 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.)


Back to Index