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.
27 lines
1.3 KiB
27 lines
1.3 KiB
*** Settings ***
|
|
Library Collections
|
|
Library RequestsLibrary
|
|
|
|
*** Variables ***
|
|
${URL} http://api-ops-psc-test.qniao.cn
|
|
${header} {'X-APP-ID':'470236309865238555','Authorization':'Token 6b08add42d6bcf73abb935b2adf83525','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
|
|
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
|