From 293551997f1945aa19b7cca154bb92c7c7268958 Mon Sep 17 00:00:00 2001 From: buyuxiang <347586493@qq.com> Date: Fri, 11 Feb 2022 15:20:31 +0800 Subject: [PATCH] add httpbingo test Change-Id: I41911d2a723ac64d5aa0cdf6b3f99b2554c6a196 --- examples/httpbingo_test.json | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 examples/httpbingo_test.json diff --git a/examples/httpbingo_test.json b/examples/httpbingo_test.json new file mode 100644 index 00000000..b3461ee4 --- /dev/null +++ b/examples/httpbingo_test.json @@ -0,0 +1,32 @@ +{ + "config": { + "name": "request methods testcase: validate with parameters", + "base_url": "https://httpbingo.bytedance.net" + }, + "teststeps": [ + { + "name": "get with params", + "request": { + "method": "GET", + "url": "/get", + "params": { + "a": 1 + } + }, + "validate": [ + { + "check": "status_code", + "assert": "greater_than", + "expect": 199, + "msg": "check status code" + }, + { + "check": "body.args.a", + "assert": "equal", + "expect": "1", + "msg": "check argument a" + } + ] + } + ] +} \ No newline at end of file