${paper_description} Set Variable This apaper_description
${paper_brand_img} Set Variable https://qncloudprintfiletest.oss-cn-shenzhen.aliyuncs.com/cloudprint/1632378545847.jpg
${body} Set Variable {"categoryId":"${paper_categoryid}","paperManufacturerId":"${paper_Manufacturerid}","name":"${paper_brand_name}","paperName":"${paper_name}","characteristic":"${paper_characteristic}","description":"${paper_description}","img":"${paper_brand_img}"}
${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_enterprise_id}","supplierName":"${supplier_paper_name}"
${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}"}
${response} POST On Session yytclient /trading-center/save/product ${body.encode("utf8")}
Log ${response.status_code}
log ${response.json()}
@ -38,21 +38,17 @@ supplierfocus_get_product_list
Should Be Equal As Numbers 200 ${response.status_code}
Should Be Equal As Strings successful ${response.json()["message"]}
${product_id1} Get From Dictionary ${response.json()["data"]["records"][1]} id
${product_status} Set Variable 30112 #商品状态 30110未上架 30111上架中 30112已下架
${param} Set Variable salesEnterpriseId=${supplier_enterprise_id}&status=${product_status}&categoryId=${paper_category_id}&name=${paper_name}&brandName=${paper_brand_name}
${response} Get On Session yytclient /trading-center/get/seller/query-product-list
${param} Set Variable salesEnterpriseId=${supplier_paper_id}&status=${product_status}&name=${paper_name}
${response} Get On Session yytclient /trading-center/get/seller/query-product-list params-${param}
Log ${response.status_code}
log ${response.json()}
Should Be Equal As Numbers 200 ${response.status_code}
Should Be Equal As Strings successful ${response.json()["message"]}
Should Be Equal As Strings ${supplier_enterprise_id} ${response.json()["data"]["records"][0]["salesEnterpriseId"]}
Should Be Equal As Strings ${paper_categoryid} ${response.json()["data"]["records"][0]["categoryId"]}
Should Be Equal As Strings ${paper_manufacturer_shortName} ${response.json()["data"]["records"][0]["paperMill"]}
Should Be Equal As Strings ${paper_brand_name} ${response.json()["data"]["records"][0]["brandName"]}
Should Be Equal As Strings ${paper_name} ${response.json()["data"]["records"][0]["name"]}
Should Be Equal As Strings ${product_id} ${response.json()["data"]["records"][0]["id"]}