diff --git a/httprunner/report.py b/httprunner/report.py
index 7cb6b172..73381570 100644
--- a/httprunner/report.py
+++ b/httprunner/report.py
@@ -90,7 +90,9 @@ def render_html_report(summary, html_report_name=None, html_report_template=None
if not os.path.isdir(report_dir_path):
os.makedirs(report_dir_path)
- for suite_summary in summary["details"]:
+ for index, suite_summary in enumerate(summary["details"]):
+ if not suite_summary.get("name"):
+ suite_summary["name"] = "test suite {}".format(index)
for record in suite_summary.get("records"):
meta_data = record['meta_data']
stringify_data(meta_data, 'request')
diff --git a/httprunner/templates/default_report_template.html b/httprunner/templates/default_report_template.html
index 12cc8d94..78d36986 100644
--- a/httprunner/templates/default_report_template.html
+++ b/httprunner/templates/default_report_template.html
@@ -187,69 +187,91 @@
{% for test_suite_summary in details %}
{% set suite_index = loop.index %}
{{test_suite_summary.name}}
-
-
- | base_url |
- {{test_suite_summary.base_url}} |
-
- parameters & output
-
-
-
-
- |
-
- | TOTAL: {{test_suite_summary.stat.testsRun}} |
- SUCCESS: {{test_suite_summary.stat.successes}} |
- FAILED: {{test_suite_summary.stat.failures}} |
- ERROR: {{test_suite_summary.stat.errors}} |
- SKIPPED: {{test_suite_summary.stat.skipped}} |
-
-
- | Status |
- Name |
- Response Time |
- Detail |
-
-
- {% for record in test_suite_summary.records %}
- {% set record_index = "{}_{}".format(suite_index, loop.index) %}
-
- | {{record.status}}
- | {{record.name}} |
- {{ record.meta_data.response.response_time_ms }} ms |
-
-
- log
- |