feat: testsuite config get variables by call function

This commit is contained in:
debugtalk
2020-05-18 22:37:12 +08:00
parent 5b7bcea3d0
commit 7ebb1696c7
4 changed files with 23 additions and 10 deletions

View File

@@ -7,3 +7,9 @@ def get_httprunner_version():
def sum_two(m, n):
return m + n
def get_variables():
return {
"foo1": "session_bar1"
}

View File

@@ -1,6 +1,6 @@
config:
name: "demo testsuite"
# variables: ${get_variable()}
variables: ${get_variables()}
testcases:
-