梁金满 5 years ago
parent
commit
9dc86de0dd
57 changed files with 5114 additions and 0 deletions
  1. 6
      httprunner/.env
  2. 20
      httprunner/api/consignment_process/admin_operation_audit.yml
  3. 19
      httprunner/api/consignment_process/admin_operation_edit_paymentdate.yml
  4. 14
      httprunner/api/consignment_process/admin_operation_get_papermillorderreceiptaudit.yml
  5. 16
      httprunner/api/consignment_process/admin_paperMill_get_papermilldetails.yml
  6. 15
      httprunner/api/consignment_process/admin_proxysell_audit_weightnote.yml
  7. 17
      httprunner/api/consignment_process/admin_proxysell_cancel_proxyorder.yml
  8. 15
      httprunner/api/consignment_process/admin_proxysell_get_proxyorder.yml
  9. 36
      httprunner/api/consignment_process/admin_proxysell_save_weightnote.yml
  10. 24
      httprunner/api/consignment_process/admin_proxysell_update_reservation.yml
  11. 17
      httprunner/api/consignment_process/app_get_papercategory.yml
  12. 14
      httprunner/api/consignment_process/app_get_papermillpapercategorypricelist.yml
  13. 16
      httprunner/api/consignment_process/app_proxysell_cancel_order.yml
  14. 16
      httprunner/api/consignment_process/app_proxysell_cancel_reservation.yml
  15. 26
      httprunner/api/consignment_process/app_proxysell_create_order.yml
  16. 15
      httprunner/api/customer_and_business_relations/admin_customerbizrelation_delete_relation.yml
  17. 15
      httprunner/api/customer_and_business_relations/admin_customerbizrelation_get_relation.yml
  18. 23
      httprunner/api/customer_and_business_relations/admin_customerbizrelation_save_relation.yml
  19. 21
      httprunner/api/customer_and_business_relations/admin_customerbizrelation_update_relation.yml
  20. 14
      httprunner/api/customer_and_business_relations/admin_employer_get_employerdetails.yml
  21. 13
      httprunner/api/customer_and_business_relations/admin_employer_list_employerseller.yml
  22. 17
      httprunner/api/customer_and_business_relations/app_proxysell_bind_relation.yml
  23. 18
      httprunner/api/login/admin_login_password.yml
  24. 18
      httprunner/api/login/admin_login_password1.yml
  25. 19
      httprunner/api/login/app_login_password.yml
  26. 14
      httprunner/api/login/ldap_login_password.yml
  27. 16
      httprunner/api/user_info/app_user_getbaseinfo.yml
  28. 17
      httprunner/api/user_info/app_user_getmemberinfo.yml
  29. 17
      httprunner/api/user_info/app_user_getshippingaddresslist.yml
  30. 18
      httprunner/cases/case.yml
  31. 11
      httprunner/cases/consignment_process/admin_operation_audit.yml
  32. 11
      httprunner/cases/consignment_process/admin_proxysell_save_weightnote.yml
  33. 10
      httprunner/cases/consignment_process/admin_proxysell_update_reservation.yml
  34. 10
      httprunner/cases/consignment_process/app_proxysell_create_order.yml
  35. 4
      httprunner/cases/consignment_process/consignment_process.yml
  36. 20
      httprunner/cases/customer_and_business_relations/admin_customerbizrelation_save_relation.yml
  37. 12
      httprunner/cases/login/admin_login_password.yml
  38. 13
      httprunner/cases/login/app_login_password.yml
  39. 7
      httprunner/cases/user_info/app_user_getbaseinfo.yml
  40. 7
      httprunner/cases/user_info/app_user_getmemberinfo.yml
  41. 7
      httprunner/cases/user_info/app_user_getshippingaddresslist.yml
  42. 1
      httprunner/debugtalk.py
  43. 4113
      httprunner/reports/1599786957.html
  44. 16
      httprunner/steps/consignment_process/admin_operation_audit.yml
  45. 16
      httprunner/steps/consignment_process/admin_proxysell_save_weightnote.yml
  46. 16
      httprunner/steps/consignment_process/admin_proxysell_update_reservation.yml
  47. 16
      httprunner/steps/consignment_process/app_proxysell_create_order.yml
  48. 102
      httprunner/steps/consignment_process/consignment_process.yml
  49. 66
      httprunner/steps/customer_and_business_relations/admin_customerbizrelation_relation.yml
  50. 21
      httprunner/steps/customer_and_business_relations/admin_customerbizrelation_save_relation.yml
  51. 28
      httprunner/steps/customer_and_business_relations/admin_customerbizrelation_update_relation.yml
  52. 9
      httprunner/steps/login/admin_login_password.yml
  53. 9
      httprunner/steps/login/app_login_password.yml
  54. 15
      httprunner/steps/step.yml
  55. 16
      httprunner/steps/user_info/app_user_getbaseinfo.yml
  56. 16
      httprunner/steps/user_info/app_user_getmemberinfo.yml
  57. 16
      httprunner/steps/user_info/app_user_getshippingaddresslist.yml

6
httprunner/.env

@ -0,0 +1,6 @@
AURL=https://api-test.qniao.cn
BURL=http://api-admin-test.qniao.cn
URL=http://api.bidding.test.qniao.cn
ATOKEN=QNT biCV33h3cL8Y7rWM52H05SJaKc/qPUpn8N7neYt9jXPMUMqQEpqjmbz7uWeigMI+
LDAPTOKEN=Token ff213490f454502978d11d8d63a5eeae
TOKEN=eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ7XCJhY2NvdW50Tm9uRXhwaXJlZFwiOnRydWUsXCJhY2NvdW50Tm9uTG9ja2VkXCI6dHJ1ZSxcImF1dGhvcml0aWVzXCI6W3tcImF1dGhvcml0eVwiOlwiUk9MRV9VU0VSXCJ9LHtcImF1dGhvcml0eVwiOlwiUk9MRV9BRE1JTlwifV0sXCJjb21wYW55SWRcIjowLFwiY3JlZGVudGlhbHNOb25FeHBpcmVkXCI6dHJ1ZSxcImVuYWJsZWRcIjp0cnVlLFwicGFzc3dvcmRcIjpcIlwiLFwicm9sZUlkXCI6MixcInJvbGVOYW1lc1wiOltcIlJPTEVfVVNFUlwiLFwiUk9MRV9BRE1JTlwiXSxcInVzZXJJZFwiOjEsXCJ1c2VybmFtZVwiOlwiYWRtaW5cIn0iLCJjcmVhdGVkIjoxNTk5NTMxOTcwMDUwLCJleHAiOjE2MDAxMzY3NzB9.EHVGqQQz2MiA-B_-Ok1cXF040qmVwzcF2kOxULV-c0TwxSaDFPel5VJvvpBXzPrU5pxWj95mDBu_-Gpf65mTkA

20
httprunner/api/consignment_process/admin_operation_audit.yml

@ -0,0 +1,20 @@
name: 运营审核
variables:
token: ${ENV(LDAPTOKEN)}
auditRequestId: 501196221172551680
# 1-通过 2-不通过
isPass: 1
base_url: ${ENV(BURL)}
request:
url: /recycle-service/admin/operation/operation/audit
method: POST
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $token
json:
auditRequestId: $auditRequestId
isPass: $isPass
validate:
- eq: ["status_code", 200]
- eq: ["content.message", "successful"]

19
httprunner/api/consignment_process/admin_operation_edit_paymentdate.yml

@ -0,0 +1,19 @@
name: 运营填写纸厂支付日期接口
variables:
token: ${ENV(LDAPTOKEN)}
auditRequestItemId:
paperMillPayAt: 2020-09-10
base_url: ${ENV(BURL)}
request:
url: /recycle-service/admin/operation/edit/payment-date
method: POST
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $token
json:
auditRequestItemId: $auditRequestItemId
paperMillPayAt: $paperMillPayAt
validate:
- eq: ["status_code", 200]
- eq: ["content.message", "successful"]

14
httprunner/api/consignment_process/admin_operation_get_papermillorderreceiptaudit.yml

@ -0,0 +1,14 @@
name: 运营获取审核列表
variables:
token: ${ENV(LDAPTOKEN)}
base_url: ${ENV(BURL)}
request:
url: /recycle-service/admin/operation/get/paper-mill-order-receipt-audit
method: GET
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $token
validate:
- eq: ["status_code", 200]
- eq: ["content.message", "successful"]

16
httprunner/api/consignment_process/admin_paperMill_get_papermilldetails.yml

@ -0,0 +1,16 @@
name: 获取纸厂信息详情
variables:
token: ${ENV(LDAPTOKEN)}
paperMillId: 498208038486937600
base_url: ${ENV(BURL)}
request:
url: /recycle-service/admin/paperMill/get/paper-mill-details/$paperMillId
method: GET
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $token
validate:
- eq: ["status_code", 200]
- eq: ["content.message", "successful"]

15
httprunner/api/consignment_process/admin_proxysell_audit_weightnote.yml

@ -0,0 +1,15 @@
name: 销售提交榜单审核
variables:
token: ${ENV(LDAPTOKEN)}
weightNoteId:
base_url: ${ENV(BURL)}
request:
url: /recycle-service/admin/proxy-sell/audit/weightnote/$weightNoteId
method: POST
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $token
validate:
- eq: ["status_code", 200]
- eq: ["content.message", "successful"]

17
httprunner/api/consignment_process/admin_proxysell_cancel_proxyorder.yml

@ -0,0 +1,17 @@
name: 销售取消代卖订单
variables:
token: ${ENV(ATOKEN)}
orderId: 501102486468300800
base_url: ${ENV(BURL)}
request:
url: /recycle-service/admin/proxy-sell/cancel/proxy-order
method: POST
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $token
params:
orderId: $orderId
validate:
- eq: ["status_code", 200]
- eq: ["content.message", "successful"]

15
httprunner/api/consignment_process/admin_proxysell_get_proxyorder.yml

@ -0,0 +1,15 @@
name: 销售查看订单详情
variables:
token: ${ENV(LDAPTOKEN)}
orderId: 498208038486937600
base_url: ${ENV(BURL)}
request:
url: /recycle-service//admin/proxy-sell/get/proxy-order/$orderId
method: GET
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $token
validate:
- eq: ["status_code", 200]
- {"check": "content.message", "comparator": "contains", "expect": "successful"}

36
httprunner/api/consignment_process/admin_proxysell_save_weightnote.yml

@ -0,0 +1,36 @@
name: 销售上传代卖磅单信息
variables:
token: ${ENV(LDAPTOKEN)}
deductedPoint: 50
deductedWeight: 100
imageUrl: ["http://medou.oss-cn-shenzhen.aliyuncs.com/bird_user/20090917463455009.jpg"]
netWeight: 2000
orderItemId: 501174556803862528
settleDay: "2020-09-11"
settlePrice: 2499
settleUtiPrice: 2500
settleWeight: 1000
unitSurcharge: 0.001
weightDay: "2020-09-10"
base_url: ${ENV(BURL)}
request:
url: /recycle-service/admin/proxy-sell/save/weightnote
method: POST
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $token
json:
deductedPoint: $deductedPoint
deductedWeight: $deductedWeight
imageUrl: $imageUrl
netWeight: $netWeight
orderItemId: $orderItemId
settleDay: $settleDay
settlePrice: $settlePrice
settleUtiPrice: $settleUtiPrice
settleWeight: $settleWeight
unitSurcharge: $unitSurcharge
weightDay: $weightDay
validate:
- eq: ["status_code", 200]

24
httprunner/api/consignment_process/admin_proxysell_update_reservation.yml

@ -0,0 +1,24 @@
name: 销售上传代卖预约信息
variables:
token: ${ENV(LDAPTOKEN)}
millDeliveryOrderId: "12345678910"
millSupplierId: 498227745344589800
scrapeOrderId: 501102486468300800
buyerReservationDate: "2020-09-10"
unitSurcharge: 0.01
base_url: ${ENV(BURL)}
request:
url: /recycle-service/admin/proxy-sell/update/reservation
method: POST
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $token
json:
millDeliveryOrderId: $millDeliveryOrderId
millSupplierId: $millSupplierId
scrapeOrderId: $scrapeOrderId
buyerReservationDate: $buyerReservationDate
unitSurcharge: $unitSurcharge
validate:
- eq: ["status_code", 200]

17
httprunner/api/consignment_process/app_get_papercategory.yml

@ -0,0 +1,17 @@
name: 获取纸厂品类列表
variables:
apptoken: ${ENV(ATOKEN)}
paperMillId: 498208038486937600
base_url: ${ENV(AURL)}
request:
url: /recycle-service/get/paper-category
method: POST
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
json:
paperMillId: $paperMillId
validate:
- eq: ["status_code", 200]
- {"check": "content.message", "comparator": "contains", "expect": "successful"}

14
httprunner/api/consignment_process/app_get_papermillpapercategorypricelist.yml

@ -0,0 +1,14 @@
name: 获取纸厂信息
variables:
apptoken: ${ENV(ATOKEN)}
base_url: ${ENV(AURL)}
request:
url: /recycle-service/get/paper-mill-paper-category-price-list
method: GET
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
validate:
- eq: ["status_code", 200]
- eq: ["content.message", "successful"]

16
httprunner/api/consignment_process/app_proxysell_cancel_order.yml

@ -0,0 +1,16 @@
name: app用户取消代卖订单
variables:
apptoken: ${ENV(ATOKEN)}
orderId: 501094564069773312
base_url: ${ENV(AURL)}
request:
url: /recycle-service/proxy-sell/cancel/order/$orderId
method: POST
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
validate:
- eq: ["status_code", 200]
- eq: ["content.message", "successful"]

16
httprunner/api/consignment_process/app_proxysell_cancel_reservation.yml

@ -0,0 +1,16 @@
name: app用户拒绝预约代卖订单
variables:
apptoken: ${ENV(ATOKEN)}
orderId: 501102486468300800
base_url: ${ENV(AURL)}
request:
url: /recycle-service/proxy-sell/cancel/reservation/$orderId
method: POST
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
validate:
- eq: ["status_code", 200]
- eq: ["content.message", "successful"]

26
httprunner/api/consignment_process/app_proxysell_create_order.yml

@ -0,0 +1,26 @@
name: app用户创建代卖订单
variables:
apptoken: ${ENV(ATOKEN)}
packageNum: 1
plateNumber: 粤A123456
deliveryTime: "2020-09-10 12:00:00"
paperCategoryId: 498475822026461184
totalEstimatedWeight: 1000
base_url: ${ENV(AURL)}
request:
url: /recycle-service/proxy-sell/create/order
method: POST
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
json:
carInfos:
- packageNum: $packageNum
- plateNumber: $plateNumber
deliveryTime: $deliveryTime
paperCategoryId: $paperCategoryId
totalEstimatedWeight: $totalEstimatedWeight
validate:
- eq: ["status_code", 200]

15
httprunner/api/customer_and_business_relations/admin_customerbizrelation_delete_relation.yml

@ -0,0 +1,15 @@
name: 后台删除客户与业务人员关系
variables:
token: ${ENV(LDAPTOKEN)}
id: 23
base_url: ${ENV(BURL)}
request:
url: /recycle-service/admin/customerbizrelation/delete/relation/$id
method: POST
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $token
validate:
- eq: ["status_code", 200]
- {"check": "content.message", "comparator": "contains", "expect": "successful"}

15
httprunner/api/customer_and_business_relations/admin_customerbizrelation_get_relation.yml

@ -0,0 +1,15 @@
name: 后台查询客户与业务人员关系
variables:
token: ${ENV(LDAPTOKEN)}
id: 23
base_url: ${ENV(BURL)}
request:
url: /recycle-service/admin/customerbizrelation/get/relation/$id
method: GET
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $token
validate:
- eq: ["status_code", 200]
- {"check": "content.message", "comparator": "contains", "expect": "successful"}

23
httprunner/api/customer_and_business_relations/admin_customerbizrelation_save_relation.yml

@ -0,0 +1,23 @@
name: 后台新增客户与业务人员关系
variables:
token: ${ENV(LDAPTOKEN)}
bizUserId: "1"
bizUserName: "admin"
cusormerId: "496029457996451840"
customerName: "梁金满"
base_url: ${ENV(BURL)}
request:
url: /recycle-service/admin/customerbizrelation/save/relation
method: POST
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $token
json:
bizUserId: $bizUserId
bizUserName: $bizUserName
cusormerId: $cusormerId
customerName: $customerName
validate:
- eq: ["status_code", 200]
- {"check": "content.message", "comparator": "contains", "expect": "successful"}

21
httprunner/api/customer_and_business_relations/admin_customerbizrelation_update_relation.yml

@ -0,0 +1,21 @@
name: 后台修改客户与业务人员关系
variables:
token: ${ENV(LDAPTOKEN)}
bizUserId1: 498985714734731264
bizUserName1: "梁金满"
id: 1
base_url: ${ENV(BURL)}
request:
url: /recycle-service/admin/customerbizrelation/update/relation
method: POST
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $token
json:
bizUserId: $bizUserId1
bizUserName: $bizUserName1
id: $id
validate:
- eq: ["status_code", 200]
- {"check": "content.message", "comparator": "contains", "expect": "successful"}

14
httprunner/api/customer_and_business_relations/admin_employer_get_employerdetails.yml

@ -0,0 +1,14 @@
name: 后台获取销售人员列表
variables:
token: ${ENV(LDAPTOKEN)}
base_url: ${ENV(BURL)}
request:
url: /recycle-service/admin/employer/get/employer-details
method: GET
headers:
Content-Type: "application/x-www-form-urlencoded"
X-APP-ID: "1"
Authorization: $token
validate:
- eq: ["status_code", 200]
- eq: ["content.data.email", "liangjinman@qniao.cn"]

13
httprunner/api/customer_and_business_relations/admin_employer_list_employerseller.yml

@ -0,0 +1,13 @@
name: 后台员工获取个人中心详情
variables:
token: ${ENV(LDAPTOKEN)}
base_url: ${ENV(BURL)}
request:
url: /recycle-service/admin/employer/list/employer-seller
method: GET
headers:
X-APP-ID: "1"
Authorization: $token
validate:
- eq: ["status_code", 200]

17
httprunner/api/customer_and_business_relations/app_proxysell_bind_relation.yml

@ -0,0 +1,17 @@
name: 创建客户销售绑定关系
variables:
apptoken: ${ENV(ATOKEN)}
code: 0051
base_url: ${ENV(AURL)}
request:
url: /recycle-service/proxy-sell/bind/relation
method: POST
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
params:
code: $code
validate:
- eq: ["status_code", 200]
- {"check": "content.message", "comparator": "contains", "expect": "successful"}

18
httprunner/api/login/admin_login_password.yml

@ -0,0 +1,18 @@
name: 后台管理员登录
variables:
phone: admin
password: 90F742E9D98D953B6757A54E50AE1349
rememberMe: null
base_url: ${ENV(BURL)}
request:
url: /login/admin/adminLogin
method: POST
headers:
Content-Type: "application/json;charset=UTF-8"
json:
phone: $phone
password: $password
rememberMe: $rememberMe
validate:
- eq: ["status_code", 200]
- {"check": "content.msg", "comparator": "contains", "expect": "success"}

18
httprunner/api/login/admin_login_password1.yml

@ -0,0 +1,18 @@
name: 销售账号登录
variables:
phone: 13060994305
password: 9602BF7A8C5FEAB91385D1BB9EA70DF0
rememberMe: null
base_url: ${ENV(BURL)}
request:
url: /login/admin/adminLogin
method: POST
headers:
Content-Type: "application/json;charset=UTF-8"
json:
phone: $phone
password: $password
rememberMe: $rememberMe
validate:
- eq: ["status_code", 200]
- {"check": "content.msg", "comparator": "contains", "expect": "success"}

19
httprunner/api/login/app_login_password.yml

@ -0,0 +1,19 @@
name: app密码登录
variables:
account: 18219557422
accountType: MOBILE
password: dc483e80a7a0bd9ef71d8cf973673924
base_url: ${ENV(AURL)}
request:
url: /recycle-service/authorize/by-password
method: POST
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
json:
account: $account
accountType: $accountType
password: $password
validate:
- eq: ["status_code", 200]
- {"check": "content.message", "comparator": "contains", "expect": "successful"}

14
httprunner/api/login/ldap_login_password.yml

@ -0,0 +1,14 @@
name: ldap登录
base_url: ${ENV(BURL)}
request:
url: /recycle-service/admin/login
method: POST
headers:
Content-Type: "application/x-www-form-urlencoded"
X-APP-ID: "1"
data:
username: liangjinman@qniao.cn
password: qn123456
validate:
- eq: ["status_code", 200]
- {"check": "content.message", "comparator": "eq", "expect": "登陆成功"}

16
httprunner/api/user_info/app_user_getbaseinfo.yml

@ -0,0 +1,16 @@
name: app用户基本信息
variables:
code: 200
message: successful
apptoken: ${ENV(ATOKEN)}
base_url: ${ENV(AURL)}
request:
url: /recycle-service/user/get/base-info
method: GET
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
validate:
- eq: ["status_code",$code]
- eq: ["content.message",$message]

17
httprunner/api/user_info/app_user_getmemberinfo.yml

@ -0,0 +1,17 @@
name: app用户会员信息
variables:
code: 200
message: successful
apptoken: ${ENV(ATOKEN)}
base_url: ${ENV(AURL)}
request:
url: /recycle-service/user/get/member-info
method: GET
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
validate:
- eq: ["status_code", $code]
- eq: ["content.message", $message]

17
httprunner/api/user_info/app_user_getshippingaddresslist.yml

@ -0,0 +1,17 @@
name: app获取收货地址列表
variables:
code: 200
message: successful
apptoken: ${ENV(ATOKEN)}
base_url: ${ENV(AURL)}
request:
url: /recycle-service/get/shipping-address-list
method: GET
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
validate:
- eq: ["status_code", $code]
- eq: ["content.message", $message]

18
httprunner/cases/case.yml

@ -0,0 +1,18 @@
config:
name: "demo testsuite"
variables:
device_sn: "XYZ"
base_url: "http://127.0.0.1:5000"
testcases:
-
name: call demo_testcase with data 1
testcase: path/to/step.yml
variables:
device_sn: $device_sn
-
name: call demo_testcase with data 2
testcase: path/to/step.yml
variables:
device_sn: $device_sn

11
httprunner/cases/consignment_process/admin_operation_audit.yml

@ -0,0 +1,11 @@
testcases:
-
name: 运营审核测试套件
testcase: steps/consignment_process/admin_operation_audit.yml
parameters:
- title-auditRequestId-isPass-weightDay-code-message:
- ["运营审核isPass为空","501196221172551680","",200,"isPass:是否通过不能为空"]
- ["运营审核id为空","",1,200,"auditRequestId:审核id不能为空"]
- ["运营审核id错误","12345",1,200,"审核id不存在"]

11
httprunner/cases/consignment_process/admin_proxysell_save_weightnote.yml

@ -0,0 +1,11 @@
testcases:
-
name: 销售上传代卖磅单信息测试套件
testcase: steps/consignment_process/admin_proxysell_save_weightnote.yml
parameters:
- title-orderItemId-settleDay-weightDay-code-message:
- ["上传磅单信息错误的订单项id","12345","2020-09-11","2020-09-10",500,"No message available"]
- ["上传磅单信息订单项id为空","","2020-09-11","2020-09-10",200,"orderItemId:订单项id不能为空"]
- ["上传磅单信息结算日期为空","50146071269933465","","2020-09-10",200,"settleDay:结算日期不能为空"]
- ["上传磅单信息过磅日期为空","50146071269933465","2020-09-11","",200,"weightDay:过磅日期不能为空"]

10
httprunner/cases/consignment_process/admin_proxysell_update_reservation.yml

@ -0,0 +1,10 @@
testcases:
-
name: 销售上传代卖预约信息测试套件
testcase: steps/consignment_process/admin_proxysell_update_reservation.yml
parameters:
- title-millSupplierId-scrapeOrderId-code-message:
- ["上传预约信息错误的纸厂供应商id","12345","501462195926863872",500,"No message available"]
- ["上传预约信息错误的订单号","498227745344589800","12345",500,"Internal Server Error"]
- ["上传预约信息纸厂供应商id为空","","501462195926863872",200,"millSupplierId:纸厂供应商不能为空"]
- ["上传预约信息订单号为空","498227745344589800","",200,"scrapeOrderId:订单id不能为空"]

10
httprunner/cases/consignment_process/app_proxysell_create_order.yml

@ -0,0 +1,10 @@
testcases:
-
name: app用户创建代卖订单测试套件
testcase: steps/consignment_process/app_proxysell_create_order.yml
parameters:
- title-deliveryTime-paperCategoryId-totalEstimatedWeight-code-message:
- ["创建代卖订单错误的纸品id","2020-09-10 12:00:00","12345","1000",500,"No message available"]
- ["创建代卖订单纸品id为空","2020-09-10 12:00:00","","1000",200,"paperCategoryId:纸品id不能为空"]
- ["创建代卖订单时间为空","","498475822026461184","1000",200,"deliveryTime:送货时间不能为空"]
- ["创建代卖订单时间为空","2020-09-10 12:00:00","498475822026461184","",200,"totalEstimatedWeight:总预估重量不能为空"]

4
httprunner/cases/consignment_process/consignment_process.yml

@ -0,0 +1,4 @@
testcases:
-
name: 代卖流程测试套件
testcase: steps/consignment_process/consignment_process.yml

20
httprunner/cases/customer_and_business_relations/admin_customerbizrelation_save_relation.yml

@ -0,0 +1,20 @@
testcases:
-
name: 后台客户与业务人员关系测试套件正向
testcase: steps/customer_and_business_relations/admin_customerbizrelation_relation.yml
-
name: 后台新增客户与业务人员关系测试套件逆向
testcase: steps/customer_and_business_relations/admin_customerbizrelation_save_relation.yml
parameters:
- title-bizUserId-bizUserName-cusormerId-customerName-code-message:
- ["后台新增客户与业务人员关系成功","498985714734731264","梁金满","496029457996451840","梁金满",200,"successful"]
- ["后台新增客户与业务人员关系重复","498985714734731264","梁金满","496029457996451840","梁金满",200,"请勿重复绑定"]
- ["后台新增客户与业务人员关系其他销售","498985714709565440","吴华东","496029457996451840","梁金满",200,"该客户已经绑定了销售人员"]
-
name: 后台修改客户与业务人员关系测试套件逆向
testcase: steps/customer_and_business_relations/admin_customerbizrelation_update_relation.yml
parameters:
- title-bizUserId-bizUserName-id-code-message:
- ["后台修改客户与业务人员关系成功","498985714734731264","梁金满",1,200,"successful"]
- ["后台修改客户与业务人员关系id为空","498985714734731264","梁金满","",200,"id:must not be null"]

12
httprunner/cases/login/admin_login_password.yml

@ -0,0 +1,12 @@
testcases:
-
name: 后台管理员登录测试套件
testcase: steps/login/admin_login_password.yml
parameters:
- title-phone-password-rememberMe-code-msg:
- ["登录成功","admin","90F742E9D98D953B6757A54E50AE1349","null",200,"success"]
- ["密码错误","admin","123456","null",200,"帐号密码错误"]
- ["账号错误","123","90F742E9D98D953B6757A54E50AE1349","null",200,"用户不存在"]
- ["账号为空","","90F742E9D98D953B6757A54E50AE1349","null",200,"手机号不能为空"]
- ["密码为空","admin","","null",200,"密码不能为空"]

13
httprunner/cases/login/app_login_password.yml

@ -0,0 +1,13 @@
testcases:
-
name: app密码登录测试套件
testcase: steps/login/app_login_password.yml
parameters:
- title-account-accountType-password-code-message:
- ["登录成功","18219557422","MOBILE","dc483e80a7a0bd9ef71d8cf973673924",200,"successful"]
- ["密码错误","18219557422","MOBILE","123456",200,"密码错误"]
- ["账号为空","","MOBILE","dc483e80a7a0bd9ef71d8cf973673924",200,"account:账号不能为空"]
- ["账号错误","admin","MOBILE","dc483e80a7a0bd9ef71d8cf973673924",200,"新用户请注册"]
- ["密码为空","18219557422","MOBILE","",200,"password:密码不能为空"]
- ["账号类型错误","18219557422","MAIL","dc483e80a7a0bd9ef71d8cf973673924",200,"新用户请注册"]
- ["账号类型为空","18219557422","","dc483e80a7a0bd9ef71d8cf973673924",200,"No enum constant com.qniao.authorization.constants.AccountTypeEnum."]

7
httprunner/cases/user_info/app_user_getbaseinfo.yml

@ -0,0 +1,7 @@
testcases:
-
name: 获取app用户基本信息测试套件
testcase: steps/user_info/app_user_getbaseinfo.yml
parameters:
- title-code-message:
- ["获取app用户基本信息成功",200,"successful"]

7
httprunner/cases/user_info/app_user_getmemberinfo.yml

@ -0,0 +1,7 @@
testcases:
-
name: 获取app用户会员信息测试套件
testcase: steps/user_info/app_user_getmemberinfo.yml
parameters:
- title-code-message:
- ["获取app用户会员信息成功",200,"successful"]

7
httprunner/cases/user_info/app_user_getshippingaddresslist.yml

@ -0,0 +1,7 @@
testcases:
-
name: app获取收货地址列表测试套件
testcase: steps/user_info/app_user_getshippingaddresslist.yml
parameters:
- title-code-message:
- ["app获取收货地址列表成功",200,"successful"]

1
httprunner/debugtalk.py

@ -0,0 +1 @@

4113
httprunner/reports/1599786957.html
File diff suppressed because it is too large
View File

16
httprunner/steps/consignment_process/admin_operation_audit.yml

@ -0,0 +1,16 @@
config:
name: 运营审核
teststeps:
-
name: 销售登录后台获取token
api: api/login/ldap_login_password.yml
extract:
- token: headers.Authorization
-
name: $title
api: api/consignment_process/admin_operation_audit.yml
variables:
token: $token
validate:
- eq: ["status_code", $code]
- {"check": "content.message", "comparator": "contains", "expect": $message}

16
httprunner/steps/consignment_process/admin_proxysell_save_weightnote.yml

@ -0,0 +1,16 @@
config:
name: 销售上传代卖磅单信息
teststeps:
-
name: 销售登录后台获取token
api: api/login/ldap_login_password.yml
extract:
- token: headers.Authorization
-
name: $title
api: api/consignment_process/admin_proxysell_save_weightnote.yml
variables:
token: $token
validate:
- eq: ["status_code", $code]
- {"check": "content.message", "comparator": "contains", "expect": $message}

16
httprunner/steps/consignment_process/admin_proxysell_update_reservation.yml

@ -0,0 +1,16 @@
config:
name: 销售上传代卖预约信息
teststeps:
-
name: 销售登录后台获取token
api: api/login/ldap_login_password.yml
extract:
- token: headers.Authorization
-
name: $title
api: api/consignment_process/admin_proxysell_update_reservation.yml
variables:
token: $token
validate:
- eq: ["status_code", $code]
- {"check": "content.message", "comparator": "contains", "expect": $message}

16
httprunner/steps/consignment_process/app_proxysell_create_order.yml

@ -0,0 +1,16 @@
config:
name: app用户创建代卖订单
teststeps:
-
name: app用户密码登录获取token
api: api/login/app_login_password.yml
extract:
- apptoken: content.data.token
-
name: $title
api: api/consignment_process/app_proxysell_create_order.yml
variables:
apptoken: QNT $apptoken
validate:
- eq: ["status_code", $code]
- {"check": "content.message", "comparator": "contains", "expect": $message}

102
httprunner/steps/consignment_process/consignment_process.yml

@ -0,0 +1,102 @@
config:
name: 代卖流程
teststeps:
-
name: app用户密码登录获取token
api: api/login/app_login_password.yml
extract:
- apptoken: content.data.token
-
name: 销售登录后台获取token
api: api/login/ldap_login_password.yml
extract:
- token: headers.Authorization
-
name: app用户获取纸厂id
api: api/consignment_process/app_get_papermillpapercategorypricelist.yml
variables:
apptoken: QNT $apptoken
extract:
paperMillId: content.data.records.1.paperMillId
-
name: app用户获取纸厂品类id
api: api/consignment_process/app_get_papercategory.yml
variables:
apptoken: QNT $apptoken
paperMillId: $paperMillId
extract:
paperCategoryId: content.data.1.id
-
name: app用户创建代卖订单,获取订单id,销售收到钉钉
api: api/consignment_process/app_proxysell_create_order.yml
variables:
apptoken: QNT $apptoken
paperCategoryId: $paperCategoryId
extract:
orderId: content.data.orderId
-
name: app用户拒绝预约代卖订单,销售收到钉钉
api: api/consignment_process/app_proxysell_cancel_reservation.yml
variables:
apptoken: QNT $apptoken
orderId: $orderId
-
name: 销售获取后台纸厂供应商id
api: api/consignment_process/admin_paperMill_get_papermilldetails.yml
variables:
token: $token
paperMillId: $paperMillId
extract:
millSupplierId: content.data.millSupplierNameList.1.merchantAccountId
-
name: 销售上传代卖预约信息
api: api/consignment_process/admin_proxysell_update_reservation.yml
variables:
token: $token
millSupplierId: $millSupplierId
scrapeOrderId: $orderId
-
name: 销售查看订单详情获取订单项id
api: api/consignment_process/admin_proxysell_get_proxyorder.yml
variables:
token: $token
orderId: $orderId
extract:
orderItemId: content.data.orderItems.0.id
-
name: 销售上传代卖磅单信息
api: api/consignment_process/admin_proxysell_save_weightnote.yml
variables:
token: $token
orderItemId: $orderItemId
-
name: 销售查看订单详情获取磅单id
api: api/consignment_process/admin_proxysell_get_proxyorder.yml
variables:
token: $token
orderId: $orderId
extract:
weightNoteId: content.data.orderItems.0.weightnoteInfo.id
-
name: 销售提交榜单审核,运营收到钉钉
api: api/consignment_process/admin_proxysell_audit_weightnote.yml
variables:
token: $token
weightNoteId: $weightNoteId
-
name: 运营获取审核列表
api: api/consignment_process/admin_operation_get_papermillorderreceiptaudit.yml
variables:
token: $token
extract:
auditRequestId: content.data.records.0.auditRequestId
-
name: 运营审核,审核不通过销售收到钉钉
api: api/consignment_process/admin_operation_audit.yml
variables:
token: $token
isPass: 2
auditRequestId: $auditRequestId

66
httprunner/steps/customer_and_business_relations/admin_customerbizrelation_relation.yml

@ -0,0 +1,66 @@
config:
name: 客户与业务人员关系
teststeps:
-
name: 员工登录获取token
api: api/login/ldap_login_password.yml
extract:
- token: headers.Authorization
-
name: 获取销售id和name
api: api/customer_and_business_relations/admin_employer_list_employerseller.yml
variables:
token: $token
extract:
- bizUserId: content.data.0.adminId
- bizUserName: content.data.0.name
- bizUserId1: content.data.1.adminId
- bizUserName1: content.data.1.name
-
name: app密码登录获取token
api: api/login/app_login_password.yml
extract:
- apptoken: content.data.token
-
name: 获取app用户基本信息的id和name
api: api/user_info/app_user_getbaseinfo.yml
variables:
apptoken: QNT $apptoken
extract:
- cusormerId: content.data.userId
- customerName: content.data.realName
-
name: 后台新增客户与业务人员关系成功
api: api/customer_and_business_relations/admin_customerbizrelation_save_relation.yml
variables:
token: $token
bizUserId: $bizUserId
bizUserName: $bizUserName
cusormerId: $cusormerId
customerName: $customerName
extract:
- id: content.data.id
-
name: 后台查询客户与业务人员关系成功
api: api/customer_and_business_relations/admin_customerbizrelation_get_relation.yml
variables:
token: $token
id: $id
-
name: 后台修改客户与业务人员关系成功
api: api/customer_and_business_relations/admin_customerbizrelation_update_relation.yml
variables:
token: $token
bizUserId: $bizUserId1
bizUserName: $bizUserName1
id: $id
-
name: 后台删除客户与业务人员关系成功
api: api/customer_and_business_relations/admin_customerbizrelation_delete_relation.yml
variables:
token: $token
id: $id

21
httprunner/steps/customer_and_business_relations/admin_customerbizrelation_save_relation.yml

@ -0,0 +1,21 @@
config:
name: 后台新增客户与业务人员关系
teststeps:
-
name: 员工登录获取token
api: api/login/ldap_login_password.yml
extract:
- accesstoken: headers.Authorization
-
name: $title
api: api/customer_and_business_relations/admin_customerbizrelation_save_relation.yml
variables:
accesstoken: $accesstoken
bizUserId: $bizUserId
bizUserName: $bizUserName
cusormerId: $cusormerId
customerName: $customerName
validate:
- eq: ["status_code", $code]
- {"check": "content.message", "comparator": "contains", "expect": $message}

28
httprunner/steps/customer_and_business_relations/admin_customerbizrelation_update_relation.yml

@ -0,0 +1,28 @@
config:
name: 后台修改客户与业务人员关系
teststeps:
-
name: 员工登录获取token
api: api/login/ldap_login_password.yml
extract:
- accesstoken: headers.Authorization
-
name: 获取销售id和name
api: api/customer_and_business_relations/admin_employer_list_employerseller.yml
variables:
token: $accesstoken
extract:
- bizUserId: content.data.0.adminId
- bizUserName: content.data.0.name
-
name: $title
api: api/customer_and_business_relations/admin_customerbizrelation_update_relation.yml
variables:
accesstoken: $accesstoken
bizUserId: $bizUserId
bizUserName: $bizUserName
id: $id
validate:
- eq: ["status_code", $code]
- {"check": "content.message", "comparator": "contains", "expect": $message}

9
httprunner/steps/login/admin_login_password.yml

@ -0,0 +1,9 @@
config:
name: 后台管理员登录
teststeps:
-
name: $title
api: api/login/admin_login_password.yml
validate:
- eq: ["status_code", $code]
- {"check": "content.msg", "comparator": "contains", "expect": $msg}

9
httprunner/steps/login/app_login_password.yml

@ -0,0 +1,9 @@
config:
name: app密码登录
teststeps:
-
name: $title
api: api/login/app_login_password.yml
validate:
- eq: ["status_code", $code]
- {"check": "content.message", "comparator": "contains", "expect": $message}

15
httprunner/steps/step.yml

@ -0,0 +1,15 @@
config:
name: 依赖上个接口
variables:
base_url: https://api-test.qniao.cn/recycle-service
teststeps:
-
name: 第一个接口
api: path/to/api1.yml
extract:
- token: content.token
-
name: 第二个接口
api: path/to/api2.yml
variables:
token: $token

16
httprunner/steps/user_info/app_user_getbaseinfo.yml

@ -0,0 +1,16 @@
config:
name: app用户基本信息
teststeps:
-
name: app密码登录获取token
api: api/login/app_login_password.yml
extract:
- token: content.data.token
-
name: 获取app用户基本信息
api: api/user_info/app_user_getbaseinfo.yml
variables:
token: QNT $token
validate:
- eq: ["status_code", $code]
- {"check": "content.message", "comparator": "contains", "expect": $message}

16
httprunner/steps/user_info/app_user_getmemberinfo.yml

@ -0,0 +1,16 @@
config:
name: app用户基本信息
teststeps:
-
name: app密码登录获取token
api: api/login/app_login_password.yml
extract:
- token: content.data.token
-
name: 获取app用户会员信息
api: api/user_info/app_user_getmemberinfo.yml
variables:
token: QNT $token
validate:
- eq: ["status_code", $code]
- {"check": "content.message", "comparator": "contains", "expect": $message}

16
httprunner/steps/user_info/app_user_getshippingaddresslist.yml

@ -0,0 +1,16 @@
config:
name: app用户基本信息
teststeps:
-
name: app密码登录获取token
api: api/login/app_login_password.yml
extract:
- token: content.data.token
-
name: app获取收货地址列表
api: api/user_info/app_user_getshippingaddresslist.yml
variables:
token: $token
validate:
- eq: ["status_code", $code]
- {"check": "content.message", "comparator": "contains", "expect": $message}
Loading…
Cancel
Save