mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
feat: testsuite config get variables by call function
This commit is contained in:
@@ -7,3 +7,9 @@ def get_httprunner_version():
|
||||
|
||||
def sum_two(m, n):
|
||||
return m + n
|
||||
|
||||
|
||||
def get_variables():
|
||||
return {
|
||||
"foo1": "session_bar1"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
config:
|
||||
name: "demo testsuite"
|
||||
# variables: ${get_variable()}
|
||||
variables: ${get_variables()}
|
||||
|
||||
testcases:
|
||||
-
|
||||
|
||||
Reference in New Issue
Block a user