物料下单终极测试

This commit is contained in:
苏尹岚
2020-03-09 16:28:19 +08:00
parent e4f059816c
commit 089cef0bde
2 changed files with 39 additions and 21 deletions

View File

@@ -31,7 +31,20 @@ func TestQuerySpSource(t *testing.T) {
func TestAddOrder(t *testing.T) {
result, err := api.AddOrder(&AddOrderParam{
IsvUUID: "88321464273509",
IsvSource: IsvSource,
ShopNo: ShopNo,
DepartmentNo: DepartmentNo,
WarehouseNo: WarehouseNo,
SalePlatformSource: SalePlatformSource,
SalesPlatformOrderNo: "88321464273509",
ConsigneeName: "测试用户",
ConsigneeMobile: "18160030913",
ConsigneeAddress: "成都市金牛区",
OrderMark: OrderMark,
IsvGoodsNo: "JX10012,JX10011",
Price: "0,0",
Quantity: "1,2",
})
if err != nil {
t.Fatal(err)
@@ -39,7 +52,11 @@ func TestAddOrder(t *testing.T) {
t.Log(utils.Format4Output(result, false))
}
func TestCancelOrder(t *testing.T) {
api.CancelOrder("")
result, err := api.CancelOrder("ESL96778168766975")
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}
func TestQueryOrderStatus(t *testing.T) {
api.QueryOrderStatus("")