diff --git a/004_enterprise_open_account_supplier/supplier_paper_open_account.robot b/004_enterprise_open_account_supplier/supplier_paper_open_account.robot index 340d537..411d238 100644 --- a/004_enterprise_open_account_supplier/supplier_paper_open_account.robot +++ b/004_enterprise_open_account_supplier/supplier_paper_open_account.robot @@ -16,9 +16,9 @@ ${yytops} https://api-ops-yyt-test.qniao.cn operate_save_virtual_supplier Disable Warnings Create Session yytops ${yytops} headers=${operation_backend_header} - ${virtual_supplier_name} Set Variable autotest_virtualsupplier_name - ${virtual_supplier_details} Set Variable autotest_virtual_supplier_details - ${virtual_supplier_contactname} Set Variable autotest_virtual_supplier_contactname + ${virtual_supplier_name} Set Variable autotest_supplier_paper_name + ${virtual_supplier_details} Set Variable autotest_supplier_paper_details + ${virtual_supplier_contactname} Set Variable autotest_supplier_paper_contactname ${virtual_supplier_contactmoblie} Set Variable 13800138000 ${virtual_supplier_provinceid} Set Variable 440000 ${virtual_supplier_cityid} Set Variable 440100 diff --git a/009_product_manage/product_add_and_list.robot b/009_product_manage/product_add_and_list.robot index 3a320ea..3ed3f42 100644 --- a/009_product_manage/product_add_and_list.robot +++ b/009_product_manage/product_add_and_list.robot @@ -20,8 +20,12 @@ supplierfocus_product_check_exist supplierfocus_save_product Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header} - ${body} Set Variable {"categoryId":null,"brandName":"${paper_brand_name}","name":"${paper_name}","itemNo":"无","description":"报价全部为现金含税价,支持先用后付,欢迎来电查询!近期价格波动较大,请下单前先咨询价格。","shippingNote":"分切纸不足重量的,另加调机费;低于送货重量或超出送货范围的,运费另计。","sellingProposition":"月结30天价格,不加服务费!","setUnit":"吨","skuList":[{"id":null,"2":678,"purchasePrice":5678}],"categoryBrandId":"${paper_brand_id}","categoryName":"${paper_category_name}","paperMill":"${paper_manufacturer_shortName}","salesEnterpriseId":${supplier_paper_id},"supplierName":"${supplier_paper_name}"} + ${gramweight} Set Variable 678 + ${purchasePrice} Set Variable 5678 + ${body} Set Variable {"categoryId":null,"brandName":"${paper_brand_name}","name":"${paper_name}","itemNo":"无","description":"报价全部为现金含税价,支持先用后付,欢迎来电查询!近期价格波动较大,请下单前先咨询价格。","shippingNote":"分切纸不足重量的,另加调机费;低于送货重量或超出送货范围的,运费另计。","sellingProposition":"月结30天价格,不加服务费!","setUnit":"吨","skuList":[{"id":null,"2":${gramweight},"purchasePrice":${purchasePrice}}],"categoryBrandId":"${paper_brand_id}","categoryName":"${paper_category_name}","paperMill":"${paper_manufacturer_shortName}","salesEnterpriseId":${supplier_paper_id},"supplierName":"${supplier_paper_name}"} ${response} POST On Session yytclient /trading-center/save/product ${body.encode("utf8")} + Set Global Variable ${gramweight} + Set Global Variable ${purchasePrice} Log ${response.status_code} log ${response.json()} Should Be Equal As Numbers 200 ${response.status_code} diff --git a/015_customer_create_order/customer_create_order_credit_payment.robot b/015_customer_create_order/customer_create_order_credit_payment.robot index 69c1b49..4ee2cfb 100644 --- a/015_customer_create_order/customer_create_order_credit_payment.robot +++ b/015_customer_create_order/customer_create_order_credit_payment.robot @@ -5,9 +5,32 @@ Library urllib3 *** Variables *** &{cloudfactory_customer_header} Content-Type=application/json;charset=UTF-8 X-APP-ID=503258978847965388 Authorization=${getlogintoken_customer} +&{cloudfactory_supplierfocus_header} Content-Type=application/json;charset=UTF-8 X-APP-ID=503258978847956666 Authorization=${getlogintoken_supplier_focus} ${yytclient} https://api-client-yyt-test.qniao.cn *** Test Cases *** +get_settlement_interval_premium_rate_qniao + Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header} + ${settlement_interval_premium_rate_type} Set Variable 0 #加价率类型 不传或NULL或0千鸟加价率 1为飞算加价率 + ${param} Set Variable clientEnterpriseId=${printing_packaging_factory_id}&supplierId=${supplier_paper_id}&type=${settlement_interval_premium_rate_type} + ${response} Get On Session yytclient /cloud-print-user-center/get/settlement-interval/premium-rate params=${param} + log ${response.json()} + Should Be Equal As Numbers 200 ${response.status_code} + Should Be Equal As Strings successful ${response.json()["message"]} + ${settlement_interval_premium_rate_qniao} Get From Dictionary ${response.json()} data + Set Global Variable ${settlement_interval_premium_rate_qniao} + +get_settlement_interval_premium_rate_feisuan + Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header} + ${settlement_interval_premium_rate_type} Set Variable 0 #加价率类型 不传或NULL或0千鸟加价率 1为飞算加价率 + ${param} Set Variable clientEnterpriseId=${printing_packaging_factory_id}&supplierId=${supplier_paper_id}&type=${settlement_interval_premium_rate_type} + ${response} Get On Session yytclient /cloud-print-user-center/get/settlement-interval/premium-rate params=${param} + log ${response.json()} + Should Be Equal As Numbers 200 ${response.status_code} + Should Be Equal As Strings successful ${response.json()["message"]} + ${settlement_interval_premium_rate_feisuan} Get From Dictionary ${response.json()} data + Set Global Variable ${settlement_interval_premium_rate_feisuan} + customer_create_order_credit_payment Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header} ${customer_enterprise_shipping_address_receiver} Set Variable autotest_receiver @@ -22,8 +45,23 @@ customer_create_order_credit_payment ${customer_enterprise_shipping_address_districtname} Set Variable 天河区 ${customer_enterprise_shipping_address_streetname} Set Variable 车陂街道 ${customer_create_order_paymentMethod} Set Variable 2 #支付方式 1微信支付 2授信支付 3线下支付 4飞算支付 - ${customer_create_order_productSkuList} Set Variable [{"gramWeight":"678","width":"787","length":"1092","quantity":5000,"buyTon":2.9134,"productName":"${paper_name}","unitPrice":6992.67,"bootFee":0,"cuttingFee":0,"freightFee":0,"serviceFee":0,"otherFee":0,"totalOfferPrice":20373.41,"remark":"autotest_customer_create_order_remark","productSkuId":"${product_price_sku_id}"}] - ${body} Set Variable {"receiverMobile":"${customer_enterprise_shipping_address_receiverMobile}","receiver":"${customer_enterprise_shipping_address_receiver}","deliveryProvinceId":${customer_enterprise_shipping_address_provinceid},"deliveryProvinceName":"${customer_enterprise_shipping_address_provincename}","deliveryCityId":${customer_enterprise_shipping_address_cityid},"deliveryCityName":"${customer_enterprise_shipping_address_cityname}","deliveryDistrictId":${customer_enterprise_shipping_address_districtid},"deliveryDistrictName":"${customer_enterprise_shipping_address_districtname}","deliveryStreetId":${customer_enterprise_shipping_address_streetid},"deliveryStreetName":"${customer_enterprise_shipping_address_streetname}","deliveryId":"${customer_enterprise_shipping_address_id}","deliveryDetails":"${customer_enterprise_shipping_address_detail}","paymentMethod":2,"realPayPrice":56.61,"totalOfferPrice":56.61,"password":"${customer_credit_password_new}","productSkuList":${customer_create_order_productSkuList.encode("utf-8")}} + ${customer_create_order_width} Set Variable 787 + ${customer_create_order_length} Set Variable 1092 + ${customer_create_order_quantity} Set Variable 5000 + ${customer_create_order_buyton} Evaluate ${gramweight}*${customer_create_order_width}*${customer_create_order_length}*${customer_create_order_quantity}/1000000000000 + ${customer_create_order_buyTon} Convert To Number ${customer_create_order_buyton} 4 #precision 如果可选精度为正或零,则返回的数字将四舍五入到小数位数。负精度意味着数字四舍五入到绝对精度幂的最接近10的倍数。如果一个数字同样接近某一精度,它总是从零开始四舍五入。 + ${customer_create_order_price} Evaluate ${product_price_sku_new}*(1+${settlement_interval_premium_rate_qniao}) + ${customer_create_order_Price} Convert To Number ${customer_create_order_price} 2 #precision 如果可选精度为正或零,则返回的数字将四舍五入到小数位数。负精度意味着数字四舍五入到绝对精度幂的最接近10的倍数。如果一个数字同样接近某一精度,它总是从零开始四舍五入。 + ${customer_create_order_bootFee} Set Variable 0 + ${customer_create_order_cuttingFee} Set Variable 0 + ${customer_create_order_freightFee} Set Variable 0 + ${customer_create_order_serviceFee} Set Variable 0 + ${customer_create_order_otherFee} Set Variable 0 + ${customer_create_order_totalOfferPrice} Evaluate ${customer_create_order_Price}*${customer_create_order_buyTon}+${customer_create_order_cuttingFee}+${customer_create_order_bootFee}+${customer_create_order_otherFee}+${customer_create_order_freightFee}+${customer_create_order_serviceFee} + ${customer_create_order_totalOfferPrice_item} Convert To Number ${customer_create_order_totalOfferPrice} 2 #precision 如果可选精度为正或零,则返回的数字将四舍五入到小数位数。负精度意味着数字四舍五入到绝对精度幂的最接近10的倍数。如果一个数字同样接近某一精度,它总是从零开始四舍五入。 + ${customer_create_order_realPayPrice} Set Variable ${customer_create_order_totalOfferPrice_item} + ${customer_create_order_productSkuList} Set Variable [{"gramWeight":"${gramweight}","width":"${customer_create_order_width}","length":"${customer_create_order_length}","quantity":${customer_create_order_quantity},"buyTon":${customer_create_order_buyTon},"productName":"${paper_name}","unitPrice":${customer_create_order_Price},"bootFee":${customer_create_order_bootFee},"cuttingFee":${customer_create_order_cuttingFee},"freightFee":${customer_create_order_freightFee},"serviceFee":${customer_create_order_serviceFee},"otherFee":${customer_create_order_otherFee},"totalOfferPrice":${customer_create_order_totalOfferPrice_item},"remark":"autotest_customer_create_order_remark","productSkuId":"${product_price_sku_id}"}] + ${body} Set Variable {"receiverMobile":"${customer_enterprise_shipping_address_receiverMobile}","receiver":"${customer_enterprise_shipping_address_receiver}","deliveryProvinceId":${customer_enterprise_shipping_address_provinceid},"deliveryProvinceName":"${customer_enterprise_shipping_address_provincename}","deliveryCityId":${customer_enterprise_shipping_address_cityid},"deliveryCityName":"${customer_enterprise_shipping_address_cityname}","deliveryDistrictId":${customer_enterprise_shipping_address_districtid},"deliveryDistrictName":"${customer_enterprise_shipping_address_districtname}","deliveryStreetId":${customer_enterprise_shipping_address_streetid},"deliveryStreetName":"${customer_enterprise_shipping_address_streetname}","deliveryId":"${customer_enterprise_shipping_address_id}","deliveryDetails":"${customer_enterprise_shipping_address_detail}","paymentMethod":${customer_create_order_paymentMethod},"realPayPrice":${customer_create_order_realPayPrice},"totalOfferPrice":${customer_create_order_realPayPrice},"password":"${customer_credit_password_new}","productSkuList":${customer_create_order_productSkuList.encode("utf-8")}} ${response} POST On Session yytclient /trading-center/buyer/create/order ${body.encode("utf-8")} log ${response.json()} Should Be Equal As Numbers 200 ${response.status_code} diff --git a/016_enquiry_create_order/customer_enquiry_operate_and_supplier_quoted_price_create_order.robot b/016_enquiry_create_order/customer_enquiry_operate_and_supplier_quoted_price_create_order.robot index fb62cc2..9eda80f 100644 --- a/016_enquiry_create_order/customer_enquiry_operate_and_supplier_quoted_price_create_order.robot +++ b/016_enquiry_create_order/customer_enquiry_operate_and_supplier_quoted_price_create_order.robot @@ -47,8 +47,16 @@ supplierfocus_get_enquiry_list_search supplierfocus_edit_enquiry_details Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header} + ${enquiry_gramWeight1} Set Variable 678 + ${enquiry_width1} Set Variable 787 + ${enquiry_length1} Set Variable 1000 + ${enquiry_quantity1} Set Variable 5500 + ${enquiry_gramWeight2} Set Variable 678 + ${enquiry_width2} Set Variable 787 + ${enquiry_length2} Set Variable 1092 + ${enquiry_quantity2} Set Variable 5000 ${customer_enquiry_remark} Set Variable autotest_remark - ${body} Set Variable {"addList":[{"deliveryId":null,"deliveryProvinceId":null,"deliveryProvinceName":null,"deliveryCityId":null,"deliveryCityName":null,"deliveryDistrictId":null,"deliveryDistrictName":null,"deliveryStreetId":null,"deliveryStreetName":null,"deliveryDetails":null,"deliveryReceiver":null,"deliveryReceiverMobile":null,"brandId":"${paper_brand_id}","gramWeight":678,"width":787,"length":1000,"quantity":5000,"brandName":"${paper_name}","enquiryId":"${customer_enquiry_id}","remark":"${customer_enquiry_remark}"},{"deliveryId":null,"deliveryProvinceId":null,"deliveryProvinceName":null,"deliveryCityId":null,"deliveryCityName":null,"deliveryDistrictId":null,"deliveryDistrictName":null,"deliveryStreetId":null,"deliveryStreetName":null,"deliveryDetails":null,"deliveryReceiver":null,"deliveryReceiverMobile":null,"brandId":"${paper_brand_id}","gramWeight":678,"width":787,"length":1092,"quantity":5000,"brandName":"${paper_name}","enquiryId":"${customer_enquiry_id}","remark":"${customer_enquiry_remark}"}],"delList":[],"updateList":[],"id":"${customer_enquiry_id}","askEnterprise":"${printing_packaging_factory_id}","belongEnterpriseName":"${printing_packaging_factory_name}","deliveryDay":${customer_deliveryDay},"deliveryArea":"${customer_deliveryArea}","enquiryContent":"${customer_enquiryContent}","picUrl":null,"receiver":null,"receiverMobile":null,"deliveryProvinceId":null,"deliveryCityId":null,"deliveryDistrictId":null,"deliveryStreetId":null,"deliveryProvinceName":null,"deliveryCityName":null,"deliveryDistrictName":null,"deliveryStreetName":null,"deliveryDetail":null,"deliveryId":null,"deliveryDetails":null,"deliveryReceiver":null,"deliveryReceiverMobile":null} + ${body} Set Variable {"addList":[{"deliveryId":null,"deliveryProvinceId":null,"deliveryProvinceName":null,"deliveryCityId":null,"deliveryCityName":null,"deliveryDistrictId":null,"deliveryDistrictName":null,"deliveryStreetId":null,"deliveryStreetName":null,"deliveryDetails":null,"deliveryReceiver":null,"deliveryReceiverMobile":null,"brandId":"${paper_brand_id}","gramWeight":${enquiry_gramWeight1},"width":${enquiry_width1},"length":${enquiry_length1},"quantity":${enquiry_quantity1},"brandName":"${paper_name}","enquiryId":"${customer_enquiry_id}","remark":"${customer_enquiry_remark}"},{"deliveryId":null,"deliveryProvinceId":null,"deliveryProvinceName":null,"deliveryCityId":null,"deliveryCityName":null,"deliveryDistrictId":null,"deliveryDistrictName":null,"deliveryStreetId":null,"deliveryStreetName":null,"deliveryDetails":null,"deliveryReceiver":null,"deliveryReceiverMobile":null,"brandId":"${paper_brand_id}","gramWeight":${enquiry_gramWeight2},"width":${enquiry_width2},"length":${enquiry_length2},"quantity":${enquiry_quantity2},"brandName":"${paper_name}","enquiryId":"${customer_enquiry_id}","remark":"${customer_enquiry_remark}"}],"delList":[],"updateList":[],"id":"${customer_enquiry_id}","askEnterprise":"${printing_packaging_factory_id}","belongEnterpriseName":"${printing_packaging_factory_name}","deliveryDay":${customer_deliveryDay},"deliveryArea":"${customer_deliveryArea}","enquiryContent":"${customer_enquiryContent}","picUrl":null,"receiver":null,"receiverMobile":null,"deliveryProvinceId":null,"deliveryCityId":null,"deliveryDistrictId":null,"deliveryStreetId":null,"deliveryProvinceName":null,"deliveryCityName":null,"deliveryDistrictName":null,"deliveryStreetName":null,"deliveryDetail":null,"deliveryId":null,"deliveryDetails":null,"deliveryReceiver":null,"deliveryReceiverMobile":null} ${response} POST On Session yytclient /trading-center/update/enquiry-order ${body.encode("utf-8")} Set Global Variable ${customer_enquiry_remark} log ${response.json()} @@ -89,9 +97,51 @@ supplierfocus_get_obtain_paper_quotes_list supplierfocus_submit_paper_quotation Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header} + ${paper_quotation_gramWeight1} Set Variable 678 + ${paper_quotation_width1} Set Variable 787 + ${paper_quotation_length1} Set Variable 1000 + ${paper_quotation_quantity1} Set Variable 5500 + ${paper_quotation_buyton1} Evaluate ${paper_quotation_gramWeight1}*${paper_quotation_width1}*${paper_quotation_length1}*${paper_quotation_quantity1}/1000000000000 + ${paper_quotation_buyTon1} Convert To Number ${paper_quotation_buyton1} 4 #precision 如果可选精度为正或零,则返回的数字将四舍五入到小数位数。负精度意味着数字四舍五入到绝对精度幂的最接近10的倍数。如果一个数字同样接近某一精度,它总是从零开始四舍五入。 + ${paper_quotation_unitfee1} Evaluate ${product_price_sku_new}*${settlement_interval_premium_rate_qniao} + ${paper_quotation_flyCalcSalesprice1} Evaluate ${product_price_sku_new}*${settlement_interval_premium_rate_feisuan} + ${paper_quotation_otherFee} Set Variable 0 + ${paper_quotation_unitFee1} Convert To Number ${paper_quotation_unitfee1} + ${paper_quotation_flyCalcSalesPrice1} Convert To Number ${paper_quotation_flyCalcSalesprice1} + ${paper_quotation_totalOfferPrice1} Evaluate ${paper_quotation_unitFee1}*${paper_quotation_buyTon1}+${paper_quotation_otherFee} + ${paper_quotation_totalOfferPrice_item1} Convert To Number ${paper_quotation_totalOfferPrice1} 2 + ${paper_quotation_gramWeight2} Set Variable 678 + ${paper_quotation_width2} Set Variable 787 + ${paper_quotation_length2} Set Variable 1092 + ${paper_quotation_quantity2} Set Variable 5000 + ${paper_quotation_buyton2} Evaluate ${paper_quotation_gramWeight2}*${paper_quotation_width2}*${paper_quotation_length2}*${paper_quotation_quantity2}/1000000000000 + ${paper_quotation_buyTon2} Convert To Number ${paper_quotation_buyton2} 4 #precision 如果可选精度为正或零,则返回的数字将四舍五入到小数位数。负精度意味着数字四舍五入到绝对精度幂的最接近10的倍数。如果一个数字同样接近某一精度,它总是从零开始四舍五入。 + ${paper_quotation_unitfee2} Evaluate ${product_price_sku_new}*${settlement_interval_premium_rate_qniao} + ${paper_quotation_flyCalcSalesprice2} Evaluate ${product_price_sku_new}*${settlement_interval_premium_rate_feisuan} + ${paper_quotation_unitFee2} Convert To Number ${paper_quotation_unitfee2} + ${paper_quotation_flyCalcSalesPrice2} Convert To Number ${paper_quotation_flyCalcSalesprice2} + ${paper_quotation_totalOfferPrice2} Evaluate ${paper_quotation_unitFee2}*${paper_quotation_buyTon2}+${paper_quotation_otherFee} + ${paper_quotation_totalOfferPrice_item2} Convert To Number ${paper_quotation_totalOfferPrice2} 2 ${supplierfocus_paper_quotation_remark} Set Variable autotest_supplierfocus_paper_quotation_remark - ${body} Set Variable {"addList":[],"delList":[],"enquiryId":"${customer_enquiry_id}","updateList":[{"enquiryId":"${customer_enquiry_id}","paperQuotedPriceId":"${paperQuotedPriceId}","id":"${paper_quotes_item_id1}","productSkuId":"${product_price_sku_id}","paperId":null,"brandId":"${paper_brand_id}","paperName":null,"brandName":"${paper_name}","productName":null,"gramWeight":678,"quantity":5000,"length":1000,"width":787,"weight":2.6679,"unitFee":5150,"totalPrice":"13739.69","createTime":"${current_date_second.encode('utf-8')}","updateTime":"${current_date_second.encode('utf-8')}","effectiveTime":"${current_date_second.encode('utf-8')}","salesEnterpriseId":"${supplier_paper_id}","remark":"${customer_enquiry_remark}","purchasePrice":5000,"otherFee":0,"repEnterprise":"553652487819759617","repEnterpriseName":"千鸟官方直营","salesEnterpriseName":"${printing_packaging_factory_name}","flyCalcSalesPrice":5100},{"enquiryId":"${customer_enquiry_id}","paperQuotedPriceId":"${paperQuotedPriceId}","id":"${paper_quotes_item_id2}","productSkuId":"${product_price_sku_id}","paperId":null,"brandId":"${paper_brand_id}","paperName":null,"brandName":"${paper_name}","productName":null,"gramWeight":678,"quantity":5000,"length":1092,"width":787,"weight":2.9134,"unitFee":5150,"totalPrice":"15004.01","createTime ":"${current_date_second.encode('utf-8')}","updateTime":"${current_date_second.encode('utf-8')}","effectiveTime":"${current_date_second.encode('utf-8')}","salesEnterpriseId":"${supplier_paper_id}","remark":"${customer_enquiry_remark}","purchasePrice":5000,"otherFee":0,"repEnterprise":"${supplier_paper_id}","repEnterpriseName":"千鸟官方直营","salesEnterpriseName":"${printing_packaging_factory_name}","flyCalcSalesPrice":5100}],"remark":"${supplierfocus_paper_quotation_remark}"} + ${body} Set Variable {"addList":[],"delList":[],"enquiryId":"${customer_enquiry_id}","updateList":[{"enquiryId":"${customer_enquiry_id}","paperQuotedPriceId":"${paperQuotedPriceId}","id":"${paper_quotes_item_id1}","productSkuId":"${product_price_sku_id}","paperId":null,"brandId":"${paper_brand_id}","paperName":null,"brandName":"${paper_name}","productName":null,"gramWeight":${paper_quotation_gramWeight1},"quantity":${paper_quotation_quantity1},"length":${paper_quotation_length1},"width":${paper_quotation_width1},"weight":${paper_quotation_buyTon1},"unitFee":${paper_quotation_unitFee1},"totalPrice":"${paper_quotation_totalOfferPrice_item1}","createTime":"${current_date_second.encode('utf-8')}","updateTime":"${current_date_second.encode('utf-8')}","effectiveTime":"${current_date_second.encode('utf-8')}","salesEnterpriseId":"${supplier_paper_id}","remark":"${customer_enquiry_remark}","purchasePrice":${product_price_sku_new},"otherFee":${paper_quotation_otherFee},"repEnterprise":"553652487819759617","repEnterpriseName":"千鸟官方直营","salesEnterpriseName":"${printing_packaging_factory_name}","flyCalcSalesPrice":${paper_quotation_flyCalcSalesPrice1}},{"enquiryId":"${customer_enquiry_id}","paperQuotedPriceId":"${paperQuotedPriceId}","id":"${paper_quotes_item_id2}","productSkuId":"${product_price_sku_id}","paperId":null,"brandId":"${paper_brand_id}","paperName":null,"brandName":"${paper_name}","productName":null,"gramWeight":${paper_quotation_gramWeight2},"quantity":${paper_quotation_quantity2},"length":${paper_quotation_length2},"width":${paper_quotation_width2},"weight":${paper_quotation_buyTon2},"unitFee":${paper_quotation_unitFee2},"totalPrice":"${paper_quotation_totalOfferPrice_item2}","createTime ":"${current_date_second.encode('utf-8')}","updateTime":"${current_date_second.encode('utf-8')}","effectiveTime":"${current_date_second.encode('utf-8')}","salesEnterpriseId":"${supplier_paper_id}","remark":"${customer_enquiry_remark}","purchasePrice":${product_price_sku_new},"otherFee":${paper_quotation_otherFee},"repEnterprise":"${supplier_paper_id}","repEnterpriseName":"千鸟官方直营","salesEnterpriseName":"${printing_packaging_factory_name}","flyCalcSalesPrice":${paper_quotation_flyCalcSalesPrice2}}],"remark":"${supplierfocus_paper_quotation_remark}"} ${response} POST On Session yytclient /trading-center/submit/paper-quotation ${body.encode("utf-8")} + Set Suite Variable ${paper_quotation_gramWeight1} + Set Suite Variable ${paper_quotation_width1} + Set Suite Variable ${paper_quotation_length1} + Set Suite Variable ${paper_quotation_quantity1} + Set Suite Variable ${paper_quotation_buyTon1} + Set Suite Variable ${paper_quotation_unitFee1} + Set Suite Variable ${paper_quotation_flyCalcSalesPrice1} + Set Suite Variable ${paper_quotation_totalOfferPrice_item1} + Set Suite Variable ${paper_quotation_otherFee} + Set Suite Variable ${paper_quotation_gramWeight2} + Set Suite Variable ${paper_quotation_width2} + Set Suite Variable ${paper_quotation_length2} + Set Suite Variable ${paper_quotation_quantity2} + Set Suite Variable ${paper_quotation_buyTon2} + Set Suite Variable ${paper_quotation_unitFee2} + Set Suite Variable ${paper_quotation_flyCalcSalesPrice2} + Set Suite Variable ${paper_quotation_totalOfferPrice_item2} log ${response.json()} Should Be Equal As Numbers 200 ${response.status_code} Should Be Equal As Strings successful ${response.json()["message"]} @@ -136,8 +186,22 @@ customer_enquiry_create_order_credit_payment ${customer_enterprise_shipping_address_districtname} Set Variable 天河区 ${customer_enterprise_shipping_address_streetname} Set Variable 车陂街道 ${customer_create_order_paymentMethod} Set Variable 2 #支付方式 1微信支付 2授信支付 3线下支付 4飞算支付 - ${customer_enquiry_create_order_productSkuList} Set Variable [{"enquiryReplyId":"${paper_quotes_item_id1}","enquiryId":"${customer_enquiry_id}","gramWeight":678,"width":787,"length":1000,"quantity":5000,"buyTon":2.6679,"productName":null,"purchasePrice":5000,"unitPrice":5150,"bootFee":0,"cuttingFee":0,"freightFee":0,"serviceFee":0,"otherFee":0,"totalOfferPrice":13739.69,"remark":"","productSkuId":"${product_price_sku_id}"},{"enquiryReplyId":"${paper_quotes_item_id2}","enquiryId":"${customer_enquiry_id}","gramWeight":678,"width":787,"length":1092,"quantity":5000,"buyTon":2.9134,"productName":null,"purchasePrice":5000,"unitPrice":5150,"bootFee":0,"cuttingFee":0,"freightFee":0,"serviceFee":0,"otherFee":0,"totalOfferPrice":15004.01,"remark":"","productSkuId":"${product_price_sku_id}"}] - ${body} Set Variable {"receiverMobile":"${customer_enterprise_shipping_address_receiverMobile}","receiver":"${customer_enterprise_shipping_address_receiver}","deliveryProvinceId":${customer_enterprise_shipping_address_provinceid},"deliveryProvinceName":"${customer_enterprise_shipping_address_provincename}","deliveryCityId":${customer_enterprise_shipping_address_cityid},"deliveryCityName":"${customer_enterprise_shipping_address_cityname}","deliveryDistrictId":${customer_enterprise_shipping_address_districtid},"deliveryDistrictName":"${customer_enterprise_shipping_address_districtname}","deliveryStreetId":${customer_enterprise_shipping_address_streetid},"deliveryStreetName":"${customer_enterprise_shipping_address_streetname}","deliveryId":"${customer_enterprise_shipping_address_id}","deliveryDetails":"${customer_enterprise_shipping_address_detail}","paymentMethod":${customer_create_order_paymentMethod},"realPayPrice":28743.7,"totalOfferPrice":28743.7,"password":"${customer_credit_password_new}","productSkuList":${customer_enquiry_create_order_productSkuList.encode("utf-8")}} + ${customer_create_order_bootFee1} Set Variable 0 + ${customer_create_order_cuttingFee1} Set Variable 0 + ${customer_create_order_freightFee1} Set Variable 0 + ${customer_create_order_serviceFee1} Set Variable 0 + ${customer_create_order_enquiry_totalOfferPrice_item1} Evaluate ${paper_quotation_totalOfferPrice_item1}+${customer_create_order_bootFee1}+${customer_create_order_cuttingFee1}+${customer_create_order_freightFee1}+${customer_create_order_serviceFee1} + ${customer_create_order_enquiry_totalOfferPrice_Item1} Convert To Number ${customer_create_order_enquiry_totalOfferPrice_item1} 2 + ${customer_create_order_bootFee2} Set Variable 0 + ${customer_create_order_cuttingFee2} Set Variable 0 + ${customer_create_order_freightFee2} Set Variable 0 + ${customer_create_order_serviceFee2} Set Variable 0 + ${customer_create_order_enquiry_totalOfferPrice_item2} Evaluate ${paper_quotation_totalOfferPrice_item2}+${customer_create_order_bootFee2}+${customer_create_order_cuttingFee2}+${customer_create_order_freightFee2}+${customer_create_order_serviceFee2} + ${customer_create_order_enquiry_totalOfferPrice_Item2} Convert To Number ${customer_create_order_enquiry_totalOfferPrice_item2} 2 + ${customer_create_order_enquiry_realPayprice} Evaluate ${customer_create_order_enquiry_totalOfferPrice_Item1}+${customer_create_order_enquiry_totalOfferPrice_Item2} + ${customer_create_order_enquiry_realPayPrice} Convert To Number ${customer_create_order_enquiry_realPayprice} 2 + ${customer_enquiry_create_order_productSkuList} Set Variable [{"enquiryReplyId":"${paper_quotes_item_id1}","enquiryId":"${customer_enquiry_id}","gramWeight":${paper_quotation_gramWeight1},"width":${paper_quotation_width1},"length":${paper_quotation_length1},"quantity":${paper_quotation_quantity1},"buyTon":${paper_quotation_buyTon1},"productName":null,"purchasePrice":${product_price_sku_new},"unitPrice":${paper_quotation_unitFee1},"bootFee":${customer_create_order_bootFee1},"cuttingFee":${customer_create_order_cuttingFee1},"freightFee":${customer_create_order_freightFee1},"serviceFee":${customer_create_order_serviceFee1},"otherFee":${paper_quotation_otherFee},"totalOfferPrice":${customer_create_order_enquiry_totalOfferPrice_Item1},"remark":"autotest_remark1","productSkuId":"${product_price_sku_id}"},{"enquiryReplyId":"${paper_quotes_item_id2}","enquiryId":"${customer_enquiry_id}","gramWeight":${paper_quotation_gramWeight2},"width":${paper_quotation_width2},"length":${paper_quotation_length2},"quantity":${paper_quotation_quantity2},"buyTon":${paper_quotation_buyTon2},"productName":null,"purchasePrice":${product_price_sku_new},"unitPrice":${paper_quotation_unitFee2},"bootFee":${customer_create_order_bootFee2},"cuttingFee":${customer_create_order_cuttingFee2},"freightFee":${customer_create_order_freightFee2},"serviceFee":${customer_create_order_serviceFee2},"otherFee":${paper_quotation_otherFee},"totalOfferPrice":${customer_create_order_enquiry_totalOfferPrice_Item2},"remark":"autotest_remark2","productSkuId":"${product_price_sku_id}"}] + ${body} Set Variable {"receiverMobile":"${customer_enterprise_shipping_address_receiverMobile}","receiver":"${customer_enterprise_shipping_address_receiver}","deliveryProvinceId":${customer_enterprise_shipping_address_provinceid},"deliveryProvinceName":"${customer_enterprise_shipping_address_provincename}","deliveryCityId":${customer_enterprise_shipping_address_cityid},"deliveryCityName":"${customer_enterprise_shipping_address_cityname}","deliveryDistrictId":${customer_enterprise_shipping_address_districtid},"deliveryDistrictName":"${customer_enterprise_shipping_address_districtname}","deliveryStreetId":${customer_enterprise_shipping_address_streetid},"deliveryStreetName":"${customer_enterprise_shipping_address_streetname}","deliveryId":"${customer_enterprise_shipping_address_id}","deliveryDetails":"${customer_enterprise_shipping_address_detail}","paymentMethod":${customer_create_order_paymentMethod},"realPayPrice":${customer_create_order_enquiry_realPayPrice},"totalOfferPrice":${customer_create_order_enquiry_realPayPrice},"password":"${customer_credit_password_new}","productSkuList":${customer_enquiry_create_order_productSkuList.encode("utf-8")}} ${response} POST On Session yytclient /trading-center/buyer/create/order ${body.encode("utf-8")} log ${response.json()} Should Be Equal As Numbers 200 ${response.status_code}