mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-31 21:39:41 +08:00
create HttpSession as wrapper of requests.Session, in order to log more information of request and response
This commit is contained in:
@@ -160,7 +160,8 @@ class Context(object):
|
||||
if "func" in data:
|
||||
# this is a function, e.g. {"func": "gen_random_string", "args": [5]}
|
||||
# function marker: "func" key in dict
|
||||
# the function will be called, and its return value will be binded to the variable.
|
||||
# the function will be called, and its return value will be binded
|
||||
# to the testcase context variable.
|
||||
func_name = data['func']
|
||||
args = self.get_eval_value(data.get('args', []))
|
||||
kargs = self.get_eval_value(data.get('kargs', {}))
|
||||
|
||||
Reference in New Issue
Block a user