pytest_api/data/dmglobal/dmglobalfota/global_api_create_task.yaml

46 lines
1.0 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: global
global_api_create_task_01:
host: ${{get_host11}}
url: /tsp-server/api/index/auto/ota/create/task/list
method: POST
detail: 新建任务
headers:
Content-Type: application/json
Authorization: $cache{login_token}
# Content-Type: $cache{case_process}
requestType: JSON
# 是否有依赖业务为空或者false则表示没有
is_run:
data: {
"vins": ["TESTGWR0673250001"],
"cycle": 1,
"taskList": [ {
"partsId": "TBOX",
"partName": "DVC7E3000003-0001",
"mainSoftwareVersion": "SA100002",
"secondSoftwareVersion": "SE100002"
} ]
}
# 请求类型params 是以url拼接的形式请求json则传的是json串
assert:
status:
jsonpath: $.status
type: ==
value: 200
AssertType:
# 断言接口返回的username
message:
jsonpath: $.message
type: ==
value: "success"
AssertType:
# 断言接口返回的username
sql:
teardown: