Class Reporting
java.lang.Object
com.qaitsolutions.pframe.core.extent_reporting.Reporting
Handles the logic of the ExtentReport in a user-friendly manner.
- Since:
- 1.0
- Author:
- Iulian Andrei (iulian.andrei@qaitsolutions.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateNode
(@NonNull String name) Creates a new test node with given name.createReport
(@NonNull String filename) Creates an Extent Report object with current report pathcreateReport
(@NonNull String path, @NonNull String filename) Creates an Extent Report object.createTest
(@NonNull String name) Creates a new test with given name.void
flush()
Generates report.boolean
isCurrentNode
(@NonNull String name) Checks if the name of the current node is as given.boolean
isCurrentTest
(@NonNull String name) Checks if the name of the current test is as given.log()
Provides access to current log.renameCurrentNode
(@NonNull String name) Renames the current node in Extent Reports.renameCurrentTest
(@NonNull String name) Renames the current test in Extent Reports.
-
Constructor Details
-
Reporting
public Reporting()
-
-
Method Details
-
createReport
Creates an Extent Report object with current report path- Parameters:
filename
- Filename of html report (e.g. index).- Returns:
- A self reference.
-
createReport
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
Creates a new test with given name.- Parameters:
name
- Name of the new test.- Returns:
- A self reference.
-
renameCurrentTest
Renames the current test in Extent Reports.- Parameters:
name
- Name to used in renaming.- Returns:
- A self reference.
-
isCurrentTest
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
Creates a new test node with given name.- Parameters:
name
- Name of the new node.- Returns:
- A self reference.
-
renameCurrentNode
Renames the current node in Extent Reports.- Parameters:
name
- Name to used in renaming.- Returns:
- A self reference.
-
isCurrentNode
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
Provides access to current log.- Returns:
- Log from existing reporting.
-