Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Build a HTML report for the given XML bench results file

        def build_html_report(options, xml_file):
    """Build a HTML report for the given XML bench results file"""
    options.xml_file = xml_file
    options.html = True
    xml_parser = ReportBuilder.FunkLoadXmlParser()
    xml_parser.parse(xml_file)
    utils.trace("Creating html report ...")
    html_path = ReportRenderHtml.RenderHtml(
        xml_parser.config, xml_parser.stats,
        xml_parser.error, xml_parser.monitor,
        options)()
    report = os.path.dirname(html_path)
    os.rename(xml_file[:-4]+'.log',
              os.path.join(report, 'funkload.log'))
    assert os.path.isfile(os.path.join(report, 'funkload.xml'))
    os.remove(xml_file)
    utils.trace("done: \n")
    utils.trace("file://%s\n" % html_path)
    return report
        


src/c/o/collective.funkload-0.3/src/collective/funkload/label.py   collective.funkload(Download)
            if not os.path.isfile(
                os.path.join(abs_path, 'funkload.xml')):
                abs_path = report.build_html_report(options, abs_path)
                path = os.path.basename(abs_path)