java.lang.Object
net.thucydides.core.reports.html.Formatter
Format text for HTML reports.
In particular, this integrates JIRA links into the generated reports.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringaddLineBreaks(String text) static StringaddMarkdownLineBreaks(String text) breadcrumbFormat(String parent, String child) net.thucydides.model.reports.html.ContextIconFormatterconvertAnyTables(String text) escapedXML(String text) escapeHtmlTags(String fieldValue) formatWithFields(String textToFormat) htmlAttributeCompatible(Object fieldValue) htmlAttributeCompatible(Object fieldValue, boolean renderNewLines) htmlAttributeCompatible(Object fieldValue, int maxLength) htmlCompatible(Object fieldValue) htmlCompatibleStepDescription(Object fieldValue) htmlCompatibleStoryTitle(Object fieldValue) htmlCompatibleTestTitle(Object fieldValue) humanReadableFormOf(String text) humanReadableTitle(String text) javascriptCompatible(Object value) messageBody(String message) plainHtmlCompatible(Object fieldValue) renderDescription(String text) renderDescriptionWithEmbeddedResults(String text, net.thucydides.model.requirements.reports.RequirementsOutcomes requirementsOutcomes) renderDescriptionWithFormattedTables(String text, net.thucydides.model.requirements.reports.RequirementsOutcomes requirementsOutcomes) renderHeaders(String text) renderMarkdown(String text) renderTableDescription(String text, net.thucydides.model.requirements.reports.RequirementsOutcomes requirementsOutcomes) renderText(String text) renderTitle(String text) net.thucydides.model.reports.html.ResultIconFormattertagLabel(net.thucydides.model.domain.TestTag tag) truncatedHtmlCompatible(String text, int length)
-
Field Details
-
FOUR_SPACES
- See Also:
-
TAB
- See Also:
-
NEW_LINE_ON_ANY_OS
- See Also:
-
UTF_8_NEW_LINE
- See Also:
-
UNICODE_CHARS_ESCAPE
-
-
Constructor Details
-
Formatter
public Formatter(net.thucydides.model.util.EnvironmentVariables environmentVariables) -
Formatter
public Formatter()
-
-
Method Details
-
renderMarkdown
-
renderMarkdownWithoutTags
-
escapedXML
-
renderText
-
renderHeaders
-
renderTitle
-
breadcrumbFormat
-
renderHtmlEscapedDescription
-
renderDescription
-
renderDescriptionWithEmbeddedResults
-
renderDescriptionWithFormattedTables
-
renderDescriptionWithFormattedTables
-
renderTableDescription
-
addLineBreaks
-
addMarkdownLineBreaks
-
convertAnyTables
-
htmlCompatible
-
tagLabel
-
javascriptCompatible
-
messageBody
-
restQuery
-
htmlCompatibleStoryTitle
-
escapeHtmlTags
-
htmlCompatibleTestTitle
-
htmlCompatibleStepDescription
-
plainHtmlCompatible
-
htmlAttributeCompatible
-
htmlAttributeCompatible
-
htmlAttributeCompatible
-
resultIcon
public net.thucydides.model.reports.html.ResultIconFormatter resultIcon() -
contextIcon
public net.thucydides.model.reports.html.ContextIconFormatter contextIcon() -
resultRank
-
truncatedHtmlCompatible
-
humanReadableFormOf
-
humanReadableTitle
-
formatWithFields
-