mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-18 18:07:40 +08:00
feat: config variables support parsing from function
This commit is contained in:
@@ -111,3 +111,10 @@ def alter_response(response):
|
||||
def alter_response_error(response):
|
||||
# NameError
|
||||
not_defined_variable
|
||||
|
||||
|
||||
def gen_variables():
|
||||
return {
|
||||
"var_a": 1,
|
||||
"var_b": 2
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user