新增千鸟授信列表查询 #14

Merged
liangjinman merged 1 commits from test into master 4 years ago
  1. 19
      005_enterprise_apply_credit/apply_credit_qniao_customer.robot
  2. 1
      __init__.robot

19
005_enterprise_apply_credit/apply_credit_qniao_customer.robot

@ -4,7 +4,24 @@ Library Collections
Library urllib3 Library urllib3
*** Variables *** *** 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 ${pscops} https://api-ops-psc-test.qniao.cn
${yytops} https://api-ops-yyt-test.qniao.cn
*** Test Cases *** *** 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"]}

1
__init__.robot

@ -1,4 +1,5 @@
*** Settings *** *** Settings ***
Library DatabaseLibrary
Library RequestsLibrary Library RequestsLibrary
Library Collections Library Collections
Library urllib3 Library urllib3
Loading…
Cancel
Save