mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 23:51:25 +08:00
support custom requests.Response attr.
This commit is contained in:
@@ -282,6 +282,9 @@ class ResponseObject(ResponseObjectBase):
|
|||||||
"body": self.body,
|
"body": self.body,
|
||||||
}
|
}
|
||||||
if not expr.startswith(tuple(resp_obj_meta.keys())):
|
if not expr.startswith(tuple(resp_obj_meta.keys())):
|
||||||
|
if hasattr(self.resp_obj,expr):
|
||||||
|
return getattr(self.resp_obj,expr)
|
||||||
|
else:
|
||||||
return expr
|
return expr
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user