Package com.polarion.alm.tracker
Interface ITestsFileProcessor
- All Known Implementing Classes:
AbstractTestsFileProcessor
,DelegatingTestsFileProcessor
public interface ITestsFileProcessor
Interface of processor of tests results files, for example xUnit xml files.
- Since:
- 3.6.0
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static interface
Source for the processor.static class
static class
-
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 value) 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
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
-
Method Details
-
addContent
Adds content to be processed as String, can be called more times. -
addSources
Adds sources to be processed, can be called more times. -
setTestRun
Sets Test Run to which the records will be added -
setMaxCreatedDefects
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 -
setMaxCreatedDefectsPercent
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. -
setTestCaseTemplate
Sets template Work Item for creating test case work items. Value from configuration will be used when null. -
setDefectTemplate
Sets template Work Item for creating defect work items. Value from configuration will be used when null. -
setProperties
Sets custom properties for this processor.- Since:
- 3.6.1
-
process
ITestsFileProcessor.ResultsSummary process()Invokes the processing.- Returns:
- - never null
-