*** Settings *** Documentation 查看代卖订单 Library RequestsLibrary Library Collections Library DateTime Library RedisLibrary Library urllib3 *** Variables *** ${header} {'content-type':'application/json','X-APP-ID':'470236309865238528','Authorization':'QNT ${gettoken}'} ${url} http://api-client-ztb-test.qniao.cn *** Test Cases *** get_proxy-order-list Create Session ZTBT ${url} ${header} ${reps} Get On Session ZTBT recycle-service/proxy-sell/get/proxy-order-list params=status=&pageNum=1&pageSize=15 ${orderId} Get From Dictionary ${reps.json()["data"]["records"][0]} orderId #获取代卖订单编号 Set Global Variable ${orderId} get_proxy-order_details Create Session ZTBT ${url} ${header} ${reps} Get On Session ZTBT recycle-service/proxy-sell/get/proxy-order/${orderId} ${data} Get From Dictionary ${reps.json()} data Set Global Variable ${data} Run Keyword If '${orderId}' in ${data} Log To Console ${data}