*** Settings *** Library RequestsLibrary Library Collections *** Variables *** ${URL} http://api-ops-psc-test.qniao.cn ${header} {'X-APP-ID':'470236309865238555','Authorization':'${gettoken}','Content-Type':'application/json'} *** Test Cases *** get_withdraw-list #通过订单编号获取手动到账提现列表 Create Session ZTBT ${URL} ${header} ${reps} Get On Session ZTBT payment-settlement-center/admin/settlement/get/withdraw-list params=pageNum=1&pageSize=10&status=0&isAutoHandle=0&orderId=${tradeOrderId} log ${reps.json()} ${records} Get From Dictionary ${reps.json()["data"]} records #提现列表 ${value} Evaluate random.choice(${records} ) random log to console \nvalue: ${value} ${提现ID} Get From Dictionary ${value} id #提现id Set Global Variable ${提现ID} settlement_verify-withdraw #确认提现 Create Session ZTBT ${URL} ${header} ${data} Set Variable { \ \ \ \ "id":null, \ \ \ \ "remark":null, \ \ \ \ "status":"1" } ${reps} Post On Session ZTBT payment-settlement-center/admin/settlement/verify/withdraw/${提现ID} ${data} log ${reps.json()} Should Be Equal As Strings ${reps.json()["message"]} successful