纸通宝交易版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

28 lines
1.4 KiB

*** 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