Class ErrorReporterImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      ErrorReporterImpl​(org.openqa.selenium.WebDriver webdriver, org.testng.ITestContext testContext)  
    • Method Summary

      All Methods Instance Methods Concrete 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.
      void writeOutputPaths()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ErrorReporterImpl

        public ErrorReporterImpl​(org.openqa.selenium.WebDriver webdriver,
                                 org.testng.ITestContext testContext)
    • Method Detail

      • writeErrorReport

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