From 04c697727165c05aa0ee72c1d5da49b05955194d Mon Sep 17 00:00:00 2001 From: floraachy <1622042529@qq.com> Date: Fri, 22 Mar 2024 15:09:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=20-=20demo?= =?UTF-8?q?=5Ftest=5Fupload.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo_test_upload.yaml | 55 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 demo_test_upload.yaml diff --git a/demo_test_upload.yaml b/demo_test_upload.yaml new file mode 100644 index 0000000..d0803b6 --- /dev/null +++ b/demo_test_upload.yaml @@ -0,0 +1,55 @@ +# 公共参数 +case_common: + allure_epic: GitLink接口(自动生成用例) + allure_feature: 上传文件模块 + allure_story: 上传文件 + case_markers: + - gitlink + - upload_file + - skip: 跳过该用例 + +# 用例数据 +case_info: +- + id: case_upload_file_01 + title: 测试单文件上传 + severity: + run: False + url: /api/attachments.json + method: POST + headers: + cookies: ${login_cookie} + cookies: + request_type: file + payload: + files: + file: TOC出库订单导入模板(2).xlsx + extract: + file_id: $.id + assert_response: + eq: + http_code: 200 + assert_sql: + +- + id: case_upload_file_02 + title: 测试多文件上传(该接口不支持多文件上传,这是一个示例) + severity: normal + run: False + url: /api/attachments.json + method: POST + headers: + cookies: ${login_cookie} + cookies: + request_type: file + payload: + files: + file: + - 导入TOC订单.xls + - toc.xls + extract: + file_id: $.id + assert_response: + eq: + http_code: 200 + assert_sql: \ No newline at end of file