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

update test yaml files

上级 db201ad4
......@@ -36,6 +36,12 @@ fields:
prefix: "["
postfix: "]\t"
- field: field_nested_instant # 引用其他的定义文件,且该文件引用了其他实例。
from: jenkins.ip.private.yaml # 引用users/jenkins/ip/private.yaml
use: all # 使用该文件中的所有实例。
prefix: "{"
postfix: "}"
- field: field_union_instant
from: jenkins.ip.private.yaml # 引用用户自定义数据,自定义数据使用了联合。
use: privateB_union_privateC
......@@ -52,8 +58,3 @@ fields:
- from: jenkins.number.v1.yaml
use: large{3} # 指定引用个数
- field: field_use_yaml # 引用某个yaml文件的整体数据。
range: test/nested1.yaml{5} # 指定引用行数
prefix: "["
postfix: "]\t"
......@@ -78,10 +78,6 @@ fields:
range: 1-10:R # 1,5,8...
postfix: "\t"
- field: field_file # 从一个文件中随机读取。
range: users.txt:R # 该文件中一行作为一个元素,并随机。
postfix: "\t"
- field: field_loop # 自循环的字段。
range: a-z # a|b|c ...
loop: 3 # 循环三次
......@@ -97,6 +93,18 @@ fields:
format: "passwd%02d" # 用%02d补零,使密码整体保持8位。
postfix: "\t"
- field: field_text # 从一个文件中随机读取。
range: users.txt:R # 相对当前文件路径。
postfix: "\t"
- field: field_yaml # 引用其他的定义文件整体内容。
range: test/nested2.yaml{3} # 相对当前文件路径。
postfix: "\t"
- field: field_use_config # 引用其他的config定义文件。
config: number.yaml # 相对当前文件路径,config内包含单个字段。
postfix: "\t"
- field: field_use_ranges # 引用內置的定义文件,该文件定义了多个range,他们共享了一些field层面的属性。
from: jenkins.number.v1.yaml # 引用yaml/jenkins/number/v1.yaml文件里面的ranges定义。
use: medium # 使用该文件中定义的medium分组。
......@@ -107,10 +115,6 @@ fields:
use: privateC,privateB # 使用该文件中定义的privateC和privateB两个实例。
postfix: "\t"
- field: field_use_config # 引用其他的config定义文件。
config: number.yaml # 引用当前目录下面的number.yaml配置,内包含单个字段。
postfix: "\t"
- field: field_use_excel # 从excel数据源里面取数据。
from: address.cn.v1.china # 从data/address/v1.xlsx文件中读取名为china的工作簿。
select: city # 查询city字段。
......
......@@ -6,6 +6,10 @@ version: 1.0
from: jenkins.ip.private.yaml # 全局from配置
fields:
- field: field_use_config
prefix: "{"
postfix: "}\t"
- field: field_use_ranges
prefix: "{"
postfix: "}\t"
......@@ -14,10 +18,6 @@ fields:
prefix: "" # 修改前缀为空
postfix: "}\t"
- field: field_use_config
prefix: "{"
postfix: "}\t"
- field: field_use_excel
prefix: "{"
postfix: "}\t"
......
title: 测试文件
desc:
author: zentao
version: 1.0
fields:
- field: test0
range: 1-9
loop: 2-3
loopfix: "|"
- field: test1
range: 9-5:R{2}
prefix: ""
postfix: "\t"
- field: test2
range: [user-2,user3,user4,user5,user6]:R
loop: 2-3
loopfix: "|"
prefix: ""
postfix: "\t"
- field: test3
range: [a,b,c]
postfix: "\t"
- field: test4
range: [a-z,0-9]:R
- field: field_with_children
fields:
- field: child1
range: a-z
prefix: part1_
postfix: '|'
- field: child2
range: A-Z
prefix: part2_
postfix: '|'
- field: child_with_child
prefix: part3_
postfix:
fields:
- field: field_grandson
prefix: int_
range: 10-20
postfix:
\ No newline at end of file
......@@ -6,6 +6,6 @@ version: 1.0
fields:
- field: part1
range: A-C,nested1.yaml{3}
range: A,test-nested1.yaml{3}
prefix: ""
postfix: ""
......@@ -9,4 +9,4 @@ fields:
postfix: ";\t"
- field: part2
range: x-z,nested2.yaml{2}
\ No newline at end of file
range: X,test-nested2.yaml{3}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册