change: remove unused model fields

This commit is contained in:
debugtalk
2020-05-16 13:01:01 +08:00
parent a820269a56
commit d70f697501
2 changed files with 3 additions and 8 deletions

View File

@@ -135,7 +135,7 @@ class HttpRunner(object):
.with_variables(step_variables)
.run_path(ref_testcase_path)
)
step_data.data = case_result.get_summary() # list of step data
step_data.data = case_result.get_step_datas() # list of step data
step_data.export = case_result.get_export_variables()
step_data.success = case_result.success
self.success &= case_result.success
@@ -235,8 +235,6 @@ class HttpRunner(object):
start_at_iso_format=start_at_iso_format,
duration=self.__duration,
),
# status=result.status,
# attachment=result.attachment,
in_out=TestCaseInOut(
vars=self.config.variables, export=self.get_export_variables()
),
@@ -245,4 +243,4 @@ class HttpRunner(object):
def test_start(self):
"""discovered by pytest"""
self.run(TestCase(config=self.config, teststeps=self.teststeps))
return self.run(TestCase(config=self.config, teststeps=self.teststeps))

View File

@@ -137,7 +137,6 @@ class SessionData(BaseModel):
class StepData(BaseModel):
"""teststep data, each step maybe corresponding to one request or one testcase"""
success: bool = False
name: Text = "" # teststep name
data: Union[SessionData, List[SessionData]] = None
@@ -146,9 +145,7 @@ class StepData(BaseModel):
class TestCaseSummary(BaseModel):
name: Text = ""
success: bool
status: Text = ""
attachment: Text = ""
success: bool = False
time: TestCaseTime
in_out: TestCaseInOut = {}
log: Text = ""