mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-09 06:23:52 +08:00
change: update unit tests for removing v1 format
This commit is contained in:
@@ -1,22 +1,4 @@
|
||||
{
|
||||
"testcases": {
|
||||
"create user 1001 and check result.": {
|
||||
"testcase": "testcases/create_user.yml",
|
||||
"variables": {
|
||||
"var_d": "$var_c",
|
||||
"var_c": "${gen_random_string(5)}",
|
||||
"uid": 1001
|
||||
}
|
||||
},
|
||||
"create user 1000 and check result.": {
|
||||
"testcase": "testcases/create_user.yml",
|
||||
"variables": {
|
||||
"var_d": "$var_c",
|
||||
"var_c": "${gen_random_string(5)}",
|
||||
"uid": 1000
|
||||
}
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
"variables": {
|
||||
"device_sn": "${gen_random_string(15)}",
|
||||
@@ -25,5 +7,25 @@
|
||||
},
|
||||
"name": "create users with uid",
|
||||
"base_url": "http://127.0.0.1:5000"
|
||||
}
|
||||
},
|
||||
"testcases": [
|
||||
{
|
||||
"name": "create user 1000 and check result.",
|
||||
"testcase": "testcases/create_user.yml",
|
||||
"variables": {
|
||||
"var_d": "$var_c",
|
||||
"var_c": "${gen_random_string(5)}",
|
||||
"uid": 1000
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "create user 1001 and check result.",
|
||||
"testcase": "testcases/create_user.yml",
|
||||
"variables": {
|
||||
"var_d": "$var_c",
|
||||
"var_c": "${gen_random_string(5)}",
|
||||
"uid": 1001
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
{
|
||||
"config": {
|
||||
"variables": {
|
||||
"device_sn": "${gen_random_string(15)}",
|
||||
"var_b": "$var_a",
|
||||
"var_a": "${gen_random_string(5)}"
|
||||
},
|
||||
"name": "create users with uid",
|
||||
"base_url": "http://127.0.0.1:5000"
|
||||
},
|
||||
"testcases": [
|
||||
{
|
||||
"name": "create user 1000 and check result.",
|
||||
"testcase": "testcases/create_user.v2.yml",
|
||||
"variables": {
|
||||
"var_d": "$var_c",
|
||||
"var_c": "${gen_random_string(5)}",
|
||||
"uid": 1000
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "create user 1001 and check result.",
|
||||
"testcase": "testcases/create_user.v2.yml",
|
||||
"variables": {
|
||||
"var_d": "$var_c",
|
||||
"var_c": "${gen_random_string(5)}",
|
||||
"uid": 1001
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
config:
|
||||
name: create users with uid
|
||||
variables:
|
||||
device_sn: ${gen_random_string(15)}
|
||||
var_a: ${gen_random_string(5)}
|
||||
var_b: $var_a
|
||||
base_url: "http://127.0.0.1:5000"
|
||||
|
||||
testcases:
|
||||
-
|
||||
name: create user 1000 and check result.
|
||||
testcase: testcases/create_user.v2.yml
|
||||
variables:
|
||||
uid: 1000
|
||||
var_c: ${gen_random_string(5)}
|
||||
var_d: $var_c
|
||||
|
||||
-
|
||||
name: create user 1001 and check result.
|
||||
testcase: testcases/create_user.v2.yml
|
||||
variables:
|
||||
uid: 1001
|
||||
var_c: ${gen_random_string(5)}
|
||||
var_d: $var_c
|
||||
@@ -7,16 +7,18 @@ config:
|
||||
base_url: "http://127.0.0.1:5000"
|
||||
|
||||
testcases:
|
||||
create user 1000 and check result.:
|
||||
testcase: testcases/create_user.yml
|
||||
variables:
|
||||
uid: 1000
|
||||
var_c: ${gen_random_string(5)}
|
||||
var_d: $var_c
|
||||
-
|
||||
name: create user 1000 and check result.
|
||||
testcase: testcases/create_user.yml
|
||||
variables:
|
||||
uid: 1000
|
||||
var_c: ${gen_random_string(5)}
|
||||
var_d: $var_c
|
||||
|
||||
create user 1001 and check result.:
|
||||
testcase: testcases/create_user.yml
|
||||
variables:
|
||||
uid: 1001
|
||||
var_c: ${gen_random_string(5)}
|
||||
var_d: $var_c
|
||||
-
|
||||
name: create user 1001 and check result.
|
||||
testcase: testcases/create_user.yml
|
||||
variables:
|
||||
uid: 1001
|
||||
var_c: ${gen_random_string(5)}
|
||||
var_d: $var_c
|
||||
|
||||
@@ -5,11 +5,12 @@ config:
|
||||
base_url: "http://127.0.0.1:5000"
|
||||
|
||||
testcases:
|
||||
create user $uid and check result for $device_sn.:
|
||||
testcase: testcases/create_user.yml
|
||||
variables:
|
||||
uid: 1000
|
||||
device_sn: TESTSUITE_XXX
|
||||
parameters:
|
||||
uid: [101, 102, 103]
|
||||
device_sn: [TESTSUITE_X1, TESTSUITE_X2]
|
||||
-
|
||||
name: create user $uid and check result for $device_sn.
|
||||
testcase: testcases/create_user.yml
|
||||
variables:
|
||||
uid: 1000
|
||||
device_sn: TESTSUITE_XXX
|
||||
parameters:
|
||||
uid: [101, 102, 103]
|
||||
device_sn: [TESTSUITE_X1, TESTSUITE_X2]
|
||||
|
||||
Reference in New Issue
Block a user