37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
case_common:
|
||
allureEpic: DM系统
|
||
allureFeature: FOTA系统
|
||
allureStory: 切换任务队列执行状态
|
||
markers: domestic
|
||
|
||
switch_01:
|
||
host: ${{get_host11}}
|
||
url: /tsp-server/api/index/auto/ota/turn/switch/73401134000000000
|
||
method: POST
|
||
detail: 切换任务队列执行状态
|
||
headers:
|
||
Content-Type: application/json
|
||
Authorization: $cache{login_token}
|
||
# Content-Type: $cache{case_process}
|
||
requestType: JSON
|
||
# 是否有依赖业务,为空或者false则表示没有
|
||
is_run:
|
||
data:
|
||
# 请求类型:params 是以url拼接的形式请求,json则传的是json串
|
||
assert:
|
||
status:
|
||
jsonpath: $.status
|
||
type: list_in
|
||
value: [200,500]
|
||
AssertType:
|
||
# 断言接口返回的username
|
||
message:
|
||
jsonpath: $.message
|
||
type: list_in
|
||
value: ["ok","执行状态切换成功,但启动OTA任务失败:原因:已存在升级任务,请关闭后重试", "执行状态切换成功,但启动OTA任务失败:原因:[OTA服务器异常-创建任务] OTA信息:[没有满足升级条件的车辆][-1]"]
|
||
AssertType:
|
||
sql:
|
||
teardown:
|
||
|
||
|