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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContent(String content) Adds content to be processed as String, can be called more times.voidaddSources(List<ITestsFileProcessor.ReaderSource> sources) Adds sources to be processed, can be called more times.process()Invokes the processing.voidsetDefectTemplate(IWorkItem workItem) Sets template Work Item for creating defect work items.voidsetMaxCreatedDefects(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.voidsetMaxCreatedDefectsPercent(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.voidsetProperties(Map<String, String> properties) Sets custom properties for this processor.voidsetTestCaseTemplate(IWorkItem workItem) Sets template Work Item for creating test case work items.voidsetTestRun(ITestRun testRun) Sets Test Run to which the records will be added
-
Constructor Details
-
DelegatingTestsFileProcessor
-
-
Method Details
-
setTestRun
Description copied from interface:ITestsFileProcessorSets Test Run to which the records will be added- Specified by:
setTestRunin interfaceITestsFileProcessor
-
setProperties
Description copied from interface:ITestsFileProcessorSets custom properties for this processor.- Specified by:
setPropertiesin interfaceITestsFileProcessor
-
process
Description copied from interface:ITestsFileProcessorInvokes the processing.- Specified by:
processin interfaceITestsFileProcessor- Returns:
- - never null
-
addContent
Description copied from interface:ITestsFileProcessorAdds content to be processed as String, can be called more times.- Specified by:
addContentin interfaceITestsFileProcessor
-
addSources
Description copied from interface:ITestsFileProcessorAdds sources to be processed, can be called more times.- Specified by:
addSourcesin interfaceITestsFileProcessor
-
setMaxCreatedDefects
Description copied from interface:ITestsFileProcessorSets 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:
setMaxCreatedDefectsin interfaceITestsFileProcessor
-
setMaxCreatedDefectsPercent
Description copied from interface:ITestsFileProcessorSets 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:
setMaxCreatedDefectsPercentin interfaceITestsFileProcessor
-
setTestCaseTemplate
Description copied from interface:ITestsFileProcessorSets template Work Item for creating test case work items. Value from configuration will be used when null.- Specified by:
setTestCaseTemplatein interfaceITestsFileProcessor
-
setDefectTemplate
Description copied from interface:ITestsFileProcessorSets template Work Item for creating defect work items. Value from configuration will be used when null.- Specified by:
setDefectTemplatein interfaceITestsFileProcessor
-