pytest-jequnauto/data/FnBlackbox/upload_file.yaml

48 lines
1.2 KiB
YAML
Raw Permalink 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: 上传通用接口
allureFeature: 上传接口
allureStory: 上传接口
upload_file_01:
host: http://test-admin-api.jekunauto.net
url: /v1/upload/create
method: POST
detail: 上传接口
headers:
Content-Type: 'multipart/form-data'
Authorization: 'Jekun 0013936:JHC9i8pAh3:zec96hsUSd0v17q9eM2x0WEy740='
Entity-Date: 'Fri, 24 Feb 2023 07:23:48 GMT'
User-Agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36'
# 这里cookie的值写的是存入缓存的名称
# 请求的数据,是 params 还是 json、或者file、data
requestType: file
# 是否执行,空或者 true 都会执行
is_run:
data:
file:
file: '排入水体名.png'
data:
act: '232'
params:
fields: '*'
dependence_case: False
# 依赖的数据
dependence_case_data:
- case_id:
dependent_data:
- dependent_type:
jsonpath:
set_cache:
assert:
# 断言接口状态码
status_code: 200
data:
jsonpath: $.data.act
type: ==
value: '232'
AssertType:
sql: