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.
54 lines
2.6 KiB
54 lines
2.6 KiB
*** Settings ***
|
|
Documentation 代卖应付
|
|
Library RequestsLibrary
|
|
Library Collections
|
|
Resource 财务审核驳回.txt
|
|
Resource 运营审核通过.txt
|
|
Resource 台账查询.txt
|
|
|
|
*** Variables ***
|
|
${header} {'X-APP-ID':'470236309865238555','Authorization':'${gettoken}','Content-Type':'application/json'}
|
|
${url} http://api-ops-psc-test.qniao.cn
|
|
${URL1} http://api-ops-ztb-test.qniao.cn
|
|
|
|
*** Test Cases ***
|
|
get_list
|
|
#获取财务审核列表
|
|
Create Session ZTBT ${url} ${header}
|
|
${reps} Get On Session ZTBT payment-settlement-center/admin/paper-mill-order-receipt-proof-request/get/list params=pageNum=1&pageSize=10&status=&orderId=&orderItemId=${orderItemId}
|
|
${auditedTime} Get From Dictionary ${reps.json()["data"]["records"][0]} auditedTime #财务第一次确认结算时间
|
|
Should Be Equal As Strings ${reps.json()["message"]} successful
|
|
#Set Global Variable ${auditedTime}
|
|
|
|
get_order-log-detail
|
|
#财务审核驳回操作记录
|
|
Create Session ZTBT ${URL1} ${header}
|
|
${reps} Get On Session ZTBT recycle-service/admin/operation/get/order-log-detail params=orderId=${orderId}&weightNoteId=${weightNoteId}&operationStatus=3
|
|
|
|
重复执行财务审核驳回何运营审核通过
|
|
#重复执行财务审核驳回何运营审核通过操作
|
|
FOR ${index} IN RANGE 5
|
|
Run Keyword 获取财务审核列表
|
|
Run Keyword If '${staus}'=='0' 财务驳回
|
|
Run Keyword get_operation_list
|
|
Run Keyword get_order-receipt-audit-details
|
|
Run Keyword order-receipt-audit-details
|
|
Run Keyword If '${audit_status}'=='0' 运营审核通过
|
|
Run Keyword 运营审核后详情
|
|
Run Keyword 台账查询
|
|
END
|
|
|
|
paper-mill-order-receipt-proof-request_audit
|
|
#财务审核确认通过
|
|
Create Session ZTBT ${url} ${header}
|
|
${data} Set Variable {"auditRequestId":"${auditRequestId}","adminId":null,"isPass":1,"remark":"${datatime}" }
|
|
${reps} Post On Session ZTBT payment-settlement-center/admin/paper-mill-order-receipt-proof-request/audit ${data.encode('utf-8')}
|
|
log ${reps.json()}
|
|
sleep 1
|
|
|
|
paper-mill-order-receipt-proof-request_settle
|
|
#确认结算
|
|
Create Session ZTBT ${url} ${header}
|
|
${data} Set Variable { \ \ \ \ "id":"${auditRequestId}", \ \ \ \ "adminId":null }
|
|
${reps} Post On Session ZTBT payment-settlement-center/admin/paper-mill-order-receipt-proof-request/settle ${data.encode('utf-8')}
|
|
sleep 1
|