提交 da503182 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

fix a issue caused by : in []

上级 21c11bc8
...@@ -8,8 +8,6 @@ instances: ...@@ -8,8 +8,6 @@ instances:
- instance: privateC - instance: privateC
note: C类IP地址 note: C类IP地址
prefix: 192.168. prefix: 192.168.
# loop: 2
# loopfix: "-"
fields: fields:
- field: part3 - field: part3
range: 0-254 range: 0-254
...@@ -20,7 +18,6 @@ instances: ...@@ -20,7 +18,6 @@ instances:
- instance: privateB - instance: privateB
note: B类IP地址 note: B类IP地址
prefix: 172. prefix: 172.
# postfix: "\t"
fields: fields:
- field: part2 - field: part2
range: 16-31 range: 16-31
......
title: number title: number
desc: desc:
author: wwccss author: zentao
version: 1.0 version: 1.0
field: number field: number
note: 数值类型数据 note: 数字类型
#prefix: "'"
#postfix: "'"
#loop: 2
#loopfix: "-"
ranges: ranges:
small: 1-9 small: 0-3
medium: 11-99 medium: 11-13
large: 10001-99999 large: 101-103
...@@ -4,58 +4,57 @@ author: zentao ...@@ -4,58 +4,57 @@ author: zentao
version: 1.0 version: 1.0
fields: fields:
- field: field0 - field: field1
note: 基本属性 note: 字符区间步长、随机
range: abc*5,123,456 range: a-f:R,0-9:2
loop: 3 loop: 3
loopfix: "," loopfix: ","
prefix: "'" prefix: "["
postfix: "'" postfix: "] "
- field: field1 - field: field2
note: 单词、重复
range: [bug,task,story]:2{2},[testcase]{2}
postfix: " "
- field: field3
note: 引用同级目录中的yaml文件,取small和large两个分组的值 note: 引用同级目录中的yaml文件,取small和large两个分组的值
from: numb.yaml from: numb.yaml
use: small,large use: large
# loop: 3 postfix: " "
# loopfix: " " expect: 101,102,103...
# prefix: "["
# postfix: "]"
expect: 1,2,3,101,102...
- field: field2 - field: field4
note: 引用內置IP地址数据定义中的C类地址 note: 引用內置IP地址数据定义中的C类地址
from: system.ip.v1.yaml from: system.ip.v1.yaml
use: privateC use: privateC
prefix: "[" postfix: " "
postfix: "]"
loop: 3
loopfix: " "
expect: 192.168.0.1 ...​ expect: 192.168.0.1 ...​
- field: field3 - field: field5
node: 检索、引用內置城市Excel中的数据 node: 检索、引用內置城市Excel中的数据
from: system.address.v1.city from: system.address.v1.city
select: name select: name
where: state like '%山东%' where: state like '%西藏%'
expect: 青岛、济南 ...​ expect: 青岛、济南 ...​
- field: field4 - field: fieldA
node: 嵌套字段 node: 嵌套字段
fields: fields:
- field: field4.1 - field: fieldA.1
type: list type: list
range: 1-9 range: 1-9
postfix: ". " postfix: ". "
- field: field4.2 - field: fieldA.2
prefix: '[' prefix: '['
postfix: ']' postfix: ']'
loop: 2 loop: 2
loopfix: "," loopfix: ","
fields: fields:
- field: field4.2.1 - field: fieldA.2.1
type: list type: list
range: X-Z range: X-Z
- field: field4.2.2 - field: fieldA.2.2
type: list type: list
range: 1-9 range: 1-9
loop: 2 loop: 2
...@@ -23,7 +23,6 @@ type ResInsts struct { ...@@ -23,7 +23,6 @@ type ResInsts struct {
type ResInst struct { type ResInst struct {
FieldBase `yaml:",inline"` FieldBase `yaml:",inline"`
Instance string `yaml:"instance"` Instance string `yaml:"instance"`
Range string `yaml:"range"`
Fields []DefField `yaml:"fields,flow"` Fields []DefField `yaml:"fields,flow"`
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册