纸通宝新交易版
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.
 
 

22 lines
1.1 KiB

*** Settings ***
Library Collections
Library RequestsLibrary
Library DatabaseLibrary
Library urllib3
*** Test Cases ***
connect_databaseLibrary
#链接数据库
Connect To Database Using Custom Params pymysql host='8.135.8.221',user='root', password='qniaothreetwoonego', \ port=3306,database='ztb_supply_chain' #连接ztb_supply_chain数据库
${paymentOrder} Query SELECT id FROM `ztb_supply_chain`.`qn_scrap_paper_supply_payment_order` WHERE `supply_chain_instance_id` = '${supplyChainInstanceId}' #通过物流编号查找收款单id
${OrderId} Set Variable ${paymentOrder[0][0]}
Disconnect From Database #断开数据库的连接
Set Global Variable ${OrderId}
apply_factoring
#发起第三方保理
Create Session factoring ${ztbclient} ${client_headerP}
${data} Set Variable {"idList":["${OrderId}"]}
${reps} POST On Session factoring ztb-supply-chain-service/user/apply/packer/factoring ${data.encode('utf-8')}
*** Keywords ***