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 ***
Documentation 订单管理
Library urllib3
Library String
Library demjson
Library Collections
Library RequestsLibrary
*** Test Cases ***
salesOrder
#销售订单
Create Session opr-center ${yytClient} ${OperationHeader}
${reps} GET On Session opr-center printing-packaging-factory-service/user/page/printing-sales-order params=status=&pageNum=1&pageSize=10&orderQueryType=0
${orderList} Get From Dictionary ${reps.json()['data']} records #获取销售单列表
FOR ${OrderList} IN @{orderList}
${OrderId} Get From Dictionary ${OrderList} id #获取销售单id
${OrderCode} Get From Dictionary ${OrderList} orderCode #获取销售单号
Exit For Loop If '${OrderId}'=='922542346799812608' #判断订单号是否相等
#Exit For Loop If '${OrderId}'=='${orderid}' #判断订单号是否相等
END
Set Global Variable ${OrderId}
Set Global Variable ${OrderCode}