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