java.lang.Object
com.qaitsolutions.pframe.core.extent_reporting.ExtentLogger

public final class ExtentLogger extends Object
Wrapper class over ExtentTest.

Since:
1.0
Author:
Iulian Andrei (iulian.andrei@qaitsolutions.com)
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    fail(@NonNull String message)
    Logs in report as failed section.
    void
    info(@NonNull com.aventstack.extentreports.markuputils.Markup markup)
    Method logs message as info section with markup (codeblocks, labels, lists etc).
    void
    info(@NonNull String message)
    Logs message as info section.
    void
    info(@NonNull String message, @NonNull com.aventstack.extentreports.model.Media media)
    Logs message as info section with screenshot.
    void
    pass(@NonNull String message)
    Logs in report as passed section.
    void
    skip(@NonNull String message)
    Logs in report as passed section.
    void
    warning(@NonNull String message)
    Logs in report as warning section.

    Methods inherited from class java.lang.Object

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

    • ExtentLogger

      public ExtentLogger()
  • Method Details

    • info

      public void info(@NonNull @NonNull String message)
      Logs message as info section. Wrapper over ExtentTest.info(String). Wrapper over ExtentTest.info(String).

      Parameters:
      message - Text to be added to report.
    • info

      public void info(@NonNull @NonNull String message, @NonNull @NonNull com.aventstack.extentreports.model.Media media)
      Logs message as info section with screenshot. Wrapper over ExtentTest.info(String, Media).

      Parameters:
      message - Text to be added to report.
      media - Media to be added to report.
    • info

      public void info(@NonNull @NonNull com.aventstack.extentreports.markuputils.Markup markup)
      Method logs message as info section with markup (codeblocks, labels, lists etc). Wrapper over ExtentTest.info(Markup).

      Parameters:
      markup - Markup to be added to report.
    • warning

      public void warning(@NonNull @NonNull String message)
      Logs in report as warning section. Wrapper over ExtentTest.warning(String).

      Parameters:
      message - Text to be added to report.
    • fail

      public void fail(@NonNull @NonNull String message)
      Logs in report as failed section. Wrapper over ExtentTest.fail(String).

      Parameters:
      message - Text to be added to report.
    • pass

      public void pass(@NonNull @NonNull String message)
      Logs in report as passed section. Wrapper over ExtentTest.pass(String).

      Parameters:
      message - Text to be added to report.
    • skip

      public void skip(@NonNull @NonNull String message)
      Logs in report as passed section. Wrapper over ExtentTest.skip(String).

      Parameters:
      message - Text to be added to report.