36 lines
975 B
YAML
36 lines
975 B
YAML
feature: 页面状态
|
|
story: 状态
|
|
title: 查询状态信息
|
|
request:
|
|
method: get
|
|
url: /answer/api/v1/connector/info
|
|
headers:
|
|
Host: 119.91.19.171:40065
|
|
Accept-Language: en_US
|
|
Accept: application/json, text/plain, */*
|
|
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0
|
|
Referer: http://119.91.19.171:40065/users/login
|
|
Accept-Encoding: gzip, deflate
|
|
extract: # 提取变量
|
|
code:
|
|
- "json"
|
|
- "$.code"
|
|
- 0
|
|
msg:
|
|
- "json"
|
|
- "$.msg"
|
|
- 0
|
|
|
|
|
|
validate:
|
|
equals: # 断言相等
|
|
状态码等于200:
|
|
- Success.
|
|
- ${msg}
|
|
|
|
parametrize: # 数据驱动测试
|
|
- [ "title","username","password","code" ] # 变量名
|
|
- [ "测试1","user1","pass1","code1" ] # 变量值
|
|
- [ "测试2","user2","pass2","code2" ] # 变量值
|
|
- [ "测试3","user3","pass3","code3" ] # 变量值
|
|
- [ "测试4","user4","pass4","code4" ] # 变量值 |