*** Settings *** Library Collections Library RequestsLibrary *** 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&isAutoHandle=1&status=&money=&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 ${id} Get From Dictionary ${reps.json()["data"]["records"][0]} id #提现id Set Global Variable ${id} withdraw_{id} #提现审核 Create Session ZTBT ${URL} ${header} ${data} Set Variable { \ \ "billType": 0, \ \ "remark": "string", \ \ "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