File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
docs/site/content/zh/latest/tasks Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -94,15 +94,15 @@ docker run -p 1234:8080 -v /var/tmp:/var/tmp \
94
94
95
95
# # Template
96
96
97
- The following fields are templated with [sprig](http ://masterminds.github.io/sprig/):
97
+ The following fields are templated with [sprig](https ://masterminds.github.io/sprig/):
98
98
99
99
* API
100
100
* Request Body
101
101
* Request Header
102
102
103
103
# ## Functions
104
104
105
- You could use all the common functions which comes from [sprig](http ://masterminds.github.io/sprig/). Besides some specific functions are available:
105
+ You could use all the common functions which comes from [sprig](https ://masterminds.github.io/sprig/). Besides some specific functions are available:
106
106
107
107
| Name | Usage |
108
108
| ---| ---|
Original file line number Diff line number Diff line change
1
+ +++
2
+ title = " 用例模板"
3
+ +++
4
+
5
+ ` atest ` 采用 [ sprig] ( https://masterminds.github.io/sprig/ ) 作为测试用例的模板引擎。通过模板函数可以生成很多随机数据:
6
+
7
+ ## 手机号
8
+
9
+ 下面的代码可以生成 ` 182 ` 开头的手机号:
10
+
11
+ ```
12
+ 182{{shuffle "09876543"}}
13
+ ```
You can’t perform that action at this time.
0 commit comments