public abstract class ConfigurableReporter extends java.lang.Object implements ExtentReporter
| Modifier and Type | Field and Description |
|---|---|
protected ConfigMap |
configContext
A key-value pair holding information from default and the
user-provided configuration
|
| Constructor and Description |
|---|
ConfigurableReporter() |
| Modifier and Type | Method and Description |
|---|---|
ConfigMap |
getConfigContext()
Returns the current configuration (default and user-defined)
|
void |
loadConfig(java.io.InputStream stream)
Loads configuration from an
InputStream which is a
Properties file |
void |
loadConfig(java.util.Properties properties)
Loads configuration from a Properties file
|
void |
loadConfig(java.lang.String filePath)
Loads configuration from an path which is a
Properties file |
void |
loadXMLConfig(java.io.File file,
java.lang.Boolean silent)
Loads configuration from an XML file
|
void |
loadXMLConfig(java.lang.String filePath)
Loads configuration from an XML file
|
void |
loadXMLConfig(java.lang.String filePath,
java.lang.Boolean silent)
Loads configuration from an XML file
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflush, getReporterName, start, stoponAuthorAssigned, onCategoryAssigned, onDeviceAssigned, onLogAdded, onNodeStarted, onScreenCaptureAdded, onScreenCaptureAdded, onScreencastAdded, onTestRemoved, onTestStartedgetAnalysisStrategy, setAnalysisStrategyprotected ConfigMap configContext
public void loadXMLConfig(java.lang.String filePath,
java.lang.Boolean silent)
filePath - Configuration file pathsilent - Load configuration silently, no errors are thrown if the configuration file is not presentpublic void loadXMLConfig(java.lang.String filePath)
filePath - configuration file pathpublic void loadXMLConfig(java.io.File file,
java.lang.Boolean silent)
file - configuration Filesilent - If silent, no errors will be thrownpublic void loadConfig(java.util.Properties properties)
properties - a Properties objectpublic void loadConfig(java.io.InputStream stream)
InputStream which is a
Properties filestream - an InputStreampublic void loadConfig(java.lang.String filePath)
Properties filefilePath - Properties file pathCopyright © 2018. All Rights Reserved.