Interface ErrorReporter

  • All Known Implementing Classes:
    ErrorReporterImpl

    public interface ErrorReporter
    Responsible for writing an error report for the current test, after an assertion fails. The HTML source for the page is downloaded and written to a file in the TestNG output directory (in a file named after the test).
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void writeErrorReport​(java.lang.String reportText)
      Writes an error report file into the TestNG output directory, based on the name of the test, containing the current page content.
    • Method Detail

      • writeErrorReport

        void writeErrorReport​(java.lang.String reportText)
        Writes an error report file into the TestNG output directory, based on the name of the test, containing the current page content.
        Parameters:
        reportText - text to store in an associated .txt file, describing the failure.