mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
Merge branch 'master' of github.com:httprunner/httprunner
This commit is contained in:
3
examples/demo-with-go-plugin/.env
Normal file
3
examples/demo-with-go-plugin/.env
Normal file
@@ -0,0 +1,3 @@
|
||||
base_url=https://postman-echo.com
|
||||
USERNAME=debugtalk
|
||||
PASSWORD=123456
|
||||
1
examples/demo-with-go-plugin/.gitignore
vendored
1
examples/demo-with-go-plugin/.gitignore
vendored
@@ -1,4 +1,3 @@
|
||||
.env
|
||||
reports/
|
||||
*.so
|
||||
.vscode/
|
||||
|
||||
6
examples/demo-with-go-plugin/proj.json
Normal file
6
examples/demo-with-go-plugin/proj.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"project_name": "demo-with-go-plugin",
|
||||
"project_path": "/Users/debugtalk/MyProjects/HttpRunner-dev/httprunner/examples/demo-with-go-plugin",
|
||||
"create_time": "2022-05-25T11:14:42.750876+08:00",
|
||||
"hrp_version": "v4.1.0-beta"
|
||||
}
|
||||
@@ -17,7 +17,7 @@
|
||||
{
|
||||
"name": "get with params",
|
||||
"variables": {
|
||||
"foo1": "bar11",
|
||||
"foo1": "${ENV(USERNAME)}",
|
||||
"foo2": "bar21",
|
||||
"sum_v": "${sum_two_int(1, 2)}"
|
||||
},
|
||||
@@ -46,7 +46,7 @@
|
||||
{
|
||||
"eq": [
|
||||
"body.args.foo1",
|
||||
"bar11"
|
||||
"debugtalk"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -5,7 +5,6 @@ config:
|
||||
foo2: config_bar2
|
||||
expect_foo1: config_bar1
|
||||
expect_foo2: config_bar2
|
||||
base_url: "https://postman-echo.com"
|
||||
verify: False
|
||||
export: ["foo3"]
|
||||
|
||||
@@ -13,12 +12,12 @@ teststeps:
|
||||
-
|
||||
name: get with params
|
||||
variables:
|
||||
foo1: bar11
|
||||
foo1: ${ENV(USERNAME)}
|
||||
foo2: bar21
|
||||
sum_v: "${sum_two_int(1, 2)}"
|
||||
request:
|
||||
method: GET
|
||||
url: /get
|
||||
url: $base_url/get
|
||||
params:
|
||||
foo1: $foo1
|
||||
foo2: $foo2
|
||||
@@ -29,7 +28,7 @@ teststeps:
|
||||
foo3: "body.args.foo2"
|
||||
validate:
|
||||
- eq: ["status_code", 200]
|
||||
- eq: ["body.args.foo1", "bar11"]
|
||||
- eq: ["body.args.foo1", "debugtalk"]
|
||||
- eq: ["body.args.sum_v", "3"]
|
||||
- eq: ["body.args.foo2", "bar21"]
|
||||
-
|
||||
@@ -39,7 +38,7 @@ teststeps:
|
||||
foo3: "bar32"
|
||||
request:
|
||||
method: POST
|
||||
url: /post
|
||||
url: $base_url/post
|
||||
headers:
|
||||
User-Agent: funplugin/${get_version()}
|
||||
Content-Type: "text/plain"
|
||||
@@ -53,7 +52,7 @@ teststeps:
|
||||
foo2: bar23
|
||||
request:
|
||||
method: POST
|
||||
url: /post
|
||||
url: $base_url/post
|
||||
headers:
|
||||
User-Agent: funplugin/${get_version()}
|
||||
Content-Type: "application/x-www-form-urlencoded"
|
||||
|
||||
3
examples/demo-with-py-plugin/.env
Normal file
3
examples/demo-with-py-plugin/.env
Normal file
@@ -0,0 +1,3 @@
|
||||
base_url=https://postman-echo.com
|
||||
USERNAME=debugtalk
|
||||
PASSWORD=123456
|
||||
1
examples/demo-with-py-plugin/.gitignore
vendored
1
examples/demo-with-py-plugin/.gitignore
vendored
@@ -1,4 +1,3 @@
|
||||
.env
|
||||
reports/
|
||||
*.so
|
||||
.vscode/
|
||||
|
||||
6
examples/demo-with-py-plugin/proj.json
Normal file
6
examples/demo-with-py-plugin/proj.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"project_name": "demo-with-py-plugin",
|
||||
"project_path": "/Users/debugtalk/MyProjects/HttpRunner-dev/httprunner/examples/demo-with-py-plugin",
|
||||
"create_time": "2022-05-25T11:14:52.333942+08:00",
|
||||
"hrp_version": "v4.1.0-beta"
|
||||
}
|
||||
@@ -17,7 +17,7 @@
|
||||
{
|
||||
"name": "get with params",
|
||||
"variables": {
|
||||
"foo1": "bar11",
|
||||
"foo1": "${ENV(USERNAME)}",
|
||||
"foo2": "bar21",
|
||||
"sum_v": "${sum_two_int(1, 2)}"
|
||||
},
|
||||
@@ -46,7 +46,7 @@
|
||||
{
|
||||
"eq": [
|
||||
"body.args.foo1",
|
||||
"bar11"
|
||||
"debugtalk"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -5,7 +5,6 @@ config:
|
||||
foo2: config_bar2
|
||||
expect_foo1: config_bar1
|
||||
expect_foo2: config_bar2
|
||||
base_url: "https://postman-echo.com"
|
||||
verify: False
|
||||
export: ["foo3"]
|
||||
|
||||
@@ -13,12 +12,12 @@ teststeps:
|
||||
-
|
||||
name: get with params
|
||||
variables:
|
||||
foo1: bar11
|
||||
foo1: ${ENV(USERNAME)}
|
||||
foo2: bar21
|
||||
sum_v: "${sum_two_int(1, 2)}"
|
||||
request:
|
||||
method: GET
|
||||
url: /get
|
||||
url: $base_url/get
|
||||
params:
|
||||
foo1: $foo1
|
||||
foo2: $foo2
|
||||
@@ -29,7 +28,7 @@ teststeps:
|
||||
foo3: "body.args.foo2"
|
||||
validate:
|
||||
- eq: ["status_code", 200]
|
||||
- eq: ["body.args.foo1", "bar11"]
|
||||
- eq: ["body.args.foo1", "debugtalk"]
|
||||
- eq: ["body.args.sum_v", "3"]
|
||||
- eq: ["body.args.foo2", "bar21"]
|
||||
-
|
||||
@@ -39,7 +38,7 @@ teststeps:
|
||||
foo3: "bar32"
|
||||
request:
|
||||
method: POST
|
||||
url: /post
|
||||
url: $base_url/post
|
||||
headers:
|
||||
User-Agent: funplugin/${get_version()}
|
||||
Content-Type: "text/plain"
|
||||
@@ -53,7 +52,7 @@ teststeps:
|
||||
foo2: bar23
|
||||
request:
|
||||
method: POST
|
||||
url: /post
|
||||
url: $base_url/post
|
||||
headers:
|
||||
User-Agent: funplugin/${get_version()}
|
||||
Content-Type: "application/x-www-form-urlencoded"
|
||||
|
||||
3
examples/demo-without-plugin/.env
Normal file
3
examples/demo-without-plugin/.env
Normal file
@@ -0,0 +1,3 @@
|
||||
base_url=https://postman-echo.com
|
||||
USERNAME=debugtalk
|
||||
PASSWORD=123456
|
||||
1
examples/demo-without-plugin/.gitignore
vendored
1
examples/demo-without-plugin/.gitignore
vendored
@@ -1,4 +1,3 @@
|
||||
.env
|
||||
reports/
|
||||
*.so
|
||||
.vscode/
|
||||
|
||||
6
examples/demo-without-plugin/proj.json
Normal file
6
examples/demo-without-plugin/proj.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"project_name": "demo-without-plugin",
|
||||
"project_path": "/Users/debugtalk/MyProjects/HttpRunner-dev/httprunner/examples/demo-without-plugin",
|
||||
"create_time": "2022-05-25T11:14:53.862348+08:00",
|
||||
"hrp_version": "v4.1.0-beta"
|
||||
}
|
||||
Reference in New Issue
Block a user