mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-17 10:57:36 +08:00
feat: get request & response meta datas
This commit is contained in:
@@ -25,5 +25,5 @@ teststeps:
|
||||
session_foo2: "body.args.foo2"
|
||||
validate:
|
||||
- eq: ["status_code", 200]
|
||||
- eq: ["body.args.sum_v", "3"]
|
||||
- eq: ["body.args.sum_v", 3]
|
||||
- less_than: ["body.args.sum_v", "${sum_two(2, 2)}"]
|
||||
|
||||
@@ -95,4 +95,5 @@ class TestCaseRequestMethodsValidateWithVariables(TestCaseRunner):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
TestCaseRequestMethodsValidateWithVariables().run()
|
||||
runner = TestCaseRequestMethodsValidateWithVariables().run()
|
||||
print(runner.meta_datas)
|
||||
|
||||
Reference in New Issue
Block a user