bugfix random function in config variables run many times

This commit is contained in:
hluguoj
2019-02-21 20:13:53 +08:00
parent 2dae1e4dda
commit fb091079a4
6 changed files with 49 additions and 17 deletions

View File

@@ -2,6 +2,8 @@ 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:
@@ -9,8 +11,12 @@ testcases:
testcase: testcases/create_and_check.yml
variables:
uid: 1000
var_c: ${gen_random_string(5)}
var_d: $var_c
create user 1001 and check result.:
testcase: testcases/create_and_check.yml
variables:
uid: 1001
var_c: ${gen_random_string(5)}
var_d: $var_c