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

public final class Reporting extends Object
Handles the logic of the ExtentReport in a user-friendly manner.

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

    • Reporting

      public Reporting()
  • Method Details

    • createReport

      public Reporting createReport(@NonNull @NonNull String filename)
      Creates an Extent Report object with current report path

      Parameters:
      filename - Filename of html report (e.g. index).
      Returns:
      A self reference.
    • createReport

      public Reporting createReport(@NonNull @NonNull String path, @NonNull @NonNull String filename)
      Creates an Extent Report object.

      Parameters:
      path - Path where the report will be stored (e.g. target/reports/ or target/reports).
      filename - Filename of html report (e.g. index).
      Returns:
      A self reference.
    • createTest

      public Reporting createTest(@NonNull @NonNull String name)
      Creates a new test with given name.

      Parameters:
      name - Name of the new test.
      Returns:
      A self reference.
    • renameCurrentTest

      public Reporting renameCurrentTest(@NonNull @NonNull String name)
      Renames the current test in Extent Reports.

      Parameters:
      name - Name to used in renaming.
      Returns:
      A self reference.
    • isCurrentTest

      public boolean isCurrentTest(@NonNull @NonNull String name)
      Checks if the name of the current test is as given.

      Parameters:
      name - Name to be checked against current test name.
      Returns:
      True if the current test name is as given | False if the current test name is not as given.
    • createNode

      public Reporting createNode(@NonNull @NonNull String name)
      Creates a new test node with given name.

      Parameters:
      name - Name of the new node.
      Returns:
      A self reference.
    • renameCurrentNode

      public Reporting renameCurrentNode(@NonNull @NonNull String name)
      Renames the current node in Extent Reports.

      Parameters:
      name - Name to used in renaming.
      Returns:
      A self reference.
    • isCurrentNode

      public boolean isCurrentNode(@NonNull @NonNull String name)
      Checks if the name of the current node is as given.

      Parameters:
      name - Name to be checked against current node name.
      Returns:
      True if the current node name is as given | False if the current node name is not as given.
    • flush

      public void flush()
      Generates report.
    • log

      public ExtentLogger log()
      Provides access to current log.

      Returns:
      Log from existing reporting.