You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.7 KiB
33 lines
1.7 KiB
*** Settings ***
|
|
Library RequestsLibrary
|
|
Library Collections
|
|
Library urllib3
|
|
|
|
*** Variables ***
|
|
&{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_customer_bill_list
|
|
Create Session yytops ${yytops} headers=${operationpsc_header}
|
|
${response} Get On Session yytops /trading-center/admin/get/bill-list
|
|
log ${response.json()}
|
|
Should Be Equal As Numbers 200 ${response.status_code}
|
|
Should Be Equal As Strings successful ${response.json()["message"]}
|
|
|
|
operate_get_customer_bill_list_search
|
|
Create Session yytops ${yytops} headers=${operationpsc_header}
|
|
${param} Set Variable customerEnterpriseName=${printing_packaging_factory_name}
|
|
${response} Get On Session yytops /trading-center/admin/get/bill-list params=${param}
|
|
log ${response.json()}
|
|
Should Be Equal As Numbers 200 ${response.status_code}
|
|
Should Be Equal As Strings successful ${response.json()["message"]}
|
|
|
|
operate_get_customer_detail
|
|
Create Session yytops ${yytops} headers=${operationpsc_header}
|
|
${param} Set Variable customerEnterpriseId=${printing_packaging_factory_id}&month=${current_date_month}
|
|
${response} Get On Session yytops /trading-center/admin/get/bill-detail params=${param}
|
|
log ${response.json()}
|
|
Should Be Equal As Numbers 200 ${response.status_code}
|
|
Should Be Equal As Strings successful ${response.json()["message"]}
|