Class TestNGTestReportCollector

java.lang.Object
com.atlassian.bamboo.plugins.testresultparser.testng.TestNGTestReportCollector
All Implemented Interfaces:
TestReportCollector

@ThreadSafe public class TestNGTestReportCollector extends Object implements TestReportCollector
  • Constructor Details

    • TestNGTestReportCollector

      public TestNGTestReportCollector()
  • Method Details

    • collect

      @NotNull public @NotNull TestCollectionResult collect(@NotNull @NotNull File file) throws Exception
      Collect all the results from all the xml test files.
      Specified by:
      collect in interface TestReportCollector
      Returns:
      testReportCollectorResult
      Throws:
      Exception - if a problem with processing the given file has occurred
    • canIgnoreResultsFrom

      public boolean canIgnoreResultsFrom(File file)
      Description copied from interface: TestReportCollector
      Checks if file "looks like" containing valid results for this test report collector.
      Specified by:
      canIgnoreResultsFrom in interface TestReportCollector
      Returns:
      true if file should not be handled by this test report collector
    • getSupportedFileExtensions

      @NotNull public @NotNull Set<String> getSupportedFileExtensions()
      Description copied from interface: TestReportCollector
      The valid file extension(s) of the test report file. Return empty Set if all extensions are supported.
      Specified by:
      getSupportedFileExtensions in interface TestReportCollector
      Returns:
      supportedFileExtensions