Browse Source

Merge pull request '优化' (#26) from test into master

Reviewed-on: http://git.qniao.cn/automated-test-scripts/yyt-trading-rf-api/pulls/26
master
梁金满 4 years ago
parent
commit
191fd4a496
31 changed files with 135 additions and 21 deletions
  1. 3
      001_login_get_info/login_customer.robot
  2. 1
      001_login_get_info/login_operate.robot
  3. 1
      001_login_get_info/login_operate_psc.robot
  4. 3
      001_login_get_info/login_supplier.robot
  5. 2
      001_login_get_info/login_supplierfocus.robot
  6. 4
      002_user_register/customer_user_register.robot
  7. 7
      002_user_register/supplier_user_register.robot
  8. 12
      003_enterprise_open_account_customer/printing_packaging_factory_open_account.robot
  9. 14
      004_enterprise_open_account_supplier/supplier_paper_open_account.robot
  10. 5
      005_enterprise_apply_credit/apply_credit_qniao_customer.robot
  11. 3
      006_get_credit/customer_credit_password.robot
  12. 2
      006_get_credit/customer_get_credit.robot
  13. 7
      007_paper_variety_management/paper_brand.robot
  14. 4
      007_paper_variety_management/paper_category.robot
  15. 6
      007_paper_variety_management/paper_manufacturer.robot
  16. 3
      008_market_information/market_information_link.robot
  17. 8
      009_product_manage/product_add_and_list.robot
  18. 6
      010_limited_specialoffer/limited_specialoffer_product.robot
  19. 2
      011_product_price_config/product_price_config_qniao_and_feisuan.robot
  20. 3
      012_product_price_update/product_price_batch_update_purchaseprice.robot
  21. 5
      013_paper_list_and_details/customer_get_paper_list_and_detail.robot
  22. 2
      014_shinpping_address/customer_enterprise_shipping_address.robot
  23. 3
      015_customer_create_order/customer_create_order_credit_payment.robot
  24. 12
      016_enquiry_create_order/customer_enquiry_operate_and_supplier_quoted_price_create_order.robot
  25. 14
      017_order_and_receipt_and_delivery/get_oeder_and_receipt_and_delivery.robot
  26. 3
      018_payable_and_receivable/customer_bill.robot
  27. 3
      018_payable_and_receivable/payable.robot
  28. 3
      018_payable_and_receivable/receivable.robot
  29. 1
      019_capacity_market/capacity_commodity.robot
  30. 1
      019_capacity_market/capacity_machines.robot
  31. 13
      100_test_data_clear.robot

3
001_login_get_info/login_customer.robot

@ -38,6 +38,7 @@ customer_login_token
Set Global Variable ${cloudfactory_customer_header}
get_customer_userinfo
Disable Warnings
Create Session uecclient ${uecclient} headers=${cloudfactory_customer_header}
${response} Get On Session uecclient /uec/get/user-info
log ${response.json()}
@ -47,6 +48,7 @@ get_customer_userinfo
#Should Be Equal As Integers 0 ${response.json()["data"]["employeeStatus"]} #员工状态 0 启用 1停用
get_customer_baseinfo
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${response} Get On Session yytclient cloud-print-user-center/get/base-info
log ${response.json()}
@ -55,6 +57,7 @@ get_customer_baseinfo
#Should Be Equal As Integers 0 ${response.json()["data"]["employeeStatus"]} #员工状态 0 启用 1停用
get_customer_useridentity
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${response} Get On Session yytclient cloud-print-user-center/get/user/identity
log ${response.json()}

1
001_login_get_info/login_operate.robot

@ -22,6 +22,7 @@ operate_mail
Set Global Variable ${operationbackend_header}
get_operate_userinfo
Disable Warnings
Create Session yytops ${yytops} headers=${operationbackend_header}
${response} Get On Session yytops /cloud-factory-operation-backend/admin/employee/get/login-info
log ${response.json()}

1
001_login_get_info/login_operate_psc.robot

@ -22,6 +22,7 @@ operate_psc_mail
Set Global Variable ${operationpsc_header}
get_operate_userinfo
Disable Warnings
Create Session pscops ${pscops} headers=${operationpsc_header}
${response} Get On Session pscops /payment-settlement-center/admin/employee/get/login-info
log ${response.json()}

3
001_login_get_info/login_supplier.robot

@ -38,6 +38,7 @@ supplier_login_token
Set Global Variable ${cloudfactory_supplier_header}
get_supplier_userinfo
Disable Warnings
Create Session uecclient ${uecclient} headers=${cloudfactory_supplier_header}
${response} Get On Session uecclient /uec/get/user-info
log ${response.json()}
@ -47,6 +48,7 @@ get_supplier_userinfo
#Should Be Equal As Integers 0 ${response.json()["data"]["employeeStatus"]} #员工状态 0 启用 1停用
get_supplier_baseinfo
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplier_header}
${response} Get On Session yytclient cloud-print-user-center/get/base-info
log ${response.json()}
@ -55,6 +57,7 @@ get_supplier_baseinfo
#Should Be Equal As Integers 0 ${response.json()["data"]["employeeStatus"]} #员工状态 0 启用 1停用
get_supplier_useridentity
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplier_header}
${response} Get On Session yytclient cloud-print-user-center/get/user/identity
log ${response.json()}

2
001_login_get_info/login_supplierfocus.robot

@ -38,6 +38,7 @@ supplier_focus_login_token
Set Global Variable ${cloudfactory_supplierfocus_header}
get_supplier_focus_userinfo
Disable Warnings
Create Session uecclient ${uecclient} headers=${cloudfactory_supplierfocus_header}
${response} Get On Session uecclient /uec/get/user-info
log ${response.json()}
@ -49,6 +50,7 @@ get_supplier_focus_userinfo
Should Be Equal As Strings 厦门千纸互联科技有限公司 ${response.json()["data"]["enterpriseName"]}
get_supplier_focus_baseinfo
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${response} Get On Session yytclient cloud-print-user-center/get/base-info
log ${response.json()}

4
002_user_register/customer_user_register.robot

@ -58,6 +58,7 @@ customer_login_token
Set Global Variable ${cloudfactory_customer_header}
get_customerclue_customer
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${response} Get On Session yytclient /cloud-print-user-center/get/my/customerclue
log ${response.json()}
@ -70,6 +71,7 @@ get_customerclue_customer
Should Be Equal As Strings ${customer_account} ${response.json()["data"]["mobile"]}
customerclue_verify_have_join_customer
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${response} POST On Session yytclient /cloud-print-user-center/verify/have-join-and-fill
log ${response.json()}
@ -89,6 +91,7 @@ customerclue_uploadpictures_customer
Should Be Equal As Strings successful ${response.json()["message"]}
operate_get_user_register_list
Disable Warnings
Create Session yytops ${yytops} headers=${operationbackend_header}
${response} Get On Session yytops /cloud-print-user-center/admin/user/get/user-list
log ${response.json()}
@ -97,6 +100,7 @@ operate_get_user_register_list
#Should Be Equal As Strings ${customer_account} ${response.json()["data"]["records"][0]["mobile"]}
operate_get_user_register_search
Disable Warnings
Create Session yytops ${yytops} headers=${operationbackend_header}
${param} Set Variable mobile=${customer_account}
${response} Get On Session yytops /cloud-print-user-center/admin/user/get/user-list params=${param}

7
002_user_register/supplier_user_register.robot

@ -58,6 +58,7 @@ supplier_login_token
Set Global Variable ${cloudfactory_supplier_header}
get_customerclue_supplier
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplier_header}
${response} Get On Session yytclient /cloud-print-user-center/get/my/customerclue
log ${response.json()}
@ -70,6 +71,7 @@ get_customerclue_supplier
Should Be Equal As Strings ${supplier_account} ${response.json()["data"]["mobile"]}
customerclue_verify_have_join_supplier
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplier_header}
${response} POST On Session yytclient /cloud-print-user-center/verify/have-join-and-fill
log ${response.json()}
@ -89,6 +91,7 @@ customerclue_uploadpictures_supplier
Should Be Equal As Strings successful ${response.json()["message"]}
operate_get_user_register_list
Disable Warnings
Create Session yytops ${yytops} headers=${operationbackend_header}
${response} Get On Session yytops /cloud-print-user-center/admin/user/get/user-list
log ${response.json()}
@ -96,6 +99,7 @@ operate_get_user_register_list
Should Be Equal As Strings successful ${response.json()["message"]}
operate_get_user_register_search
Disable Warnings
Create Session yytops ${yytops} headers=${operationbackend_header}
${param} Set Variable mobile=${supplier_account}
${response} Get On Session yytops /cloud-print-user-center/admin/user/get/user-list params=${param}
@ -105,6 +109,7 @@ operate_get_user_register_search
Should Be Equal As Strings ${supplier_account} ${response.json()["data"]["records"][0]["mobile"]}
operate_get_customerclue_list
Disable Warnings
Create Session yytops ${yytops} headers=${operationbackend_header}
${response} Get On Session yytops /cloud-print-user-center/admin/get/customerclue/page
log ${response.json()}
@ -118,6 +123,7 @@ operate_get_customerclue_list
Should Be Equal As Strings ${userid_supplier} ${response.json()["data"]["records"][0]["userId"]}
operate_get_customerclue_search
Disable Warnings
Create Session yytops ${yytops} headers=${operationbackend_header}
${param} Set Variable status=1 #客户线索状态 1待处理 2已处理
${response} Get On Session yytops /cloud-print-user-center/admin/get/customerclue/page params=${param}
@ -134,6 +140,7 @@ operate_get_customerclue_search
Set Global Variable ${customerclue_id}
operate_handle_customerclue
Disable Warnings
Create Session yytops ${yytops} headers=${operationbackend_header}
${customerclue_remark} Set Variable autotest_customerclue_remark
${body} Set Variable {"id":"${customerclue_id}","adminId":"${operate_adminid}","name":"${operate_adminname}","remark":"${customerclue_remark}"}

12
003_enterprise_open_account_customer/printing_packaging_factory_open_account.robot

@ -35,6 +35,7 @@ operate_open_account_printing_packaging_factory
sleep 1
operate_get_printing_packaging_factory_list
Disable Warnings
Create Session yytops ${yytops} headers=${operationbackend_header}
${response} Get On Session yytops /cloud-print-user-center/admin/get/packaging-printing-mill-list
log ${response.json()}
@ -45,6 +46,7 @@ operate_get_printing_packaging_factory_list
Should Be Equal As Strings ${printing_packaging_factory_legalpersonname} ${response.json()["data"]["records"][0]["legalPersonName"]}
operate_get_printing_packaging_factory_search
Disable Warnings
Create Session yytops ${yytops} headers=${operationbackend_header}
${param} Set Variable name=${printing_packaging_factory_name}
${response} Get On Session yytops /cloud-print-user-center/admin/get/packaging-printing-mill-list params=${param}
@ -58,6 +60,7 @@ operate_get_printing_packaging_factory_search
Set Global Variable ${printing_packaging_factory_id}
operate_get_printing_packaging_factory_modify_state
Disable Warnings
Create Session uecops ${uecops} headers=${operationbackend_header}
${body} Set Variable {"enterpriseId":"${printing_packaging_factory_id}","status":1} #状态 0启用 1禁用
${response} POST On Session uecops /uec/admin/modify/enterprise/state ${body.encode("utf8")}
@ -163,7 +166,6 @@ operate_save_printing_packaging_factory_baseinfo_enterprise_shipping_addresses
log ${response.json()}
Should Be Equal As Numbers 200 ${response.status_code}
Should Be Equal As Strings successful ${response.json()["message"]}
sleep 1
operate_save_printing_packaging_factory_settlementaccountinfo_enterprise_scrappaper_credit
Disable Warnings
@ -173,7 +175,6 @@ operate_save_printing_packaging_factory_settlementaccountinfo_enterprise_scrappa
log ${response.json()}
Should Be Equal As Numbers 200 ${response.status_code}
Should Be Equal As Strings successful ${response.json()["message"]}
sleep 1
operate_save_printing_packaging_factory_settlementaccountinfo_enterprise_private_account
Disable Warnings
@ -186,7 +187,6 @@ operate_save_printing_packaging_factory_settlementaccountinfo_enterprise_private
log ${response.json()}
Should Be Equal As Numbers 200 ${response.status_code}
Should Be Equal As Strings successful ${response.json()["message"]}
sleep 1
operate_save_printing_packaging_factory_settlementaccountinfo_enterprise_papereexternal_settlement_accounts
Disable Warnings
@ -198,7 +198,6 @@ operate_save_printing_packaging_factory_settlementaccountinfo_enterprise_paperee
log ${response.json()}
Should Be Equal As Numbers 200 ${response.status_code}
Should Be Equal As Strings successful ${response.json()["message"]}
sleep 1
operate_save_printing_packaging_factory_employee_list_add_enterprise_administrator
Disable Warnings
@ -213,7 +212,6 @@ operate_save_printing_packaging_factory_employee_list_add_enterprise_administrat
log ${response.json()}
Should Be Equal As Numbers 200 ${response.status_code}
Should Be Equal As Strings successful ${response.json()["message"]}
sleep 1
operate_save_printing_packaging_factory_employee_list_add_employee
Disable Warnings
@ -225,9 +223,9 @@ operate_save_printing_packaging_factory_employee_list_add_employee
log ${response.json()}
Should Be Equal As Numbers 200 ${response.status_code}
Should Be Equal As Strings successful ${response.json()["message"]}
sleep 1
operate_get_printing_packaging_factory_baseinfo
Disable Warnings
Create Session yytops ${yytops} headers=${operationbackend_header}
${response} Get On Session yytops /cloud-print-user-center/admin/get/packaging-printing-mill/base-info/${printing_packaging_factory_id}
log ${response.json()}
@ -238,6 +236,7 @@ operate_get_printing_packaging_factory_baseinfo
Should Be Equal As Strings ${printing_packaging_factory_legalpersonname} ${response.json()["data"]["enterprise"]["legalPersonName"]}
operate_get_printing_packaging_factory_settlementaccountinfo
Disable Warnings
Create Session yytops ${yytops} headers=${operationbackend_header}
${response} Get On Session yytops /cloud-print-user-center/admin/get/packaging-printing-mill/settlement-account-info/${printing_packaging_factory_id}
log ${response.json()}
@ -245,6 +244,7 @@ operate_get_printing_packaging_factory_settlementaccountinfo
Should Be Equal As Strings successful ${response.json()["message"]}
operate_get_printing_packaging_factory_employee_list
Disable Warnings
Create Session uecops ${uecops} headers=${operationbackend_header}
${param} Set Variable enterpriseId=${printing_packaging_factory_id}
${response} Get On Session uecops /uec/admin/get/employee-list params=${param}

14
004_enterprise_open_account_supplier/supplier_paper_open_account.robot

@ -31,6 +31,7 @@ operate_save_virtual_supplier
sleep 1
operate_get_virtual_supplier_list
Disable Warnings
Create Session yytops ${yytops} headers=${operationbackend_header}
${response} Get On Session yytops /trading-center/admin/supplier/directsalestore/virtual-supplier/page
log ${response.json()}
@ -40,6 +41,7 @@ operate_get_virtual_supplier_list
Set Global Variable ${supplier_paper_id}
operate_update_virtual_supplier_status
Disable Warnings
Create Session yytops ${yytops} headers=${operation_backend_header}
${body} Set Variable {"id":"${supplier_paper_id}","status":1} #虚拟供应商状态 0禁用 1启用
${response} POST On Session yytops /cloud-print-user-center/admin/supplier/directsalestore/virtual-supplier/updatestatus ${body.encode("utf8")}
@ -48,6 +50,7 @@ operate_update_virtual_supplier_status
Should Be Equal As Strings successful ${response.json()["message"]}
operate_create_enterprise_with_supplier_paper
Disable Warnings
Create Session yytops ${yytops} headers=${operationbackend_header}
${supplier_paper_name} Set Variable autotest_supplier_paper_name
${supplier_paper_type} Set Variable 5 #企业类型 1云印客户 2印刷包装厂 3造纸厂 4打包厂 5原纸供应商 6设备供应商 7其他
@ -83,6 +86,7 @@ operate_create_enterprise_with_supplier_paper
sleep 1
operate_get_virtual_supplier_search
Disable Warnings
Create Session yytops ${yytops} headers=${operationbackend_header}
${param} Set Variable name=${virtual_supplier_name}
${response} Get On Session yytops /trading-center/admin/supplier/directsalestore/virtual-supplier/page params=${param}
@ -94,6 +98,7 @@ operate_get_virtual_supplier_search
Set Global Variable ${supplier_enterprise_id}
operate_supplier_paper_save_base_info
Disable Warnings
Create Session yytops ${yytops} headers=${operationbackend_header}
${supplier_paper_name} Set Variable autotest_supplier_paper_name
${supplier_paper_shortName} Set Variable autotest_shortName
@ -130,7 +135,6 @@ operate_supplier_paper_save_main_products
log ${response.json()}
Should Be Equal As Numbers 200 ${response.status_code}
Should Be Equal As Strings successful ${response.json()["message"]}
sleep 1
operate_supplier_paper_save_factory_list
Disable Warnings
@ -164,7 +168,6 @@ operate_supplier_paper_save_private_account
log ${response.json()}
Should Be Equal As Numbers 200 ${response.status_code}
Should Be Equal As Strings successful ${response.json()["message"]}
sleep 1
operate_supplier_paper_add_pc_machine
Disable Warnings
@ -176,7 +179,6 @@ operate_supplier_paper_add_pc_machine
log ${response.json()}
Should Be Equal As Numbers 200 ${response.status_code}
Should Be Equal As Strings successful ${response.json()["message"]}
sleep 1
operate_supplier_paper_add_enterprise_administrator
Disable Warnings
@ -191,9 +193,9 @@ operate_supplier_paper_add_enterprise_administrator
log ${response.json()}
Should Be Equal As Numbers 200 ${response.status_code}
Should Be Equal As Strings successful ${response.json()["message"]}
sleep 1
operate_get_supplier_paper_base_info
Disable Warnings
Create Session yytops ${yytops} headers=${operationbackend_header}
${response} Get On Session yytops /cloud-print-user-center/admin/get/supplier/base-info/${supplier_enterprise_id}
log ${response.json()}
@ -201,6 +203,7 @@ operate_get_supplier_paper_base_info
Should Be Equal As Strings successful ${response.json()["message"]}
operate_get_supplier_paper_settlement_account_info
Disable Warnings
Create Session yytops ${yytops} headers=${operationbackend_header}
${response} Get On Session yytops /cloud-print-user-center/admin/get/supplier/settlement-account-info/${supplier_enterprise_id}
log ${response.json()}
@ -208,6 +211,7 @@ operate_get_supplier_paper_settlement_account_info
Should Be Equal As Strings successful ${response.json()["message"]}
operate_get_supplier_paper_employee_list
Disable Warnings
Create Session yytops ${yytops} headers=${operationbackend_header}
${param} Set Variable supplierEnterpriseId=${supplier_enterprise_id}
${response} Get On Session yytops /cloud-print-user-center/get/employee-list params=${param}
@ -218,6 +222,7 @@ operate_get_supplier_paper_employee_list
Should Be Equal As Strings ${supplier_enterprise_administrator_realname} ${response.json()["data"]["records"][0]["realName"]}
operate_get_supplier_paper_machine_list
Disable Warnings
Create Session yytops ${yytops} headers=${operation_backend_header}
${param} Set Variable enterpriseId=${supplier_enterprise_id}
${response} Get On Session yytops /cloud-print-user-center/get/supplier/machine/page params=${param}
@ -226,6 +231,7 @@ operate_get_supplier_paper_machine_list
Should Be Equal As Strings successful ${response.json()["message"]}
operate_get_supplier_paper_purchase_order_list
Disable Warnings
Create Session yytops ${yytops} headers=${operationbackend_header}
${param} Set Variable enterpriseId=${supplier_enterprise_id}
${response} Get On Session yytops /trading-center/admin/get/purchase-order-list/in/supplier-detail params=${param}

5
005_enterprise_apply_credit/apply_credit_qniao_customer.robot

@ -21,6 +21,7 @@ operate_save_apply_credit_qniao
sleep 1
operate_get_credit_list
Disable Warnings
Create Session yytops ${yytops} headers=${operationpsc_header}
${response} Get On Session yytops /cloud-print-user-center/admin/credit/application/get/application-order-list
log ${response.json()}
@ -28,6 +29,7 @@ operate_get_credit_list
Should Be Equal As Strings successful ${response.json()["message"]}
operate_get_credit_list_search
Disable Warnings
Create Session yytops ${yytops} headers=${operationpsc_header}
${param} Set Variable timeBegin=${current_date} 00:00:00&timeEnd=${current_date} 23:59:59&enterpriseName=${printing_packaging_factory_name}&legalpersonName=${printing_packaging_factory_legalpersonname}
${response} Get On Session yytops /cloud-print-user-center/admin/credit/application/get/application-order-list params=${param}
@ -75,6 +77,7 @@ operate_verify_pass_apply_credit_qniao
sleep 1
operate_get_credit_list_details
Disable Warnings
Create Session yytops ${yytops} headers=${operationpsc_header}
${response} Get On Session yytops /cloud-print-user-center/admin/credit/get/enterprise-credit-list
log ${response.json()}
@ -82,6 +85,7 @@ operate_get_credit_list_details
Should Be Equal As Strings successful ${response.json()["message"]}
operate_get_credit_list_details_search
Disable Warnings
Create Session yytops ${yytops} headers=${operationpsc_header}
${param} Set Variable enterpriseName=${printing_packaging_factory_name}&legalpersonName=${printing_packaging_factory_legalpersonname}
${response} Get On Session yytops /cloud-print-user-center/admin/credit/get/enterprise-credit-list params=${param}
@ -93,6 +97,7 @@ operate_get_credit_list_details_search
Set Suite Variable ${printing_packaging_factory_credit_details_id}
operate_get_credit_list_details_list
Disable Warnings
Create Session yytops ${yytops} headers=${operationpsc_header}
${response} Get On Session yytops /cloud-print-user-center/admin/credit/order/get/order-list/${printing_packaging_factory_credit_details_id}
log ${response.json()}

3
006_get_credit/customer_credit_password.robot

@ -5,6 +5,7 @@ Library urllib3
*** Test Cases ***
customer_get_credit_password_status
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${response} Get On Session yytclient /cloud-print-user-center/credit/payment-password/getstatus
log ${response.json()}
@ -13,6 +14,7 @@ customer_get_credit_password_status
Should Be Equal As Strings False ${response.json()["data"]["setPassword"]} #设置密码状态 True已设置 False未设置
customer_save_credit_password
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${customer_credit_password} Set Variable 123456
${save_creditpassword_type} Set Variable 0 #操作状态 0增加密码 1修改密码
@ -24,6 +26,7 @@ customer_save_credit_password
Should Be Equal As Strings successful ${response.json()["message"]}
customer_update_credit_password
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${customer_credit_password_new} Set Variable 123456
${save_creditpassword_type} Set Variable 1 #操作状态 0增加密码 1修改密码

2
006_get_credit/customer_get_credit.robot

@ -5,6 +5,7 @@ Library urllib3
*** Test Cases ***
customer_get_credit_qniao
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${response} Get On Session yytclient /cloud-print-user-center/credit/get/self-enterprise-credit-by-enterprise-id
log ${response.json()}
@ -12,6 +13,7 @@ customer_get_credit_qniao
Should Be Equal As Strings successful ${response.json()["message"]}
customer_get_credit_feisuan
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${response} Get On Session yytclient /cloud-print-user-center/credit/get/enterprise-feisuan-credit
log ${response.json()}

7
007_paper_variety_management/paper_brand.robot

@ -5,6 +5,7 @@ Library urllib3
*** Test Cases ***
supplierfocus_save_paper_brand
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${paper_categoryid} Set Variable 638458876659896320
${paper_Manufacturerid} Set Variable 638458967357526016
@ -25,9 +26,10 @@ supplierfocus_save_paper_brand
log ${response.json()}
Should Be Equal As Numbers 200 ${response.status_code}
Should Be Equal As Strings successful ${response.json()["message"]}
sleep 2
sleep 1
supplierfocus_get_paper_brand_list
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${response} Get On Session yytclient /trading-center/get/product/brand-list
log ${response.json()}
@ -37,6 +39,7 @@ supplierfocus_get_paper_brand_list
Should Be Equal As Strings ${paper_name} ${response.json()["data"]["records"][0]["paperName"]}
supplierfocus_search_paper_brand
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${param} Set Variable searchValue=${paper_brand_name}
${response} Get On Session yytclient /trading-center/get/product/brand-list params=${param}
@ -49,6 +52,7 @@ supplierfocus_search_paper_brand
Set Global Variable ${paper_brand_id}
supplierfocus_edit_paper_brand
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${body} Set Variable {"id":"${paper_brand_id}","categoryId":"${paper_categoryid}","paperManufacturerId":"${paper_Manufacturerid}","name":"${paper_brand_name}","paperName":"${paper_name}","characteristic":"${paper_characteristic}","description":"${paper_description}","img":"${paper_brand_img}"}
${response} POST On Session yytclient /trading-center/save/product/brand ${body.encode("utf8")}
@ -57,6 +61,7 @@ supplierfocus_edit_paper_brand
Should Be Equal As Strings successful ${response.json()["message"]}
supplierfocus_update_status_paper_brand
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${body} Set Variable {"idList":["${paper_brand_id}"],"status":0} #纸品状态 0上架 1下架
${response} POST On Session yytclient /trading-center/update/category-brands/status/batch ${body.encode("utf8")}

4
007_paper_variety_management/paper_category.robot

@ -6,6 +6,7 @@ Library urllib3
*** Test Cases ***
supplierfocus_save_paper_category
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${paper_category_name} Set Variable autotest_paper_category_name
${body} Set Variable {"name":"${paper_category_name}"}
@ -17,6 +18,7 @@ supplierfocus_save_paper_category
Should Be Equal As Strings successful ${response.json()["message"]}
supplierfocus_get_paper_category_list
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${response} Get On Session yytclient /trading-center/get/product/paper-category-list
log ${response.json()}
@ -29,6 +31,7 @@ supplierfocus_get_paper_category_list
Set Suite Variable ${paper_category_status}
supplierfocus_edit_paper_category
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${body} Set Variable {"name":"${paper_category_name}","id":"${paper_category_id}","status":${paper_category_status}}
${response} POST On Session yytclient /trading-center/save/product/paper-category ${body.encode("utf8")}
@ -37,6 +40,7 @@ supplierfocus_edit_paper_category
Should Be Equal As Strings successful ${response.json()["message"]}
supplierfocus_disable_paper_category
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${body} Set Variable {"name":"${paper_category_name}","id":"${paper_category_id}","status":1}
${response} POST On Session yytclient /trading-center/save/product/paper-category ${body.encode("utf8")}

6
007_paper_variety_management/paper_manufacturer.robot

@ -5,6 +5,7 @@ Library urllib3
*** Test Cases ***
supplierfocus_save_paper_manufacturer
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${paper_manufacturer_name} Set Variable autotest_paper_manufacturer_name
${paper_manufacturer_shortName} Set Variable apmn
@ -19,9 +20,10 @@ supplierfocus_save_paper_manufacturer
log ${response.json()}
Should Be Equal As Numbers 200 ${response.status_code}
Should Be Equal As Strings successful ${response.json()["message"]}
sleep 2
sleep 1
supplierfocus_get_paper_manufacturer_list
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${response} Get On Session yytclient /trading-center/get/paper-manufacturer/list
log ${response.json()}
@ -32,6 +34,7 @@ supplierfocus_get_paper_manufacturer_list
Set Global Variable ${paper_manufacturer_id}
supplierfocus_search_paper_manufacturer
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${param} Set Variable searchValue=${paper_manufacturer_name}
${response} Get On Session yytclient /trading-center/get/paper-manufacturer/list params=${param}
@ -42,6 +45,7 @@ supplierfocus_search_paper_manufacturer
Should Be Equal As Strings ${paper_manufacturer_id} ${response.json()["data"]["records"][0]["id"]}
supplierfocus_edit_paper_manufacturer
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${body} Set Variable {"id":"${paper_manufacturer_id}","name":"${paper_manufacturer_name}","shortName":"${paper_manufacturer_shortName}","description":"${paper_manufacturer_description}","logoImg":"${paper_manufacturer_logoImg}"}
${response} POST On Session yytclient /trading-center/save/paper-manufacturer ${body.encode("utf8")}

3
008_market_information/market_information_link.robot

@ -16,6 +16,7 @@ operate_save_market_information_link
Should Be Equal As Strings successful ${response.json()["message"]}
operate_get_market_information_link_list
Disable Warnings
Create Session yytops ${yytops} headers=${operationbackend_header}
${response} Get On Session yytops /trading-center/admin/get/market-information-link-list
log ${response.json()}
@ -24,6 +25,7 @@ operate_get_market_information_link_list
Should Be Equal As Strings ${market_information_link} ${response.json()["data"]["records"][0]["link"]}
customer_get_market_information_link
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${response} Get On Session yytclient /trading-center/get/market-information-link
log ${response.json()}
@ -32,6 +34,7 @@ customer_get_market_information_link
Should Be Equal As Strings ${market_information_link} ${response.json()["data"]["link"]}
record_market_information_link_view
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${response} POST On Session yytclient /trading-center/record/market-information-link/view
log ${response.json()}

8
009_product_manage/product_add_and_list.robot

@ -5,15 +5,16 @@ Library urllib3
*** Test Cases ***
supplierfocus_product_check_exist
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${param} Set Variable categoryBrandId=${paper_brand_id}&salesEnterpriseId=${supplier_enterprise_id}
${response} Get On Session yytclient /trading-center/product/check-exist params=${param}
log ${response.json()}
Should Be Equal As Numbers 200 ${response.status_code}
Should Be Equal As Strings successful ${response.json()["message"]}
sleep 1
supplierfocus_save_product
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${gramweight} Set Variable 678
${purchasePrice} Set Variable 5678
@ -29,6 +30,7 @@ supplierfocus_save_product
sleep 1
supplierfocus_get_product_list
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${response} Get On Session yytclient /trading-center/get/seller/query-product-list
log ${response.json()}
@ -38,6 +40,7 @@ supplierfocus_get_product_list
Set Global Variable ${product_id1}
supplierfocus_get_product_list_search
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${product_status} Set Variable 30112 #商品状态 30110未上架 30111上架中 30112已下架
${param} Set Variable salesEnterpriseId=${supplier_paper_id}&name=${paper_name}
@ -49,6 +52,7 @@ supplierfocus_get_product_list_search
Should Be Equal As Strings ${product_id} ${response.json()["data"]["records"][0]["id"]}
supplierfocus_edit_product_status_up
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${product_status} Set Variable 1 #上下架状态 1上架 2下架
${body} Set Variable {"status":${product_status},"id":"${product_id}"}
@ -58,6 +62,7 @@ supplierfocus_edit_product_status_up
Should Be Equal As Strings successful ${response.json()["message"]}
supplierfocus_edit_product_status_down
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${product_status} Set Variable 2 #上下架状态 1上架 2下架
${body} Set Variable {"status":${product_status},"id":"${product_id}"}
@ -67,6 +72,7 @@ supplierfocus_edit_product_status_down
Should Be Equal As Strings successful ${response.json()["message"]}
supplierfocus_batch_product_status_up
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${product_status} Set Variable 30111 #批量上下架状态 30110未上架 30111上架中 30112已下架
${body} Set Variable {"status":${product_status},"idList":["${product_id}","${product_id1}"]}

6
010_limited_specialoffer/limited_specialoffer_product.robot

@ -6,6 +6,7 @@ Library urllib3
*** Test Cases ***
operate_get_noton_sale_product_list
Disable Warnings
Create Session yytops ${yytops} headers=${operationbackend_header}
${param} Set Variable isOnSale=0 #是否特价 0否 1是
${response} Get On Session yytops /trading-center/admin/get/on-sale-category-brand-list params=${param}
@ -14,6 +15,7 @@ operate_get_noton_sale_product_list
Should Be Equal As Strings successful ${response.json()["message"]}
operate_on_sale_product_list_earch
Disable Warnings
Create Session yytops ${yytops} headers=${operationbackend_header}
${param} Set Variable isOnSale=0&name=${paper_brand_name}&paperName=${paper_name}
${response} Get On Session yytops /trading-center/admin/get/on-sale-category-brand-list params=${param}
@ -24,6 +26,7 @@ operate_on_sale_product_list_earch
Set Global Variable ${on_sale_product_paper_id}
operate_add_on_sale_product
Disable Warnings
Create Session yytops ${yytops} headers=${operationbackend_header}
${product_isOnSale} Set Variable 1 #是否特价 0否 1是
${body} Set Variable {"categoryBrandIds":["${on_sale_product_paper_id}"],"isOnSale":${product_isOnSale}}
@ -33,6 +36,7 @@ operate_add_on_sale_product
Should Be Equal As Strings successful ${response.json()["message"]}
operate_get_on_sale_product_list
Disable Warnings
Create Session yytops ${yytops} headers=${operationbackend_header}
${param} Set Variable isOnSale=1 #是否特价 0否 1是
${response} Get On Session yytops /trading-center/admin/get/on-sale-category-brand-list params=${param}
@ -42,6 +46,7 @@ operate_get_on_sale_product_list
Should Be Equal As Strings ${on_sale_product_paper_id} ${response.json()["data"]["records"][0]["id"]}
customer_get_on_sale_product_list
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${param} Set Variable isOnSale=1 #是否特价 0否 1是
${response} Get On Session yytclient /trading-center/wechatapplet/get/paper-brand/brand-list params=${param}
@ -51,6 +56,7 @@ customer_get_on_sale_product_list
Should Be Equal As Strings ${on_sale_product_paper_id} ${response.json()["data"]["records"][0]["id"]}
operate_remove_on_sale_product
Disable Warnings
Create Session yytops ${yytops} headers=${operationbackend_header}
${product_isOnSale} Set Variable 0 #是否特价 0否 1是
${body} Set Variable {"categoryBrandIds":["${on_sale_product_paper_id}"],"isOnSale":${product_isOnSale}}

2
011_product_price_config/product_price_config_qniao_and_feisuan.robot

@ -5,6 +5,7 @@ Library urllib3
*** Test Cases ***
product_price_config_qniao_and_feisuan_list
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${response} Get On Session yytclient /cloud-print-user-center/get/settlement-interval/two-dimension/list
log ${response.json()}
@ -12,6 +13,7 @@ product_price_config_qniao_and_feisuan_list
Should Be Equal As Strings successful ${response.json()["message"]}
product_price_config_qniao_and_feisuan_update_log_list
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${response} Get On Session yytclient /cloud-print-user-center/get/paper/premium-rate/history/page
log ${response.json()}

3
012_product_price_update/product_price_batch_update_purchaseprice.robot

@ -5,6 +5,7 @@ Library urllib3
*** Test Cases ***
product_price_sku_list
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${response} Get On Session yytclient /trading-center/get/seller/product-sku-list
log ${response.json()}
@ -12,6 +13,7 @@ product_price_sku_list
Should Be Equal As Strings successful ${response.json()["message"]}
product_price_sku_list_search
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${param} Set Variable salesEnterpriseId=${supplier_paper_id}&name=${paper_name}
${response} Get On Session yytclient /trading-center/get/seller/product-sku-list params=${param}
@ -22,6 +24,7 @@ product_price_sku_list_search
Set Global Variable ${product_price_sku_id}
product_price_sku_batch_update_purchaseprice
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${product_price_sku_alterType} Set Variable 1 #变更类型 1统一修改 2增加价格 3减少价格
${product_price_sku_new} Set Variable 6789

5
013_paper_list_and_details/customer_get_paper_list_and_detail.robot

@ -5,6 +5,7 @@ Library urllib3
*** Test Cases ***
customer_get_paper_list
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${response} Get On Session yytclient /trading-center/wechatapplet/get/paper-brand/brand-list
log ${response.json()}
@ -12,6 +13,7 @@ customer_get_paper_list
Should Be Equal As Strings successful ${response.json()["message"]}
customer_get_paper_list_search
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${param} Set Variable searchValue=${paper_name}
${response} Get On Session yytclient /trading-center/wechatapplet/get/home/search-paper-product params=${param}
@ -22,6 +24,7 @@ customer_get_paper_list_search
Set Suite Variable ${paper_id}
customer_get_paper_detail
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${response} Get On Session yytclient /trading-center/wechatapplet/get/category-brand/detail/${paper_id}
log ${response.json()}
@ -31,6 +34,7 @@ customer_get_paper_detail
Set Global Variable ${paper_weight_id}
customer_add_paper_list_focus
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${paper_focus_type} Set Variable 0 #纸品关注 0添加 1取消
${body} Set Variable {"categoryId":"${paper_id}","status":${paper_focus_type}}
@ -40,6 +44,7 @@ customer_add_paper_list_focus
Should Be Equal As Strings successful ${response.json()["message"]}
customer_get_paper_list_focus
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${param} Set Variable categoryI=0 #categoryId为0查询个人关注,默认不传查询推荐,传参则为查纸品分类列表
${response} Get On Session yytclient /trading-center/wechatapplet/get/paper-brand/brand-list params=${param}

2
014_shinpping_address/customer_enterprise_shipping_address.robot

@ -5,6 +5,7 @@ Library urllib3
*** Test Cases ***
customer_enterprise_shipping_address_list
Disable Warnings
Create Session uecclient ${uecclient} headers=${cloudfactory_customer_header}
${response} Get On Session uecclient /uec/get/enterprise-shipping-address-list/by-userId
log ${response.json()}
@ -12,6 +13,7 @@ customer_enterprise_shipping_address_list
Should Be Equal As Strings successful ${response.json()["message"]}
customer_enterprise_save_shipping_address
Disable Warnings
Create Session uecclient ${uecclient} headers=${cloudfactory_customer_header}
${customer_enterprise_shipping_address_isDefault} Set Variable 1 #是否默认地址 0否 1是
${customer_enterprise_shipping_address_receiver} Set Variable autotest_receiver

3
015_customer_create_order/customer_create_order_credit_payment.robot

@ -5,6 +5,7 @@ Library urllib3
*** Test Cases ***
get_settlement_interval_premium_rate_qniao
Disable Warnings
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}
@ -16,6 +17,7 @@ get_settlement_interval_premium_rate_qniao
Set Global Variable ${settlement_interval_premium_rate_qniao}
get_settlement_interval_premium_rate_feisuan
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${settlement_interval_premium_rate_type} Set Variable 1 #加价率类型 不传或NULL或0千鸟加价率 1为飞算加价率
${param} Set Variable clientEnterpriseId=${printing_packaging_factory_id}&supplierId=${supplier_paper_id}&type=${settlement_interval_premium_rate_type}
@ -27,6 +29,7 @@ get_settlement_interval_premium_rate_feisuan
Set Global Variable ${settlement_interval_premium_rate_feisuan}
customer_create_order_credit_payment
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${customer_enterprise_shipping_address_receiver} Set Variable autotest_receiver
${customer_enterprise_shipping_address_receiverMobile} Set Variable 13800138000

12
016_enquiry_create_order/customer_enquiry_operate_and_supplier_quoted_price_create_order.robot

@ -5,6 +5,7 @@ Library urllib3
*** Test Cases ***
customer_add_enquiry
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${customer_enquiryContent} Set Variable autotest_enquiryContent
${customer_deliveryDay} Set Variable 48
@ -22,6 +23,7 @@ customer_add_enquiry
sleep 1
supplierfocus_get_enquiry_list
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${response} Get On Session yytclient /trading-center/get/enquiry-order/order-list
log ${response.json()}
@ -29,6 +31,7 @@ supplierfocus_get_enquiry_list
Should Be Equal As Strings successful ${response.json()["message"]}
supplierfocus_get_enquiry_list_search
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${enquiry_status} Set Variable 0 #是否报价 0待报价 1已报价
${enquiry_valid_status} Set Variable 0 #是否有效 0生效 1失效
@ -40,6 +43,7 @@ supplierfocus_get_enquiry_list_search
Should Be Equal As Strings ${customer_enquiry_id} ${response.json()["data"]["records"][0]["id"]}
supplierfocus_edit_enquiry_details
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${enquiry_gramWeight1} Set Variable 678
${enquiry_width1} Set Variable 787
@ -59,6 +63,7 @@ supplierfocus_edit_enquiry_details
sleep 1
supplierfocus_distribute_enquiry_details
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${body} Set Variable {"id":"${customer_enquiry_id}"}
${response} POST On Session yytclient /trading-center/distribute/enquiry-reply ${body.encode("utf-8")}
@ -68,6 +73,7 @@ supplierfocus_distribute_enquiry_details
sleep 1
supplierfocus_get_enquiry_details
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${response} Get On Session yytclient /trading-center/get/enquiry-order/${customer_enquiry_id}
log ${response.json()}
@ -76,6 +82,7 @@ supplierfocus_get_enquiry_details
Should Be Equal As Numbers 1 ${response.json()["data"]["isDistribute"]} #是否分发 0否 1是
supplierfocus_get_obtain_paper_quotes_list
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${param} Set Variable enquiryId=${customer_enquiry_id}
${response} Get On Session yytclient /trading-center/get/obtain-paper-quotes/list params=${param}
@ -90,6 +97,7 @@ supplierfocus_get_obtain_paper_quotes_list
Set Global Variable ${paperQuotedPriceId}
supplierfocus_submit_paper_quotation
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${paper_quotation_gramWeight1} Set Variable 678
${paper_quotation_width1} Set Variable 787
@ -142,6 +150,7 @@ supplierfocus_submit_paper_quotation
sleep 1
supplier_enquiry_reply_batch
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloud_factory_supplier_header}
${supplier_paper_quotation_remark} Set Variable autotest_supplier_paper_quotation_remark
${body} Set Variable {"enquiryId":"${customer_enquiry_id}","replyList":[{"brandName":"${paper_name}","brandId":"${paper_brand_id}","width":787,"length":1000,"gramWeight":678,"quantity":5000,"weight":2.6679,"unitFee":5000,"otherFee":0,"totalPrice":13339.5,"remark":"${customer_enquiry_remark}"},{"brandName":"${paper_name}","brandId":"${paper_brand_id}","width":787,"length":1092,"gramWeight":678,"quantity":5000,"weight":2.9134,"unitFee":5000,"otherFee":0,"totalPrice":14567,"remark":"${customer_enquiry_remark}"}],"remark":"${supplier_paper_quotation_remark}"}
@ -152,6 +161,7 @@ supplier_enquiry_reply_batch
sleep 1
supplierfocus_get_supplier_quotation_record_list
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${param} Set Variable enquiryId=${customer_enquiry_id}
${response} Get On Session yytclient /trading-center/get/supplier-quotation-record/list params=${param}
@ -160,6 +170,7 @@ supplierfocus_get_supplier_quotation_record_list
Should Be Equal As Strings successful ${response.json()["message"]}
customer_get_enquiry_result
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${response} Get On Session yytclient /trading-center/get/enquiry-result/${customer_enquiry_id}
log ${response.json()}
@ -167,6 +178,7 @@ customer_get_enquiry_result
Should Be Equal As Strings successful ${response.json()["message"]}
customer_enquiry_create_order_credit_payment
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${customer_enterprise_shipping_address_receiver} Set Variable autotest_receiver
${customer_enterprise_shipping_address_receiverMobile} Set Variable 13800138000

14
017_order_and_receipt_and_delivery/get_oeder_and_receipt_and_delivery.robot

@ -5,6 +5,7 @@ Library urllib3
*** Test Cases ***
customer_get_order_list
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${response} Get On Session yytclient /trading-center/buyer/get/self-enterprise-order-page
log ${response.json()}
@ -12,6 +13,7 @@ customer_get_order_list
Should Be Equal As Strings successful ${response.json()["message"]}
customer_get_order_list_search
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${param} Set Variable status=2 #客户获取订单状态 2待发货 3待收货 5已完成 7待评价
${response} Get On Session yytclient /trading-center/buyer/get/self-enterprise-order-page params=${param}
@ -21,6 +23,7 @@ customer_get_order_list_search
Should Be Equal As Strings ${customer_enquiry_create_order_id} ${response.json()["data"]["records"][0]["orderId"]}
customer_get_order_detail2
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${response} Get On Session yytclient /trading-center/buyer/get/order-detail/${customer_enquiry_create_order_id}
log ${response.json()}
@ -31,6 +34,7 @@ customer_get_order_detail2
Set Global Variable ${customer_order_totalPrice}
supplierfocus_get_order_list
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${response} Get On Session yytclient /trading-center/get/supplier/order-management/page
log ${response.json()}
@ -38,6 +42,7 @@ supplierfocus_get_order_list
Should Be Equal As Strings successful ${response.json()["message"]}
supplierfocus_get_order_list_search
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${param} Set Variable clientContractNo=${customer_enquiry_create_order_contractNo}
${response} Get On Session yytclient /trading-center/get/supplier/order-management/page params=${param}
@ -47,6 +52,7 @@ supplierfocus_get_order_list_search
Should Be Equal As Strings ${customer_enquiry_create_order_id} ${response.json()["data"]["records"][0]["id"]}
supplierfocus_get_order_order-item-list
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${response} Get On Session yytclient /trading-center/get/order-item-list/by/${customer_enquiry_create_order_id}
log ${response.json()}
@ -58,6 +64,7 @@ supplierfocus_get_order_order-item-list
Set Global Variable ${supply_order_item_id2}
supplierfocus_create_supplier_order_batch
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${customer_enterprise_shipping_address_receiver} Set Variable autotest_receiver
${customer_enterprise_shipping_address_receiverMobile} Set Variable 13800138000
@ -79,6 +86,7 @@ supplierfocus_create_supplier_order_batch
sleep 1
supplier_get_order_list
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplier_header}
${response} Get On Session yytclient /trading-center/wechatapplet/get/supplier-order-page
log ${response.json()}
@ -86,6 +94,7 @@ supplier_get_order_list
Should Be Equal As Strings successful ${response.json()["message"]}
supplier_get_order_list_search
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplier_header}
${param} Set Variable status=2 #供应商获取订单状态 2待送货
${response} Get On Session yytclient /trading-center/wechatapplet/get/supplier-order-page params=${param}
@ -96,6 +105,7 @@ supplier_get_order_list_search
Set Global Variable ${supplier_order_id}
supplier_get_order_detail2
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplier_header}
${response} Get On Session yytclient /trading-center/wechatapplet/get/supplier-order-detail/${supplier_order_id}
log ${response.json()}
@ -106,6 +116,7 @@ supplier_get_order_detail2
Set Global Variable ${supplier_order_totalPrice}
supplier_confirm_order
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplier_header}
${body} Set Variable {"orderId":"${supplier_order_id}"}
${response} POST On Session yytclient /trading-center/seller/confirm/supplier-order-and-sign ${body.encode("utf-8")}
@ -115,6 +126,7 @@ supplier_confirm_order
sleep 1
supplierfocus_get_order_detail
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${response} Get On Session yytclient /trading-center/seller/get/customer-order-detail/${customer_enquiry_create_order_id}
log ${response.json()}
@ -122,6 +134,7 @@ supplierfocus_get_order_detail
Should Be Equal As Strings successful ${response.json()["message"]}
supplierfocus_confirm_supplier_order_shipping
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${body} Set Variable {"orderId":"${supplier_order_id}"}
${response} POST On Session yytclient /trading-center/seller/confirm/supplier-order-shipping ${body.encode("utf-8")}
@ -131,6 +144,7 @@ supplierfocus_confirm_supplier_order_shipping
sleep 1
supplierfocus_confirm_supplier_order_receipt
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${body} Set Variable {"orderId":"${supplier_order_id}"}
${response} POST On Session yytclient /trading-center/seller/confirm/supplier-order-receipt ${body.encode("utf-8")}

3
018_payable_and_receivable/customer_bill.robot

@ -5,6 +5,7 @@ Library urllib3
*** Test Cases ***
operate_get_customer_bill_list
Disable Warnings
Create Session yytops ${yytops} headers=${operationpsc_header}
${response} Get On Session yytops /trading-center/admin/get/bill-list
log ${response.json()}
@ -12,6 +13,7 @@ operate_get_customer_bill_list
Should Be Equal As Strings successful ${response.json()["message"]}
operate_get_customer_bill_list_search
Disable Warnings
Create Session yytops ${yytops} headers=${operationpsc_header}
${param} Set Variable customerEnterpriseName=${printing_packaging_factory_name}
${response} Get On Session yytops /trading-center/admin/get/bill-list params=${param}
@ -20,6 +22,7 @@ operate_get_customer_bill_list_search
Should Be Equal As Strings successful ${response.json()["message"]}
operate_get_customer_detail
Disable Warnings
Create Session yytops ${yytops} headers=${operationpsc_header}
${param} Set Variable customerEnterpriseId=${printing_packaging_factory_id}&month=${current_date_month}
${response} Get On Session yytops /trading-center/admin/get/bill-detail params=${param}

3
018_payable_and_receivable/payable.robot

@ -5,6 +5,7 @@ Library urllib3
*** Test Cases ***
operate_get_payable_list
Disable Warnings
Create Session yytops ${yytops} headers=${operationpsc_header}
${response} Get On Session yytops /trading-center/admin/get/payable-list
log ${response.json()}
@ -12,6 +13,7 @@ operate_get_payable_list
Should Be Equal As Strings successful ${response.json()["message"]}
operate_get_payable_list_search
Disable Warnings
Create Session yytops ${yytops} headers=${operationpsc_header}
${param} Set Variable enterpriseName=${supplier_paper_name}
${response} Get On Session yytops /trading-center/admin/get/payable-list params=${param}
@ -22,6 +24,7 @@ operate_get_payable_list_search
Set Suite Variable ${payable_id}
operate_confirm_payable
Disable Warnings
Create Session yytops ${yytops} headers=${operationpsc_header}
${payable_fundProvider} Set Variable 1 #付款资金方 1千鸟互联 2千纸鹤
${payable_remark} Set Variable autotest_remark

3
018_payable_and_receivable/receivable.robot

@ -5,6 +5,7 @@ Library urllib3
*** Test Cases ***
operate_get_receivable_list
Disable Warnings
Create Session yytops ${yytops} headers=${operationpsc_header}
${response} Get On Session yytops /trading-center/admin/get/receivable-list
Log ${response.status_code}
@ -13,6 +14,7 @@ operate_get_receivable_list
Should Be Equal As Strings successful ${response.json()["message"]}
operate_get_receivable_list_search
Disable Warnings
Create Session yytops ${yytops} headers=${operationpsc_header}
${param} Set Variable enterpriseName=${printing_packaging_factory_name}
${response} Get On Session yytops /trading-center/admin/get/receivable-list params=${param}
@ -24,6 +26,7 @@ operate_get_receivable_list_search
Set Suite Variable ${receivable_id}
operate_confirm_receivable
Disable Warnings
Create Session yytops ${yytops} headers=${operationpsc_header}
${receivable_remark} Set Variable autotest_remark
${bady} Set Variable {"id":"${receivable_id}","realAmount":${customer_order_totalPrice},"remark":"${receivable_remark}"}

1
019_capacity_market/capacity_commodity.robot

@ -5,6 +5,7 @@ Library urllib3
*** Test Cases ***
customer_get_capacity_commodity_list
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${response} Get On Session yytclient /capacity-market/get/capacity-commodity-page
log ${response.json()}

1
019_capacity_market/capacity_machines.robot

@ -5,6 +5,7 @@ Library urllib3
*** Test Cases ***
customer_get_machines_list
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
${response} Get On Session yytclient /capacity-market/get/my-machines-list
log ${response.json()}

13
100_test_data_clear.robot

@ -13,7 +13,6 @@ database_delete_user_customerclue_customer
${query_list} Get From List ${query} 0
${userid} Get From List ${query_list} 0
Execute Sql String update qn_user set is_delete = 1 where id = ${userid}
sleep 1
Connect To Database Using Custom Params pymysql database='yyt_user_center', user='root', password='password', host='8.135.8.221', port=3306, charset='utf8'
Execute Sql String update qn_customer_clue set is_delete = 1 where mobile = "${customer_account}"
Disconnect From Database
@ -26,7 +25,6 @@ database_delete_user_customerclue_supplier
${query_list} Get From List ${query} 0
${userid} Get From List ${query_list} 0
Execute Sql String update qn_user set is_delete = 1 where id = ${userid}
sleep 1
Connect To Database Using Custom Params pymysql database='yyt_user_center', user='root', password='password', host='8.135.8.221', port=3306, charset='utf8'
Execute Sql String update qn_customer_clue set is_delete = 1 where mobile = "${supplier_account}"
Disconnect From Database
@ -35,7 +33,6 @@ database_delete_printing_packaging_factory
Connect To Database Using Custom Params pymysql database='uec', user='root', password='password', host='8.135.8.221', port=3306, charset='utf8'
Execute Sql String update qn_enterprise set is_delete = 1 where id = ${printing_packaging_factory_id}
Execute Sql String update qn_enterprise_member set is_delete = 1 where enterprise_id = ${printing_packaging_factory_id}
sleep 1
Connect To Database Using Custom Params pymysql database='yyt_user_center', user='root', password='password', host='8.135.8.221', port=3306, charset='utf8'
Execute Sql String update qn_enterprise set is_delete = 1 where id = ${printing_packaging_factory_id}
Execute Sql String update qn_enterprise_profile set is_delete = 1 where enterprise_id = ${printing_packaging_factory_id}
@ -45,7 +42,6 @@ database_delete_supplier_paper
Connect To Database Using Custom Params pymysql database='uec', user='root', password='password', host='8.135.8.221', port=3306, charset='utf8'
Execute Sql String update qn_enterprise set is_delete = 1 where id = ${supplier_enterprise_id}
Execute Sql String update qn_enterprise_member set is_delete = 1 where enterprise_id = ${supplier_enterprise_id}
sleep 1
Connect To Database Using Custom Params pymysql database='yyt_user_center', user='root', password='password', host='8.135.8.221', port=3306, charset='utf8'
Execute Sql String update qn_enterprise set is_delete = 1 where id = ${supplier_enterprise_id}
Execute Sql String update qn_enterprise_profile set is_delete = 1 where enterprise_id = ${supplier_enterprise_id}
@ -59,20 +55,20 @@ database_delete_printing_packaging_factory_credit
Disconnect From Database
supplierfocus_batch_product_status_down
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${product_status} Set Variable 30112 #批量上下架状态 30110未上架 30111上架中 30112已下架
${body} Set Variable {"status":${product_status},"idList":[${product_id},${product_id1}]}
${response} POST On Session yytclient /trading-center/update/product-status/batch ${body.encode("utf8")}
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"]}
supplierfocus_batch_product_delete
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${body} Set Variable {"ids":["${product_id}"]}
${response} POST On Session yytclient /trading-center/delete/product-list ${body.encode("utf8")}
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"]}
@ -84,24 +80,25 @@ database_delete_paper_category
Disconnect From Database
supplierfocus_delete_paper_manufacturer
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${body} Set Variable {"idList":["${paper_manufacturer_id}"]}
${response} POST On Session yytclient /trading-center/delete/paper-manfucturers/by/ids ${body.encode("utf8")}
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"]}
supplierfocus_delete_paper_brand
Disable Warnings
Create Session yytclient ${yytclient} headers=${cloudfactory_supplierfocus_header}
${body} Set Variable {"idList":["${paper_brand_id}"]}
${response} POST On Session yytclient /trading-center/delete/category-brands/by/ids ${body.encode("utf8")}
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"]}
customer_enterprise_delete_shipping_address
Disable Warnings
Create Session uecclient ${uecclient} headers=${cloudfactory_customer_header}
#${body} Set Variable {"id":"${customer_enterprise_shipping_address_id}"}
${response} Delete On Session uecclient /uec/delete/enterprise-shipping-address/${customer_enterprise_shipping_address_id} #${body.encode("utf8")}

Loading…
Cancel
Save