Package com.polarion.alm.tracker
Class DelegatingTestsFileProcessor
java.lang.Object
com.polarion.alm.tracker.DelegatingTestsFileProcessor
- All Implemented Interfaces:
ITestsFileProcessor
Extend this class if you just want to do some processing after another processor does it's work.
- Since:
- 3.6.1
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.polarion.alm.tracker.ITestsFileProcessor
ITestsFileProcessor.FileReaderSource, ITestsFileProcessor.ReaderSource, ITestsFileProcessor.ResultsSummary, ITestsFileProcessor.StringReaderSource
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addContent
(String content) Adds content to be processed as String, can be called more times.void
addSources
(List<ITestsFileProcessor.ReaderSource> sources) Adds sources to be processed, can be called more times.process()
Invokes the processing.void
setDefectTemplate
(IWorkItem workItem) Sets template Work Item for creating defect work items.void
setMaxCreatedDefects
(Integer maxCreatedDefects) Sets limit for how many defects per source should be created, summary defect is created instead of individual defect when this limit is reached.void
setMaxCreatedDefectsPercent
(Integer maxCreatedDefectsPercent) Sets limit for percent of failed tests for which defects should be created, summary defect is created instead of individual defect when this limit is reached.void
setProperties
(Map<String, String> properties) Sets custom properties for this processor.void
setTestCaseTemplate
(IWorkItem workItem) Sets template Work Item for creating test case work items.void
setTestRun
(ITestRun testRun) Sets Test Run to which the records will be added
-
Constructor Details
-
DelegatingTestsFileProcessor
-
-
Method Details
-
setTestRun
Description copied from interface:ITestsFileProcessor
Sets Test Run to which the records will be added- Specified by:
setTestRun
in interfaceITestsFileProcessor
-
setProperties
Description copied from interface:ITestsFileProcessor
Sets custom properties for this processor.- Specified by:
setProperties
in interfaceITestsFileProcessor
-
process
Description copied from interface:ITestsFileProcessor
Invokes the processing.- Specified by:
process
in interfaceITestsFileProcessor
- Returns:
- - never null
-
addContent
Description copied from interface:ITestsFileProcessor
Adds content to be processed as String, can be called more times.- Specified by:
addContent
in interfaceITestsFileProcessor
-
addSources
Description copied from interface:ITestsFileProcessor
Adds sources to be processed, can be called more times.- Specified by:
addSources
in interfaceITestsFileProcessor
-
setMaxCreatedDefects
Description copied from interface:ITestsFileProcessor
Sets limit for how many defects per source should be created, summary defect is created instead of individual defect when this limit is reached. Value from configuration will be used when null, zero or negative- Specified by:
setMaxCreatedDefects
in interfaceITestsFileProcessor
-
setMaxCreatedDefectsPercent
Description copied from interface:ITestsFileProcessor
Sets limit for percent of failed tests for which defects should be created, summary defect is created instead of individual defect when this limit is reached. Value from configuration will be used when null, zero or negative.- Specified by:
setMaxCreatedDefectsPercent
in interfaceITestsFileProcessor
-
setTestCaseTemplate
Description copied from interface:ITestsFileProcessor
Sets template Work Item for creating test case work items. Value from configuration will be used when null.- Specified by:
setTestCaseTemplate
in interfaceITestsFileProcessor
-
setDefectTemplate
Description copied from interface:ITestsFileProcessor
Sets template Work Item for creating defect work items. Value from configuration will be used when null.- Specified by:
setDefectTemplate
in interfaceITestsFileProcessor
-