feat: get request & response meta datas

This commit is contained in:
debugtalk
2020-04-21 18:55:31 +08:00
parent ac3eac5e8a
commit 9c949e76f6
4 changed files with 42 additions and 9 deletions

View File

@@ -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)}"]

View File

@@ -95,4 +95,5 @@ class TestCaseRequestMethodsValidateWithVariables(TestCaseRunner):
if __name__ == '__main__':
TestCaseRequestMethodsValidateWithVariables().run()
runner = TestCaseRequestMethodsValidateWithVariables().run()
print(runner.meta_datas)