*** Settings *** Library DateTime Library RequestsLibrary Library Collections *** Test Cases *** White_audit #白条审核 Create Session factoring ${uecclient} ${ztbsc_factoring_header} ${reps} GET On Session factoring factoring/user/page/reverse_factoring/debt-assignment-application-stats params=status=1&debtOrgName=${papermillname}&pageNum=1&pageSize=10 ${debtOrgId} Get From Dictionary ${reps.json()['data']['records'][0]} debtOrgId #纸厂组织id Set Global Variable ${debtOrgId} #白条审核纸厂订单明细 ${reps} GET On Session factoring factoring/user/get/debt-assignment-application-list params=status=1&debtOrgId=${debtOrgId}&extOrderId=${supplyChainInstanceId}&pageNum=1&pageSize=10&factoringType=3032 ${auditId} Get From Dictionary ${reps.json()['data']['records'][0]} id #白条审核纸厂id #白条审核通过 ${auditData} Set Variable { \ \ \ \ "status":2, \ \ \ \ "id":"${auditId}" } ${reps} POST On Session factoring factoring/user/audit/debt-assignment-application ${auditData.encode('utf-8')} White_payment #白条付款 Create Session factoring ${uecclient} ${ztbsc_factoring_header} ${reps} GET On Session factoring factoring/user/page/reverse_factoring/payment-order-stats params=status=0&supplierOrgName=${papermillname}&pageNum=1&pageSize=10 #保理纸厂付款列表 ${reps} GET On Session factoring factoring/user/get/payment-order-list params=status=0&debtOrgId=${debtOrgId}&extOrderId=${supplyChainInstanceId}&pageNum=1&pageSize=10&factoringType=3032 ${factoringPaymentId} Get From Dictionary ${reps.json()['data']['records'][0]} id #保理付款id #保理确认付款 ${PaymentData} Set Variable { \ \ \ \ "idList":[ \ \ \ \ \ \ \ \ "${factoringPaymentId}" \ \ \ \ ] } ${reps} POST On Session factoring factoring/user/confirm/payment-order/paid ${PaymentData.encode('utf-8')} Should Be Equal As Strings ${reps.json()['message']} successful sleep 0.5 papermill_payment #纸厂端确认付款 Create Session factoring ${uecclient} ${ztbsc_papermill_header} ${reps} GET On Session factoring factoring/user/paper-mill/get/receivable-order-list params=status=0&extOrderId=${supplyChainInstanceId}&pageNum=1&pageSize=10 ${repaymentId} Get From Dictionary ${reps.json()['data']['records'][0]} id #纸厂还款id #确认还款 ${repaymentData} Set Variable { \ \ \ \ "id":"${repaymentId}" } ${reps} POST On Session factoring factoring/user/repay/receivable-order ${repaymentData.encode('utf-8')} Should Be Equal As Strings ${reps.json()['message']} successful