From ce5804745944007d41876ac2403b9aa5a2de0fe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E9=87=91=E6=BB=A1?= Date: Wed, 29 Sep 2021 16:20:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8D=83=E9=B8=9F=E6=8E=88?= =?UTF-8?q?=E4=BF=A1=E5=88=97=E8=A1=A8=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../apply_credit_qniao_customer.robot | 19 ++++++++++++++++++- __init__.robot | 1 + 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/005_enterprise_apply_credit/apply_credit_qniao_customer.robot b/005_enterprise_apply_credit/apply_credit_qniao_customer.robot index e042051..a8166de 100644 --- a/005_enterprise_apply_credit/apply_credit_qniao_customer.robot +++ b/005_enterprise_apply_credit/apply_credit_qniao_customer.robot @@ -4,7 +4,24 @@ Library Collections Library urllib3 *** Variables *** -&{operation_psc_header} Content-Type=application/x-www-form-urlencoded X-APP-ID=503258978847965324 +&{operationpsc_header} Content-Type=application/json;charset=UTF-8 X-APP-ID=503258978847965324 Authorization=${gettoken_operate_psc} ${pscops} https://api-ops-psc-test.qniao.cn +${yytops} https://api-ops-yyt-test.qniao.cn *** Test Cases *** +operate_get_credit_list + Create Session yytops ${yytops} headers=${operationpsc_header} + ${response} Get On Session yytops /cloud-print-user-center/admin/credit/application/get/application-order-list + Log ${response.status_code} + log ${response.json()} + Should Be Equal As Numbers 200 ${response.status_code} + Should Be Equal As Strings successful ${response.json()["message"]} + +operate_get_credit_search + Create Session yytops ${yytops} headers=${operationpsc_header} + ${param} Set Variable timeBegin=2021-09-29 00:00:00&timeEnd=2021-09-29 23:59:59&enterpriseType=2&status=1&enterpriseName=测试&legalpersonName=测试 + ${response} Get On Session yytops /cloud-print-user-center/admin/credit/application/get/application-order-list params=${param} + Log ${response.status_code} + log ${response.json()} + Should Be Equal As Numbers 200 ${response.status_code} + Should Be Equal As Strings successful ${response.json()["message"]} diff --git a/__init__.robot b/__init__.robot index a1f6a55..31ee9d3 100644 --- a/__init__.robot +++ b/__init__.robot @@ -1,4 +1,5 @@ *** Settings *** +Library DatabaseLibrary Library RequestsLibrary Library Collections Library urllib3 -- 2.26.2