mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
change: remove unused model fields
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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 = ""
|
||||
|
||||
Reference in New Issue
Block a user