Class TestLogWriter

  • @Component
    public class TestLogWriter
    extends Object
    Helper class to write to the test log. The test log is meant to include all steps necessary to reproduce a test scenario execution:
    • Test scenario and test steps
    • Webdriver actions (click, type, find etc.)
    • Optional entry-exit logs for steps and page object (and other) methods
    • Error messages
    • Constructor Detail

      • TestLogWriter

        public TestLogWriter()
    • Method Detail

      • log

        public void log​(int logLevel,
                        int indent,
                        String message,
                        Object... params)
        logLevel - log level LogLevel
        indent - optional indentation for this log line
        message - log message
        params - parameter (will be filled into
        in the log message)