change: override variables

(1) testcase: session variables > step variables > config variables
(2) testsuite: testcase variables > config variables
(3) testsuite testcase variables > testcase config variables
This commit is contained in:
debugtalk
2020-06-08 13:22:57 +08:00
parent c19d1bb664
commit 6220367394
21 changed files with 207 additions and 116 deletions

View File

@@ -1,4 +1,4 @@
# NOTE: Generated By HttpRunner v3.0.10
# NOTE: Generated By HttpRunner v3.0.11
# FROM: examples/postman_echo/request_methods/validate_with_variables.yml
from httprunner import HttpRunner, Config, Step, RunRequest, RunTestCase
@@ -40,7 +40,7 @@ class TestCaseValidateWithVariables(HttpRunner):
.assert_equal("status_code", 200)
.assert_equal(
"body.data",
"This is expected to be sent back as part of response body: session_bar1-$foo3.",
"This is expected to be sent back as part of response body: hello world-$foo3.",
)
),
Step(