49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
case_common:
|
||
allureEpic: DM系统
|
||
allureFeature: FOTA系统
|
||
allureStory: 已完成任务列表
|
||
markers: global
|
||
|
||
global_completed_list_01:
|
||
host: ${{get_host11}}
|
||
url: /tsp-server/api/index/auto/ota/completed/list/73494951000000000
|
||
method: GET
|
||
detail: 已完成任务列表
|
||
headers:
|
||
Content-Type: application/json
|
||
Authorization: $cache{login_token}
|
||
# Content-Type: $cache{case_process}
|
||
requestType: PARAMS
|
||
# 是否有依赖业务,为空或者false则表示没有
|
||
is_run:
|
||
data:
|
||
# 请求类型:params 是以url拼接的形式请求,json则传的是json串
|
||
assert:
|
||
status:
|
||
jsonpath: $.status
|
||
type: ==
|
||
value: 200
|
||
AssertType:
|
||
# 断言接口返回的username
|
||
data:
|
||
jsonpath: $.message
|
||
type: ==
|
||
value: "ok"
|
||
AssertType:
|
||
# 断言接口返回的username
|
||
sql:
|
||
teardown:
|
||
- step:
|
||
- dependent_type: response
|
||
jsonpath: $.data[0].completedTaskId
|
||
set_value: $set_cache{completedTaskId}
|
||
- step:
|
||
- dependent_type: response
|
||
jsonpath: $.data[0].otaTaskId
|
||
set_value: $set_cache{otaTaskId}
|
||
- step:
|
||
- dependent_type: response
|
||
jsonpath: $.data[0].otaTaskCarId
|
||
set_value: $set_cache{otaTaskCarId}
|
||
|