云印通原纸商城
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.
 
 

32 lines
1.7 KiB

*** Settings ***
Library RequestsLibrary
Library Collections
Library urllib3
*** 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"]}