Public Member Functions | |
def | __init__ |
rcTestReport constructor. | |
def | initReport |
Initializes the report class and provides a title for the report. | |
def | addHTML |
def | addHeading |
Adds a heading to the report. | |
def | addSection |
Adds a section to the report and returns the section id. | |
def | findSection |
Given a caption, finds the section added to the report. | |
def | insertSection |
Inserts a previously added section (with insert=0) to the specified position in the report. | |
def | addSectionItem |
Adds a section item. | |
def | addSectionImage |
Adds an image to a section. | |
def | addSectionTable |
Adds a table to a section. | |
def | addTableHeader |
Adds one column header to the table. | |
def | beginTableRow |
Starts a table row. | |
def | addTableData |
Adds a data column to the table row that was started by the last beginTableRow() call. | |
def | findTag |
Find the child tag with the name tagName. | |
def | xmlToString |
Convert XML to a string. | |
def | transformToFile |
Based on the input template and output filename parameters creates an HTML report. | |
def | getReports |
Retrieve the reports generated by this instance. | |
def | getChildNodes |
Return the child nodes of an XML node. | |
def | escape |
Escape the special HTML characters. |
This class provides a mechanism to create test reports in a well formed (XML) format using the provided report building methods and lets the user transform it to HTML format by providing an XSLT stylesheet template. A third-party tool called Pyana is used to do the transformation. A sample template (reportStyle.xsl.sample) is provided in the LICOS/start directory. For more information on XSLT see the following links:
XSL Transformations W3C Recommendation
Definition at line 35 of file rcTestReport.py.
|
rcTestReport constructor.
Definition at line 38 of file rcTestReport.py. |
|
Adds a heading to the report.
Definition at line 82 of file rcTestReport.py. |
|
Adds an arbitrary HTML fragment to the end of the report or a section \param htmlString HTML fragment. \param section Optional section id that this HTML will be written to. If no section is specified then HTML is added to the end of the report. \param paragraph \a htmlString should be added as a paragraph. Definition at line 64 of file rcTestReport.py. |
|
Adds a section to the report and returns the section id.
Definition at line 97 of file rcTestReport.py. |
|
Adds an image to a section. Images can have a caption, and an optional width and height. The url parameter specifies the location of the image.
Definition at line 161 of file rcTestReport.py. |
|
Adds a section item. Section items are entries with a label and text and an optional URL.
Definition at line 141 of file rcTestReport.py. |
|
Adds a table to a section. Border and width are optional.
Definition at line 193 of file rcTestReport.py. |
|
Adds a data column to the table row that was started by the last beginTableRow() call.
Definition at line 245 of file rcTestReport.py. |
|
Adds one column header to the table.
Definition at line 215 of file rcTestReport.py. |
|
Starts a table row.
Definition at line 235 of file rcTestReport.py. |
|
Escape the special HTML characters.
Definition at line 337 of file rcTestReport.py. |
|
Given a caption, finds the section added to the report.
Definition at line 115 of file rcTestReport.py. |
|
Find the child tag with the name tagName.
Definition at line 274 of file rcTestReport.py. |
|
Return the child nodes of an XML node. This method ignores the empty or line-feed nodes and returns the rest of the child nodes.
Definition at line 317 of file rcTestReport.py. |
|
Retrieve the reports generated by this instance.
Definition at line 310 of file rcTestReport.py. |
|
Initializes the report class and provides a title for the report.
Definition at line 44 of file rcTestReport.py. |
|
Inserts a previously added section (with insert=0) to the specified position in the report.
Definition at line 127 of file rcTestReport.py. |
|
Based on the input template and output filename parameters creates an HTML report.
Definition at line 298 of file rcTestReport.py. |
|
Convert XML to a string.
Definition at line 288 of file rcTestReport.py. |