5 changed files with 210 additions and 0 deletions
Split View
Diff Options
-
7000_get_current_datetime.robot
-
95017_order_and_receipt_and_delivery/get_oeder_and_receipt_and_delivery.robot
-
33018_payable_and_receivable/customer_bill.robot
-
37018_payable_and_receivable/payable.robot
-
38018_payable_and_receivable/receivable.robot
@ -0,0 +1,33 @@ |
|||
*** 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"]} |
|||
@ -0,0 +1,37 @@ |
|||
*** 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_payable_list |
|||
Create Session yytops ${yytops} headers=${operationpsc_header} |
|||
${response} Get On Session yytops /trading-center/admin/get/payable-list |
|||
log ${response.json()} |
|||
Should Be Equal As Numbers 200 ${response.status_code} |
|||
Should Be Equal As Strings successful ${response.json()["message"]} |
|||
|
|||
operate_get_payable_list_search |
|||
Create Session yytops ${yytops} headers=${operationpsc_header} |
|||
${param} Set Variable enterpriseName=${supplier_paper_name} |
|||
${response} Get On Session yytops /trading-center/admin/get/payable-list params=${param} |
|||
log ${response.json()} |
|||
Should Be Equal As Numbers 200 ${response.status_code} |
|||
Should Be Equal As Strings successful ${response.json()["message"]} |
|||
${payable_id} Get From Dictionary ${response.json()["data"]["records"][0]} id |
|||
Set Suite Variable ${payable_id} |
|||
|
|||
operate_confirm_payable |
|||
Create Session yytops ${yytops} headers=${operationpsc_header} |
|||
${payable_fundProvider} Set Variable 1 #付款资金方 1千鸟互联 2千纸鹤 |
|||
${payable_remark} Set Variable autotest_remark |
|||
${bady} Set Variable {"fundProvider":${payable_fundProvider},"id":"${payable_id}","realAmount":${supplier_order_totalPrice},"remark":"${payable_remark}"} |
|||
${response} POST On Session yytops /trading-center/admin/confirm/payable ${bady} |
|||
log ${response.json()} |
|||
Should Be Equal As Numbers 200 ${response.status_code} |
|||
Should Be Equal As Strings successful ${response.json()["message"]} |
|||
@ -0,0 +1,38 @@ |
|||
*** 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_receivable_list |
|||
Create Session yytops ${yytops} headers=${operationpsc_header} |
|||
${response} Get On Session yytops /trading-center/admin/get/receivable-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_receivable_list_search |
|||
Create Session yytops ${yytops} headers=${operationpsc_header} |
|||
${param} Set Variable enterpriseName=${supplier_paper_name} |
|||
${response} Get On Session yytops /trading-center/admin/get/receivable-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"]} |
|||
${receivable_id} Get From Dictionary ${response.json()["data"]["records"][0]} id |
|||
Set Suite Variable ${receivable_id} |
|||
|
|||
operate_confirm_receivable |
|||
Create Session yytops ${yytops} headers=${operationpsc_header} |
|||
${receivable_remark} Set Variable autotest_remark |
|||
${bady} Set Variable {"id":"${payable_id}","realAmount":${customer_order_totalPrice},"remark":"${receivable_remark}"} |
|||
${response} POST On Session yytops /admin/confirm/receivable ${bady} |
|||
log ${response.json()} |
|||
Should Be Equal As Numbers 200 ${response.status_code} |
|||
Should Be Equal As Strings successful ${response.json()["message"]} |
|||
Write
Preview
Loading…
Cancel
Save