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:
  • Method Details

    • addContent

      void addContent(String content)
      Adds content to be processed as String, can be called more times.
    • addSources

      void addSources(List<ITestsFileProcessor.ReaderSource> sources)
      Adds sources to be processed, can be called more times.
    • setTestRun

      void setTestRun(ITestRun testRun)
      Sets Test Run to which the records will be added
    • setMaxCreatedDefects

      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. Value from configuration will be used when null, zero or negative
    • setMaxCreatedDefectsPercent

      void setMaxCreatedDefectsPercent(Integer value)
      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

      void setTestCaseTemplate(IWorkItem workItem)
      Sets template Work Item for creating test case work items. Value from configuration will be used when null.
    • setDefectTemplate

      void setDefectTemplate(IWorkItem workItem)
      Sets template Work Item for creating defect work items. Value from configuration will be used when null.
    • setProperties

      void setProperties(Map<String,String> properties)
      Sets custom properties for this processor.
      Since:
      3.6.1
    • process

      Invokes the processing.
      Returns:
      - never null