*** Settings *** Test Teardown 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"]}