public abstract class ConfigurableReporter extends 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(InputStream stream)
Loads configuration from an
InputStream which is a
Properties file |
void |
loadConfig(Properties properties)
Loads configuration from a Properties file
|
void |
loadConfig(String filePath)
Loads configuration from an path which is a
Properties file |
void |
loadXMLConfig(File file,
Boolean silent)
Loads configuration from an XML file
|
void |
loadXMLConfig(String filePath)
Loads configuration from an XML file
|
void |
loadXMLConfig(String filePath,
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(String filePath, Boolean silent)
filePath - Configuration file pathsilent - Load configuration silently, no errors are thrown if the configuration file is not presentpublic void loadXMLConfig(String filePath)
filePath - configuration file pathpublic void loadXMLConfig(File file, Boolean silent)
file - configuration Filesilent - If silent, no errors will be thrownpublic void loadConfig(Properties properties)
properties - a Properties objectpublic void loadConfig(InputStream stream)
InputStream which is a
Properties filestream - an InputStreampublic void loadConfig(String filePath)
Properties filefilePath - Properties file pathCopyright © 2018. All rights reserved.