From da23e3daf47addc0d3144c91bf20cc85ee167a21 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Mon, 30 Jul 2018 15:01:43 +0800 Subject: [PATCH] remove extent_report_template --- httprunner/report.py | 2 +- .../templates/extent_report_template.html | 745 ------------------ ...ort_template.html => report_template.html} | 0 3 files changed, 1 insertion(+), 746 deletions(-) delete mode 100644 httprunner/templates/extent_report_template.html rename httprunner/templates/{default_report_template.html => report_template.html} (100%) diff --git a/httprunner/report.py b/httprunner/report.py index 36229d10..cfdb8fea 100644 --- a/httprunner/report.py +++ b/httprunner/report.py @@ -67,7 +67,7 @@ def render_html_report(summary, html_report_name=None, html_report_template=None html_report_template = os.path.join( os.path.abspath(os.path.dirname(__file__)), "templates", - "default_report_template.html" + "report_template.html" ) logger.log_debug("No html report template specified, use default.") else: diff --git a/httprunner/templates/extent_report_template.html b/httprunner/templates/extent_report_template.html deleted file mode 100644 index 03b8c06d..00000000 --- a/httprunner/templates/extent_report_template.html +++ /dev/null @@ -1,745 +0,0 @@ - - - - - - - - - - - - - - - - - {{ html_report_name }} - TestReport - - - - - -
- desktop_windows -
- - - - -
- -
- -
-
- - - - - -
- - local_offer Category - - -
- - - - - - - - - - - -
- - search Search - - -
- -
- -
- -
-
- - -
- -
-
-
-
-
Tests
-
- -
-
- {{ stat.successes }} test(s) passed - {{ stat.failures }} test(s) failed -
-
- {{ stat.errors }} - test(s) errored - {{ stat.skipped }} - test(s) skipped -
-
-
- -
-
-
Suites
-
- -
-
- - -
-
- suite(s) - failed -
-
-
- -
-
-
- -
- -
-
Suites
-
    - - {% for test_suite_summary in details %} - {% if test_suite_summary.success == True %} -
  • - {% else %} -
  • - {% endif %} -
    - {{ test_suite_summary.name }} - base_url: {{ test_suite_summary.base_url }} - {% if test_suite_summary.success == True %} - pass - {% else %} - fail - {% endif %} - - -
    -
    -
    - {{ test_suite_summary.time.start_at }} - {{ '%0.3f'| format(test_suite_summary.time.duration|float) }} seconds -
    -
    Pass: {{ test_suite_summary.stat.successes }} ; - Fail: {{ test_suite_summary.stat.failures }} ; - Error: {{ test_suite_summary.stat.errors }} - Skip: {{ test_suite_summary.stat.skipped }} ; -
    -
    -
    - {{ test_suite_summary.name }} - base_url: {{ test_suite_summary.base_url }} -
    -
    -
      - {% for record in test_suite_summary.records %} - {% if record.status == 'success' %} -
    • - {% elif record.status == 'failure' %} -
    • - {% elif record.status == 'error' %} -
    • - {% elif record.status == 'skipped' %} -
    • - {% endfor %} -
    -
    - {% endfor %} -
-
-
- - -
-
-
- -
- info_outline - check_circle - cancel - cancel - error - warning - redo - clear -
-
-
-
- - -
- -
-
- -
- - search Search - - -
- -
- -
- -
-
- -
- -
-
Categories
-
    - -
  • -
    - All Suites - - {{ stat.successes }} - {% if stat.failures != 0 %} - {{ stat.failures }} - {% endif %} - {% if stat.errors != 0 %} - {{ stat.errors }} - {% endif %} - {% if stat.skipped != 0 %} - {{ stat.skipped }} - {% endif %} - -
    -
    -
    - Passed: {{ stat.successes }} - Failed: {{ stat.failures }} - Errored: {{ stat.errors }} - Skipped: {{ stat.skipped }} -
    - -
    - - - - - - - - - - {% for test_suite_summary in details %} - - - - {% if test_suite_summary.success == True %} - - {% else %} - - {% endif %} - - - {% for record in test_suite_summary.records %} - - - - {% if record.status == 'success' %} - - {% elif record.status == 'failure' %} - - {% elif record.status == 'error' %} - - {% elif record.status == 'skipped' %} - - {% endif %} - - {% endfor %} - {% endfor %} - -
    TimestampTestNameStatus
    {{ test_suite_summary.time.start_at }}{{ test_suite_summary.name }}passfail
    {{ record.meta_data.request.start_timestamp|default("Script Error") }}{{ record.name }}passfailerrorskip -
    -
    -
    -
  • - - {% for test_suite_summary in details %} -
  • -
    - {{ test_suite_summary.name }} - - {{ test_suite_summary.stat.successes }} - {% if test_suite_summary.stat.failures != 0 %} - {{ test_suite_summary.stat.failures }} - {% endif %} - {% if test_suite_summary.stat.errors != 0 %} - {{ test_suite_summary.stat.errors }} - {% endif %} - {% if test_suite_summary.stat.skipped != 0 %} - {{ test_suite_summary.stat.skipped }} - {% endif %} - -
    -
    -
    - Passed: {{ test_suite_summary.stat.successes }} - Failed: {{ test_suite_summary.stat.failures }} - Errored: {{ stat.errors }} - Skipped: {{ test_suite_summary.stat.skipped }} -
    - -
    - - - - - - - - - - {% for record in test_suite_summary.records %} - - - - {% if record.status == 'success' %} - - {% elif record.status == 'failure' %} - - {% elif record.status == 'error' %} - - {% elif record.status == 'skipped' %} - - {% endif %} - - {% endfor %} - -
    TimestampTestNameStatus
    {{ record.meta_data.request.start_timestamp|default("Script Error") }}{{ record.name }}passfailerrorskip -
    -
    -
    -
  • - {% endfor %} -
-
-
- -
-
-
-
-
-
- - -
-
-
Dashboard
- -
-
-
- Pass -
{{ stat.successes }}
-
-
-
-
- Fail -
{{ stat.failures }}
-
-
-
-
- Error -
{{ stat.errors }}
-
-
-
-
- Skip -
{{ stat.skipped }}
-
-
-
-
- Start -
{{ time.start_datetime }}
-
-
-
-
- Time Taken -
{{ '%0.3f'| format(time.duration|float) }} seconds
-
-
-
-
- Categories -

 

- - - - - - - - - - - - - - - - - {% for test_suite_summary in details %} - - - - - - - - {% endfor %} -
NamePassedFailedErroredSkipped
All Suites{{ stat.successes }}{{ stat.failures }}{{ stat.errors }}{{ stat.skipped }}
{{ test_suite_summary.name }}{{ test_suite_summary.stat.successes }}{{ test_suite_summary.stat.failures }}{{ test_suite_summary.stat.errors }}{{ test_suite_summary.stat.skipped }}
-
-
-
-
-
- - - -
- - - - - - - - - diff --git a/httprunner/templates/default_report_template.html b/httprunner/templates/report_template.html similarity index 100% rename from httprunner/templates/default_report_template.html rename to httprunner/templates/report_template.html