diff --git a/httprunner/report/html/template.html b/httprunner/report/html/template.html
index 9492e42c..902d34c4 100644
--- a/httprunner/report/html/template.html
+++ b/httprunner/report/html/template.html
@@ -155,7 +155,7 @@
| START AT |
- {{time.start_datetime}} |
+ {{time.start_at_iso_format}} |
| DURATION |
@@ -169,19 +169,19 @@
| STAT |
- TESTCASES (success/fail) |
- TESTSTEPS (success/fail/error/skip) |
+ SUCCESS |
+ FAIL |
| total (details) => |
- {{stat.testcases.total}} ({{stat.testcases.success}}/{{stat.testcases.fail}}) |
- {{stat.teststeps.total}} ({{stat.teststeps.successes}}/{{stat.teststeps.failures}}/{{stat.teststeps.errors}}/{{stat.teststeps.skipped}}) |
+ {{stat.success}} |
+ {{stat.fail}} |
Details
- {% for testcase_summary in details %}
+ {% for testcase_summary in testcases %}
{% set testcase_index = loop.index %}
{{testcase_summary.name}}
@@ -192,17 +192,15 @@
| Detail |
- {% set record_meta_datas = testcase_summary.record.meta_datas %}
- {% for meta_data in record_meta_datas %}
+ {% set testcase = testcase_summary %}
+ {% set step_datas = testcase_summary.step_datas %}
+ {% for session_data in step_datas %}
{% set step_index = "{}_{}".format(testcase_index, loop.index) %}
- | {{record.status}} |
- {{record.name}} |
- {{ record.response_time }} ms |
+ {{testcase.status}} |
+ {{session_data.name}} |
+ {{ session_data.stat.response_time_ms }} ms |
-
-
- {% set step_index = "{}_{}".format(testcase_index, loop.index) %}
log-{{loop.index}}
|