*** Settings *** Library RequestsLibrary Library Collections Library urllib3 *** Test Cases *** operate_get_payable_list Disable Warnings 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 Disable Warnings 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 Disable Warnings Create Session yytops ${yytops} headers=${operationpsc_header} ${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"]}