pytest_api/data/dm/fota/api_swich.yaml

37 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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: