mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-25 02:10:24 +08:00
feat: support retry when test step failed
This commit is contained in:
@@ -27,6 +27,14 @@ class Step(object):
|
||||
def testcase(self) -> TestCase:
|
||||
return self.__step.struct().testcase
|
||||
|
||||
@property
|
||||
def retry_times(self) -> int:
|
||||
return self.__step.struct().retry_times
|
||||
|
||||
@property
|
||||
def retry_interval(self) -> int:
|
||||
return self.__step.struct().retry_interval
|
||||
|
||||
def struct(self) -> TStep:
|
||||
return self.__step.struct()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user