70 lines
1.5 KiB
YAML
70 lines
1.5 KiB
YAML
case_common:
|
||
allureEpic: DM系统
|
||
allureFeature: FOTA系统
|
||
allureStory: 一键唤醒
|
||
markers: domestic
|
||
|
||
aut_wakeup_01:
|
||
host: ${{get_host11}}
|
||
url: /tsp-server/api/index/auto/ota/auto-wakeup
|
||
method: PUt
|
||
detail: 一键唤醒关闭
|
||
headers:
|
||
Content-Type: application/json
|
||
Authorization: $cache{login_token}
|
||
# Content-Type: $cache{case_process}
|
||
requestType: JSON
|
||
# 是否有依赖业务,为空或者false则表示没有
|
||
is_run:
|
||
data:
|
||
autoWakeUp: false
|
||
vin: $cache{vin}
|
||
# 请求类型:params 是以url拼接的形式请求,json则传的是json串
|
||
assert:
|
||
status:
|
||
jsonpath: $.status
|
||
type: ==
|
||
value: 200
|
||
AssertType:
|
||
# 断言接口返回的username
|
||
message:
|
||
jsonpath: $.message
|
||
type: ==
|
||
value: "ok"
|
||
AssertType:
|
||
sql:
|
||
teardown:
|
||
|
||
aut_wakeup_02:
|
||
host: ${{get_host11}}
|
||
url: /tsp-server/api/index/auto/ota/auto-wakeup
|
||
method: PUt
|
||
detail: 一键唤醒开启
|
||
headers:
|
||
Content-Type: application/json
|
||
Authorization: $cache{login_token}
|
||
# Content-Type: $cache{case_process}
|
||
requestType: JSON
|
||
# 是否有依赖业务,为空或者false则表示没有
|
||
is_run:
|
||
data:
|
||
autoWakeUp: true
|
||
vin: $cache{vin}
|
||
# 请求类型:params 是以url拼接的形式请求,json则传的是json串
|
||
assert:
|
||
status:
|
||
jsonpath: $.status
|
||
type: ==
|
||
value: 200
|
||
AssertType:
|
||
# 断言接口返回的username
|
||
message:
|
||
jsonpath: $.message
|
||
type: ==
|
||
value: "ok"
|
||
AssertType:
|
||
sql:
|
||
teardown:
|
||
|
||
|