change: remove total_response_time

This commit is contained in:
debugtalk
2020-04-23 16:07:55 +08:00
parent 8f55bead99
commit 4e9e17c4d7
2 changed files with 0 additions and 18 deletions

View File

@@ -144,21 +144,6 @@ def __stringify_response(response_data):
response_data[key] = value
def __get_total_response_time(step_datas: List[SessionData]):
""" caculate total response time of all step_datas
"""
try:
response_time = 0
for step_data in step_datas:
response_time += step_data.stat.response_time_ms
return "{:.2f}".format(response_time)
except TypeError:
# failure exists
return "N/A"
def stringify_summary(testsuite_summary: TestSuiteSummary):
""" stringify summary, in order to dump json file and generate html report.
"""
@@ -173,5 +158,3 @@ def stringify_summary(testsuite_summary: TestSuiteSummary):
for req_resp in req_resp_list:
__stringify_request(req_resp["request"])
__stringify_response(req_resp["response"])
testcase_summary.total_response_time = __get_total_response_time(step_datas)

View File

@@ -115,7 +115,6 @@ class TestCaseSummary(BaseModel):
in_out: TestCaseInOut = {}
log: Text = ""
step_datas: List[SessionData] = []
total_response_time: Text = "N/A"
class PlatformInfo(BaseModel):