feat(): 优化项目
- 更新README - 修复bug
This commit is contained in:
36
TestCases/answer/test_1_status.yaml
Normal file
36
TestCases/answer/test_1_status.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
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" ] # 变量值
|
||||
Reference in New Issue
Block a user