Package funkload :: Module ReportRenderer :: Class RenderHtml
[show private | hide private]
[frames | no frames]

Class RenderHtml

RenderRst --+
            |
           RenderHtml


Render stats in html.

Simply render stuff in ReST than ask docutils to build an html doc.
Method Summary
  __init__(self, config, stats, error, monitor, options, css_file)
  __call__(self)
Create the html report.
  appendDelays(self, delay, delay_low, delay_high, stats)
Show percentiles or min, avg and max in chart.
  copyCss(self)
Copy the css to the report dir.
  copyXmlResult(self)
Make a copy of the xml result.
  createAllResponseChart(self)
Create global responses chart.
  createCharts(self)
Create all charts.
  createMonitorChart(self, host)
Create monitrored server charts.
  createMonitorCharts(self)
Create all montirored server charts.
  createPageChart(self)
Create the page chart.
  createResponseChart(self, step)
Create responses chart.
  createRstFile(self)
Create the ReST file.
  createTestChart(self)
Create the test chart.
  generateHtml(self)
Ask docutils to convert our rst file into html.
  getChartSize(self, cvus)
Compute the right size lenght depending on the number of cvus.
  getYTitle(self)
  prepareReportDirectory(self)
Create a folder to save the report.
  render(self)
Create the html report.
    Inherited from RenderRst
  __repr__(self)
  append(self, text)
Append text to rst output.
  getBestStpsCycle(self)
Return the cycle with the maximum STPS.
  getRepresentativeCycleStat(self)
Return the cycle stat with the maximum number of steps.
  renderConfig(self)
Render bench configuration.
  renderCyclesStat(self, key, title, description)
Render a type of stats for all cycles.
  renderCyclesStepStat(self, step)
Render a step stats for all cycle.
  renderErrors(self)
Render error list.
  renderMonitor(self, host)
Render a monitored host.
  renderMonitors(self)
Render all monitored hosts.
  renderPageDetail(self, cycle_r)
Render a page detail.
  renderSlowestRequests(self, number)
Render the n slowest requests of the best cycle.
  renderTestContent(self, test)
Render global information about test content.

Class Variable Summary
tuple big_chart_size = (640, 320)
tuple chart_size = (350, 250)
int color_bg = 16777215                                                              
int color_error = 16711680                                                              
int color_grid = 13421772                                                              
int color_line = 0                                                                     
int color_plot = 14955                                                                 
int color_success = 65280                                                                 
int color_time = 255                                                                   
int color_time_min_max = 13421806                                                              
    Inherited from RenderRst
int slowest_items = 5                                                                     

Method Details

__call__(self)
(Call operator)

Create the html report.

appendDelays(self, delay, delay_low, delay_high, stats)

Show percentiles or min, avg and max in chart.

copyCss(self)

Copy the css to the report dir.

copyXmlResult(self)

Make a copy of the xml result.

createAllResponseChart(self)

Create global responses chart.

createCharts(self)

Create all charts.

createMonitorChart(self, host)

Create monitrored server charts.

createMonitorCharts(self)

Create all montirored server charts.

createPageChart(self)

Create the page chart.

createResponseChart(self, step)

Create responses chart.

createRstFile(self)

Create the ReST file.

createTestChart(self)

Create the test chart.

generateHtml(self)

Ask docutils to convert our rst file into html.

getChartSize(self, cvus)

Compute the right size lenght depending on the number of cvus.

prepareReportDirectory(self)

Create a folder to save the report.

render(self)

Create the html report.

Class Variable Details

big_chart_size

Type:
tuple
Value:
(640, 320)                                                             

chart_size

Type:
tuple
Value:
(350, 250)                                                             

color_bg

Type:
int
Value:
16777215                                                              

color_error

Type:
int
Value:
16711680                                                              

color_grid

Type:
int
Value:
13421772                                                              

color_line

Type:
int
Value:
0                                                                     

color_plot

Type:
int
Value:
14955                                                                 

color_success

Type:
int
Value:
65280                                                                 

color_time

Type:
int
Value:
255                                                                   

color_time_min_max

Type:
int
Value:
13421806                                                              

Generated by Epydoc 2.1 on Tue Feb 27 10:41:42 2007 http://epydoc.sf.net