public class DocumentConfig extends LogSettings
displayCallerClass, logTimeFormat| Constructor and Description |
|---|
DocumentConfig(String filePath) |
| Modifier and Type | Method and Description |
|---|---|
DocumentConfig |
addCustomStyles(String styles)
Use custom CSS directly for the document to change layout
|
DocumentConfig |
addCustomStylesheet(String cssFilePath)
Use a custom stylesheet file with CSS
|
DocumentConfig |
chartTitle(Chart chart,
String title)
Allows changing the title of the dashboard charts
|
DocumentConfig |
displayCallerClass(Boolean display)
Setting to append the caller class to the log event.
|
DocumentConfig |
displayTestHeaders(Boolean display)
Deprecated.
|
DocumentConfig |
documentTitle(String title)
Change the title of the report file
|
DocumentConfig |
insertJS(String script)
Adds custom scripts to the report
|
DocumentConfig |
renewSystemInfo() |
DocumentConfig |
reportHeadline(String headline)
Add, remove or modify the report summary
|
DocumentConfig |
reportTitle(String title)
Add, remove or modify the report summary
|
DocumentConfig |
setImageSize(String percent)
Sets the size of the attached snapshots by percentage.
|
DocumentConfig |
statusIcon(LogStatus status,
String newIcon)
Choose to use your own icons for log status (PASS, FAIL, WARNING etc.)
by choosing one of the icons from Fontawesome website:
http://fortawesome.github.io/Font-Awesome/icons/.
|
DocumentConfig |
useExtentFooter(Boolean display)
Setting to show or hide the default Extent footer
By default, this is FALSE
|
public DocumentConfig(String filePath)
filePath - Path of the HTML file with .htm or .html extensionpublic DocumentConfig statusIcon(LogStatus status, String newIcon)
status - LogStatusnewIcon - Icon string from font-awesome@Deprecated public DocumentConfig displayTestHeaders(Boolean display)
display - Setting FALSE will remove the TH headers from the test tablepublic DocumentConfig useExtentFooter(Boolean display)
display - Setting FALSE will hide the default Extent footerpublic DocumentConfig insertJS(String script)
script - JavaScript code to be used for the reportpublic DocumentConfig reportHeadline(String headline)
headline - Report summarypublic DocumentConfig reportTitle(String title)
title - Title of the reportpublic DocumentConfig addCustomStylesheet(String cssFilePath)
cssFilePath - Path of the CSS stylesheet filepublic DocumentConfig addCustomStyles(String styles)
styles - CSS style stringpublic DocumentConfig documentTitle(String title)
title - Document titlepublic DocumentConfig renewSystemInfo()
public DocumentConfig displayCallerClass(Boolean display)
display - Shows the caller class in the report steppublic DocumentConfig setImageSize(String percent)
Usage: extent.setImageSize("40%");
percent - Size of the image in percentagepublic DocumentConfig chartTitle(Chart chart, String title)
chart - TEST_SET, TESTtitle - New title of the chartCopyright © 2015. All rights reserved.