Class ReportManager
java.lang.Object
com.shaft.tools.io.ReportManager
Public facade for SHAFT's reporting and logging subsystem.
Provides static methods to emit log entries and report steps during
test execution. Messages logged via log(String) appear as
visible steps in the Allure execution report, while messages logged
via logDiscrete(String) are recorded only in the execution
log file.
This is a utility class and cannot be instantiated.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidCreates a custom log entry that will also be added as a step in the execution reportstatic voidCreates a custom log entry at the specified log level that will also be added as a step in the execution reportstatic voidlogDiscrete(String logText) Creates a custom log entry that will not be added as a step in the execution report, but you can see it in the attached execution log txt filestatic voidlogDiscrete(String logText, org.apache.logging.log4j.Level logLevel) Creates a custom log entry at the specified log level that will not appear as a step in the execution report, but is recorded in the attached execution log text file.
-
Method Details
-
log
Creates a custom log entry that will also be added as a step in the execution report- Parameters:
logText- the text that will be logged by action
-
log
Creates a custom log entry at the specified log level that will also be added as a step in the execution report- Parameters:
logText- the text that will be logged by actionlogLevel- the log level to use (e.g., Level.ERROR, Level.WARN, Level.INFO)
-
logDiscrete
Creates a custom log entry that will not be added as a step in the execution report, but you can see it in the attached execution log txt file- Parameters:
logText- the text that will be logged by action
-
logDiscrete
Creates a custom log entry at the specified log level that will not appear as a step in the execution report, but is recorded in the attached execution log text file.- Parameters:
logText- the text that will be loggedlogLevel- the log level to use (e.g.,Level.INFO,Level.DEBUG)
-