Package com.polarion.alm.tracker
Interface ITrackDefectByRulesBuilder
public interface ITrackDefectByRulesBuilder
- Since:
- 3.17.3
-
Method Summary
Modifier and TypeMethodDescriptionforRecord
(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.withDefectTemplate
(IWorkItem defectTemplate) Specify which defect template to use when creating a new defect.withSummaryDefect
(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.
-
Method Details
-
withDefectTemplate
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
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
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.
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.)
-