public class ExtentHtmlReporterConfiguration extends BasicFileConfiguration implements IReporterConfiguration
Constructor and Description |
---|
ExtentHtmlReporterConfiguration() |
Modifier and Type | Method and Description |
---|---|
boolean |
getAutoCreateRelativePathMedia() |
boolean |
getChartVisibilityOnOpen() |
java.util.Map<java.lang.String,java.lang.String> |
getConfigMap() |
boolean |
getCreateOfflineReport() |
java.util.List<Status> |
getLevel() |
Protocol |
getProtocol() |
java.lang.String |
getReportName() |
ChartLocation |
getTestViewChartLocation() |
void |
setAutoCreateRelativePathMedia(boolean v)
Setting to automatically store screen shots relative to the path.
|
void |
setChartVisibilityOnOpen(boolean chartVisibilityOnOpen)
For
ExtentHtmlReporter , sets the configuration to allow viewing or hiding charts on report open |
void |
setCreateOfflineReport(boolean v)
Creates the HTML report, saving all resources (css, js, fonts) in the same location, so the
report can be viewed without an internet connection
|
void |
setLevel(Status... level) |
void |
setProtocol(Protocol protocol)
Sets the protocol of accessing CSS/JS resources from CDN
|
void |
setReportName(java.lang.String reportName) |
void |
setTestViewChartLocation(ChartLocation chartLocation)
For
ExtentHtmlReporter , sets the location of charts |
getCSS, getDocumentTitle, getEncoding, getExtentXUrl, getFilePath, getJS, getTheme, setCSS, setDocumentTitle, setEncoding, setExtentXUrl, setFilePath, setFilePath, setJS, setTheme
public void setProtocol(Protocol protocol)
Default protocol value: HTTPS
protocol
- Protocol, HTTPS or HTTPpublic Protocol getProtocol()
public void setTestViewChartLocation(ChartLocation chartLocation)
ExtentHtmlReporter
, sets the location of chartschartLocation
- Locationpublic ChartLocation getTestViewChartLocation()
public void setChartVisibilityOnOpen(boolean chartVisibilityOnOpen)
ExtentHtmlReporter
, sets the configuration to allow viewing or hiding charts on report openchartVisibilityOnOpen
- true to view charts on report open, false to hidepublic boolean getChartVisibilityOnOpen()
public void setAutoCreateRelativePathMedia(boolean v)
/ Report.html Report.0 - 1.png - 2.png Report.1 - 1.png - 2.png
Report.0 directory will contain media from the 1st run. Report.1 directory will contain media from the 2nd run.
v
- Setting to enable this featurepublic boolean getAutoCreateRelativePathMedia()
public void setCreateOfflineReport(boolean v) throws InvalidFileException
v
- Setting to enable an offline accessible reportInvalidFileException
- Exception thrown if the HTML file or path was not specifiedpublic boolean getCreateOfflineReport()
public java.util.Map<java.lang.String,java.lang.String> getConfigMap()
public void setLevel(Status... level)
public java.util.List<Status> getLevel()
public void setReportName(java.lang.String reportName)
public java.lang.String getReportName()