diff --git a/httprunner/api/api.yml b/httprunner/api/api.yml
new file mode 100644
index 0000000..22d5977
--- /dev/null
+++ b/httprunner/api/api.yml
@@ -0,0 +1,13 @@
+name: api
+variables:
+ var1: value1
+ var2: value2
+request:
+ url: /api/path/$var1
+ method: POST
+ headers:
+ Content-Type: "application/json"
+ json:
+ key: $var2
+validate:
+ - eq: ["status_code", 200]
diff --git a/httprunner/api/consignment_process/admin_operation_audit.yml b/httprunner/api/consignment_process/admin_operation_audit.yml
index 798f454..a299a7c 100644
--- a/httprunner/api/consignment_process/admin_operation_audit.yml
+++ b/httprunner/api/consignment_process/admin_operation_audit.yml
@@ -1,5 +1,7 @@
name: 运营审核
variables:
+ code: 200
+ message: successful
token: ${ENV(LDAPTOKEN)}
auditRequestId: 501196221172551680
# 1-通过 2-不通过
@@ -16,5 +18,5 @@ request:
auditRequestId: $auditRequestId
isPass: $isPass
validate:
- - eq: ["status_code", 200]
- - eq: ["content.message", "successful"]
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/consignment_process/admin_operation_edit_paymentdate.yml b/httprunner/api/consignment_process/admin_operation_edit_paymentdate.yml
index d996460..0c4f3f4 100644
--- a/httprunner/api/consignment_process/admin_operation_edit_paymentdate.yml
+++ b/httprunner/api/consignment_process/admin_operation_edit_paymentdate.yml
@@ -1,5 +1,7 @@
name: 运营填写纸厂支付日期接口
variables:
+ code: 200
+ message: successful
token: ${ENV(LDAPTOKEN)}
auditRequestItemId:
paperMillPayAt: 2020-09-10
@@ -15,5 +17,5 @@ request:
auditRequestItemId: $auditRequestItemId
paperMillPayAt: $paperMillPayAt
validate:
- - eq: ["status_code", 200]
- - eq: ["content.message", "successful"]
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/consignment_process/admin_operation_get_papermillorderreceiptaudit.yml b/httprunner/api/consignment_process/admin_operation_get_papermillorderreceiptaudit.yml
index b962168..7f322f5 100644
--- a/httprunner/api/consignment_process/admin_operation_get_papermillorderreceiptaudit.yml
+++ b/httprunner/api/consignment_process/admin_operation_get_papermillorderreceiptaudit.yml
@@ -1,5 +1,7 @@
name: 运营获取审核列表
variables:
+ code: 200
+ message: successful
token: ${ENV(LDAPTOKEN)}
base_url: ${ENV(BURL)}
request:
@@ -10,5 +12,5 @@ request:
X-APP-ID: "1"
Authorization: $token
validate:
- - eq: ["status_code", 200]
- - eq: ["content.message", "successful"]
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/consignment_process/admin_paperMill_get_papermilldetails.yml b/httprunner/api/consignment_process/admin_paperMill_get_papermilldetails.yml
index a20b97e..6289a5a 100644
--- a/httprunner/api/consignment_process/admin_paperMill_get_papermilldetails.yml
+++ b/httprunner/api/consignment_process/admin_paperMill_get_papermilldetails.yml
@@ -1,5 +1,7 @@
name: 获取纸厂信息详情
variables:
+ code: 200
+ message: successful
token: ${ENV(LDAPTOKEN)}
paperMillId: 498208038486937600
base_url: ${ENV(BURL)}
@@ -12,5 +14,5 @@ request:
Authorization: $token
validate:
- - eq: ["status_code", 200]
- - eq: ["content.message", "successful"]
\ No newline at end of file
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/httprunner/api/consignment_process/admin_proxysell_audit_weightnote.yml b/httprunner/api/consignment_process/admin_proxysell_audit_weightnote.yml
index 4d122ae..af90868 100644
--- a/httprunner/api/consignment_process/admin_proxysell_audit_weightnote.yml
+++ b/httprunner/api/consignment_process/admin_proxysell_audit_weightnote.yml
@@ -1,5 +1,7 @@
name: 销售提交榜单审核
variables:
+ code: 200
+ message: successful
token: ${ENV(LDAPTOKEN)}
weightNoteId:
base_url: ${ENV(BURL)}
@@ -11,5 +13,5 @@ request:
X-APP-ID: "1"
Authorization: $token
validate:
- - eq: ["status_code", 200]
- - eq: ["content.message", "successful"]
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/consignment_process/admin_proxysell_cancel_proxyorder.yml b/httprunner/api/consignment_process/admin_proxysell_cancel_proxyorder.yml
index 0ecf956..0e36fb6 100644
--- a/httprunner/api/consignment_process/admin_proxysell_cancel_proxyorder.yml
+++ b/httprunner/api/consignment_process/admin_proxysell_cancel_proxyorder.yml
@@ -1,5 +1,7 @@
name: 销售取消代卖订单
variables:
+ code: 200
+ message: successful
token: ${ENV(ATOKEN)}
orderId: 501102486468300800
base_url: ${ENV(BURL)}
@@ -13,5 +15,5 @@ request:
params:
orderId: $orderId
validate:
- - eq: ["status_code", 200]
- - eq: ["content.message", "successful"]
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/consignment_process/admin_proxysell_get_proxyorder.yml b/httprunner/api/consignment_process/admin_proxysell_get_proxyorder.yml
index f828f10..3a56299 100644
--- a/httprunner/api/consignment_process/admin_proxysell_get_proxyorder.yml
+++ b/httprunner/api/consignment_process/admin_proxysell_get_proxyorder.yml
@@ -1,5 +1,7 @@
name: 销售查看订单详情
variables:
+ code: 200
+ message: successful
token: ${ENV(LDAPTOKEN)}
orderId: 498208038486937600
base_url: ${ENV(BURL)}
@@ -11,5 +13,5 @@ request:
X-APP-ID: "1"
Authorization: $token
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/consignment_process/admin_proxysell_save_weightnote.yml b/httprunner/api/consignment_process/admin_proxysell_save_weightnote.yml
index 23ddba5..42756d9 100644
--- a/httprunner/api/consignment_process/admin_proxysell_save_weightnote.yml
+++ b/httprunner/api/consignment_process/admin_proxysell_save_weightnote.yml
@@ -1,5 +1,7 @@
name: 销售上传代卖磅单信息
variables:
+ code: 200
+ message: successful
token: ${ENV(LDAPTOKEN)}
deductedPoint: 50
deductedWeight: 100
@@ -33,4 +35,5 @@ request:
unitSurcharge: $unitSurcharge
weightDay: $weightDay
validate:
- - eq: ["status_code", 200]
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/consignment_process/admin_proxysell_update_reservation.yml b/httprunner/api/consignment_process/admin_proxysell_update_reservation.yml
index 28e7779..3eb5086 100644
--- a/httprunner/api/consignment_process/admin_proxysell_update_reservation.yml
+++ b/httprunner/api/consignment_process/admin_proxysell_update_reservation.yml
@@ -1,5 +1,7 @@
name: 销售上传代卖预约信息
variables:
+ code: 200
+ message: successful
token: ${ENV(LDAPTOKEN)}
millDeliveryOrderId: "12345678910"
millSupplierId: 498227745344589800
@@ -21,4 +23,5 @@ request:
buyerReservationDate: $buyerReservationDate
unitSurcharge: $unitSurcharge
validate:
- - eq: ["status_code", 200]
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/consignment_process/app_get_papercategory.yml b/httprunner/api/consignment_process/app_get_papercategory.yml
index 35d1ffe..2ea38dc 100644
--- a/httprunner/api/consignment_process/app_get_papercategory.yml
+++ b/httprunner/api/consignment_process/app_get_papercategory.yml
@@ -1,5 +1,7 @@
name: 获取纸厂品类列表
variables:
+ code: 200
+ message: successful
apptoken: ${ENV(ATOKEN)}
paperMillId: 498208038486937600
base_url: ${ENV(AURL)}
@@ -13,5 +15,5 @@ request:
json:
paperMillId: $paperMillId
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/consignment_process/app_get_papermillpapercategorypricelist.yml b/httprunner/api/consignment_process/app_get_papermillpapercategorypricelist.yml
index e55b715..28ada25 100644
--- a/httprunner/api/consignment_process/app_get_papermillpapercategorypricelist.yml
+++ b/httprunner/api/consignment_process/app_get_papermillpapercategorypricelist.yml
@@ -1,5 +1,7 @@
name: 获取纸厂信息
variables:
+ code: 200
+ message: successful
apptoken: ${ENV(ATOKEN)}
base_url: ${ENV(AURL)}
request:
@@ -10,5 +12,5 @@ request:
X-APP-ID: "1"
Authorization: $apptoken
validate:
- - eq: ["status_code", 200]
- - eq: ["content.message", "successful"]
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/httprunner/api/consignment_process/app_proxysell_cancel_order.yml b/httprunner/api/consignment_process/app_proxysell_cancel_order.yml
index 74163dc..3239255 100644
--- a/httprunner/api/consignment_process/app_proxysell_cancel_order.yml
+++ b/httprunner/api/consignment_process/app_proxysell_cancel_order.yml
@@ -1,5 +1,7 @@
name: app用户取消代卖订单
variables:
+ code: 200
+ message: successful
apptoken: ${ENV(ATOKEN)}
orderId: 501094564069773312
base_url: ${ENV(AURL)}
@@ -12,5 +14,5 @@ request:
Authorization: $apptoken
validate:
- - eq: ["status_code", 200]
- - eq: ["content.message", "successful"]
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/consignment_process/app_proxysell_cancel_reservation.yml b/httprunner/api/consignment_process/app_proxysell_cancel_reservation.yml
index 7c45646..f2b258a 100644
--- a/httprunner/api/consignment_process/app_proxysell_cancel_reservation.yml
+++ b/httprunner/api/consignment_process/app_proxysell_cancel_reservation.yml
@@ -1,5 +1,7 @@
name: app用户拒绝预约代卖订单
variables:
+ code: 200
+ message: successful
apptoken: ${ENV(ATOKEN)}
orderId: 501102486468300800
base_url: ${ENV(AURL)}
@@ -12,5 +14,5 @@ request:
Authorization: $apptoken
validate:
- - eq: ["status_code", 200]
- - eq: ["content.message", "successful"]
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/consignment_process/app_proxysell_create_order.yml b/httprunner/api/consignment_process/app_proxysell_create_order.yml
index d425021..4c7922f 100644
--- a/httprunner/api/consignment_process/app_proxysell_create_order.yml
+++ b/httprunner/api/consignment_process/app_proxysell_create_order.yml
@@ -1,5 +1,7 @@
name: app用户创建代卖订单
variables:
+ code: 200
+ message: successful
apptoken: ${ENV(ATOKEN)}
packageNum: 1
plateNumber: 粤A123456
@@ -22,5 +24,5 @@ request:
paperCategoryId: $paperCategoryId
totalEstimatedWeight: $totalEstimatedWeight
validate:
- - eq: ["status_code", 200]
-
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/customer_and_business_relations/admin_customerbizrelation_delete_relation.yml b/httprunner/api/customer_and_business_relations/admin_customerbizrelation_delete_relation.yml
index f88599c..c8fba4c 100644
--- a/httprunner/api/customer_and_business_relations/admin_customerbizrelation_delete_relation.yml
+++ b/httprunner/api/customer_and_business_relations/admin_customerbizrelation_delete_relation.yml
@@ -1,5 +1,7 @@
name: 后台删除客户与业务人员关系
variables:
+ code: 200
+ message: successful
token: ${ENV(LDAPTOKEN)}
id: 23
base_url: ${ENV(BURL)}
@@ -11,5 +13,5 @@ request:
X-APP-ID: "1"
Authorization: $token
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/customer_and_business_relations/admin_customerbizrelation_get_relation.yml b/httprunner/api/customer_and_business_relations/admin_customerbizrelation_get_relation.yml
index c36e5ba..4a2fdb4 100644
--- a/httprunner/api/customer_and_business_relations/admin_customerbizrelation_get_relation.yml
+++ b/httprunner/api/customer_and_business_relations/admin_customerbizrelation_get_relation.yml
@@ -1,5 +1,7 @@
name: 后台查询客户与业务人员关系
variables:
+ code: 200
+ message: successful
token: ${ENV(LDAPTOKEN)}
id: 23
base_url: ${ENV(BURL)}
@@ -11,5 +13,5 @@ request:
X-APP-ID: "1"
Authorization: $token
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/httprunner/api/customer_and_business_relations/admin_customerbizrelation_save_relation.yml b/httprunner/api/customer_and_business_relations/admin_customerbizrelation_save_relation.yml
index 8ab2c74..2f9549d 100644
--- a/httprunner/api/customer_and_business_relations/admin_customerbizrelation_save_relation.yml
+++ b/httprunner/api/customer_and_business_relations/admin_customerbizrelation_save_relation.yml
@@ -1,5 +1,7 @@
name: 后台新增客户与业务人员关系
variables:
+ code: 200
+ message: successful
token: ${ENV(LDAPTOKEN)}
bizUserId: "1"
bizUserName: "admin"
@@ -19,5 +21,5 @@ request:
cusormerId: $cusormerId
customerName: $customerName
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/customer_and_business_relations/admin_customerbizrelation_update_relation.yml b/httprunner/api/customer_and_business_relations/admin_customerbizrelation_update_relation.yml
index 475626b..f24e680 100644
--- a/httprunner/api/customer_and_business_relations/admin_customerbizrelation_update_relation.yml
+++ b/httprunner/api/customer_and_business_relations/admin_customerbizrelation_update_relation.yml
@@ -1,5 +1,7 @@
name: 后台修改客户与业务人员关系
variables:
+ code: 200
+ message: successful
token: ${ENV(LDAPTOKEN)}
bizUserId1: 498985714734731264
bizUserName1: "梁金满"
@@ -17,5 +19,5 @@ request:
bizUserName: $bizUserName1
id: $id
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/customer_and_business_relations/admin_employer_get_employerdetails.yml b/httprunner/api/customer_and_business_relations/admin_employer_get_employerdetails.yml
index db7ca00..94bb9ff 100644
--- a/httprunner/api/customer_and_business_relations/admin_employer_get_employerdetails.yml
+++ b/httprunner/api/customer_and_business_relations/admin_employer_get_employerdetails.yml
@@ -1,5 +1,8 @@
name: 后台获取销售人员列表
variables:
+ code: 200
+ message: successful
+ email: liangjinman@qniao.cn
token: ${ENV(LDAPTOKEN)}
base_url: ${ENV(BURL)}
request:
@@ -10,5 +13,6 @@ request:
X-APP-ID: "1"
Authorization: $token
validate:
- - eq: ["status_code", 200]
- - eq: ["content.data.email", "liangjinman@qniao.cn"]
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
+ - eq: ["content.data.email", $email]
diff --git a/httprunner/api/customer_and_business_relations/admin_employer_list_employerseller.yml b/httprunner/api/customer_and_business_relations/admin_employer_list_employerseller.yml
index 738e547..46f34e5 100644
--- a/httprunner/api/customer_and_business_relations/admin_employer_list_employerseller.yml
+++ b/httprunner/api/customer_and_business_relations/admin_employer_list_employerseller.yml
@@ -1,5 +1,7 @@
name: 后台员工获取个人中心详情
variables:
+ code: 200
+ message: successful
token: ${ENV(LDAPTOKEN)}
base_url: ${ENV(BURL)}
request:
@@ -9,5 +11,6 @@ request:
X-APP-ID: "1"
Authorization: $token
validate:
- - eq: ["status_code", 200]
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/customer_and_business_relations/app_proxysell_bind_relation.yml b/httprunner/api/customer_and_business_relations/app_proxysell_bind_relation.yml
index 151b1b8..942fd67 100644
--- a/httprunner/api/customer_and_business_relations/app_proxysell_bind_relation.yml
+++ b/httprunner/api/customer_and_business_relations/app_proxysell_bind_relation.yml
@@ -1,5 +1,7 @@
name: 创建客户销售绑定关系
variables:
+ code: 200
+ message: successful
apptoken: ${ENV(ATOKEN)}
code: 0051
base_url: ${ENV(AURL)}
@@ -13,5 +15,5 @@ request:
params:
code: $code
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/login/admin_login_password.yml b/httprunner/api/login/admin_login_password.yml
index 32f801f..87fd984 100644
--- a/httprunner/api/login/admin_login_password.yml
+++ b/httprunner/api/login/admin_login_password.yml
@@ -1,5 +1,7 @@
name: 后台管理员登录
variables:
+ code: 200
+ message: successful
phone: admin
password: 90F742E9D98D953B6757A54E50AE1349
rememberMe: null
@@ -14,5 +16,5 @@ request:
password: $password
rememberMe: $rememberMe
validate:
- - eq: ["status_code", 200]
- - {"check": "content.msg", "comparator": "contains", "expect": "success"}
\ No newline at end of file
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/httprunner/api/login/app_login_password.yml b/httprunner/api/login/app_login_password.yml
index 70c9773..f861b10 100644
--- a/httprunner/api/login/app_login_password.yml
+++ b/httprunner/api/login/app_login_password.yml
@@ -1,5 +1,7 @@
name: app密码登录
variables:
+ code: 200
+ message: successful
account: 18219557422
accountType: MOBILE
password: dc483e80a7a0bd9ef71d8cf973673924
@@ -15,5 +17,5 @@ request:
accountType: $accountType
password: $password
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
\ No newline at end of file
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/httprunner/api/login/ldap_login_password.yml b/httprunner/api/login/ldap_login_password.yml
index 9504904..fb9c7fa 100644
--- a/httprunner/api/login/ldap_login_password.yml
+++ b/httprunner/api/login/ldap_login_password.yml
@@ -1,5 +1,7 @@
name: ldap登录
variables:
+ code: 200
+ message: 登陆成功
username: liangjinman@qniao.cn
password: qn123456
base_url: ${ENV(BURL)}
@@ -13,4 +15,5 @@ request:
username: $username
password: $password
validate:
- - eq: ["status_code", 200]
\ No newline at end of file
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/httprunner/api/member/app_member_buymember.yml b/httprunner/api/member/app_member_buymember.yml
index 9b09386..2e9eb03 100644
--- a/httprunner/api/member/app_member_buymember.yml
+++ b/httprunner/api/member/app_member_buymember.yml
@@ -1,5 +1,7 @@
name: app用户购买会员
variables:
+ code: 200
+ message: successful
apptoken: ${ENV(ATOKEN)}
memberExpenseId: 480800871886753792
base_url: ${ENV(AURL)}
@@ -13,5 +15,5 @@ request:
json:
memberExpenseId: $memberExpenseId
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
\ No newline at end of file
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/httprunner/api/member/app_member_getmemberexpenselist.yml b/httprunner/api/member/app_member_getmemberexpenselist.yml
index a7a3f88..3971b06 100644
--- a/httprunner/api/member/app_member_getmemberexpenselist.yml
+++ b/httprunner/api/member/app_member_getmemberexpenselist.yml
@@ -1,5 +1,7 @@
name: app用户获取会员资费列表
variables:
+ code: 200
+ message: successful
apptoken: ${ENV(ATOKEN)}
base_url: ${ENV(AURL)}
request:
@@ -10,5 +12,5 @@ request:
X-APP-ID: "1"
Authorization: $apptoken
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
\ No newline at end of file
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/httprunner/api/mybalance/app_get_balance.yml b/httprunner/api/mybalance/app_get_balance.yml
index ea69970..54e19fc 100644
--- a/httprunner/api/mybalance/app_get_balance.yml
+++ b/httprunner/api/mybalance/app_get_balance.yml
@@ -13,4 +13,4 @@ request:
Authorization: $apptoken
validate:
- eq: ["status_code", $code]
- - eq: ["content.message", $message]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/httprunner/api/mybalance/app_get_billdetail.yml b/httprunner/api/mybalance/app_get_billdetail.yml
index 67a3100..32d82a0 100644
--- a/httprunner/api/mybalance/app_get_billdetail.yml
+++ b/httprunner/api/mybalance/app_get_billdetail.yml
@@ -14,4 +14,4 @@ request:
Authorization: $apptoken
validate:
- eq: ["status_code", $code]
- - eq: ["content.message", $message]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/mybalance/app_get_billlist.yml b/httprunner/api/mybalance/app_get_billlist.yml
index f865773..f3ca538 100644
--- a/httprunner/api/mybalance/app_get_billlist.yml
+++ b/httprunner/api/mybalance/app_get_billlist.yml
@@ -13,4 +13,4 @@ request:
Authorization: $apptoken
validate:
- eq: ["status_code", $code]
- - eq: ["content.message", $message]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/mybalance/app_get_billoverview.yml b/httprunner/api/mybalance/app_get_billoverview.yml
index 9897f16..ac8ce6d 100644
--- a/httprunner/api/mybalance/app_get_billoverview.yml
+++ b/httprunner/api/mybalance/app_get_billoverview.yml
@@ -13,4 +13,4 @@ request:
Authorization: $apptoken
validate:
- eq: ["status_code", $code]
- - eq: ["content.message", $message]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/product/app_product_create.yml b/httprunner/api/product/app_product_create.yml
index 2e56522..f282ce6 100644
--- a/httprunner/api/product/app_product_create.yml
+++ b/httprunner/api/product/app_product_create.yml
@@ -1,5 +1,7 @@
name: app用户创建商品
variables:
+ code: 200
+ message: successful
apptoken: ${ENV(ATOKEN)}
bidType: 1
biddingInterval: ""
@@ -47,5 +49,5 @@ request:
videoUrl: $videoUrl
waterRate: $waterRate
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
\ No newline at end of file
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/product/app_product_delete.yml b/httprunner/api/product/app_product_delete.yml
index a5c6cb5..b537789 100644
--- a/httprunner/api/product/app_product_delete.yml
+++ b/httprunner/api/product/app_product_delete.yml
@@ -1,5 +1,7 @@
name: app用户删除商品
variables:
+ code: 200
+ message: successful
apptoken: ${ENV(ATOKEN)}
productId: 501513092195291136
base_url: ${ENV(AURL)}
@@ -13,5 +15,5 @@ request:
json:
productId: $productId
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
\ No newline at end of file
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/product/app_product_get.yml b/httprunner/api/product/app_product_get.yml
index c503220..d1addb1 100644
--- a/httprunner/api/product/app_product_get.yml
+++ b/httprunner/api/product/app_product_get.yml
@@ -1,5 +1,7 @@
name: app用户查询商品
variables:
+ code: 200
+ message: successful
apptoken: ${ENV(ATOKEN)}
productId: 501513092195291136
base_url: ${ENV(AURL)}
@@ -11,5 +13,5 @@ request:
X-APP-ID: "1"
Authorization: $apptoken
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
\ No newline at end of file
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/product/app_product_getlist.yml b/httprunner/api/product/app_product_getlist.yml
index 5fa3659..2848d05 100644
--- a/httprunner/api/product/app_product_getlist.yml
+++ b/httprunner/api/product/app_product_getlist.yml
@@ -1,5 +1,7 @@
name: app用户获取商品列表
variables:
+ code: 200
+ message: successful
apptoken: ${ENV(ATOKEN)}
base_url: ${ENV(AURL)}
request:
@@ -10,5 +12,5 @@ request:
X-APP-ID: "1"
Authorization: $apptoken
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
\ No newline at end of file
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/product/app_product_update.yml b/httprunner/api/product/app_product_update.yml
index 820ac60..5962a6c 100644
--- a/httprunner/api/product/app_product_update.yml
+++ b/httprunner/api/product/app_product_update.yml
@@ -1,5 +1,7 @@
name: app用户修改商品
variables:
+ code: 200
+ message: successful
apptoken: ${ENV(ATOKEN)}
productId: 501513092195291136
bidType: 1
@@ -49,5 +51,5 @@ request:
videoUrl: $videoUrl
waterRate: $waterRate
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
\ No newline at end of file
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/share/authorize_get_product.yml b/httprunner/api/share/share_get_product.yml
similarity index 82%
rename from httprunner/api/share/authorize_get_product.yml
rename to httprunner/api/share/share_get_product.yml
index f1e3343..bcae498 100644
--- a/httprunner/api/share/authorize_get_product.yml
+++ b/httprunner/api/share/share_get_product.yml
@@ -1,5 +1,7 @@
name: 分享采购商品
variables:
+ code: 200
+ message: successful
token: ${ENV(LDAPTOKEN)}
productId: 501513092195291136
base_url: ${ENV(BURL)}
@@ -11,5 +13,5 @@ request:
X-APP-ID: "1"
Authorization: $token
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
\ No newline at end of file
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/httprunner/api/share/authorize_get_userproduct.yml b/httprunner/api/share/share_get_userproduct.yml
similarity index 75%
rename from httprunner/api/share/authorize_get_userproduct.yml
rename to httprunner/api/share/share_get_userproduct.yml
index cfdb70b..00cf9bc 100644
--- a/httprunner/api/share/authorize_get_userproduct.yml
+++ b/httprunner/api/share/share_get_userproduct.yml
@@ -1,5 +1,7 @@
-name: 分享采购商品
+name: 分享一口价/竞价商品
variables:
+ code: 200
+ message: successful
token: ${ENV(LDAPTOKEN)}
productId: 501513092195291136
base_url: ${ENV(BURL)}
@@ -11,5 +13,5 @@ request:
X-APP-ID: "1"
Authorization: $token
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
\ No newline at end of file
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/httprunner/api/shipping_address/app_create_shippingaddress.yml b/httprunner/api/shipping_address/app_create_shippingaddress.yml
index 1f885b2..8cb1550 100644
--- a/httprunner/api/shipping_address/app_create_shippingaddress.yml
+++ b/httprunner/api/shipping_address/app_create_shippingaddress.yml
@@ -24,4 +24,4 @@ request:
receiver: $receiver
validate:
- eq: ["status_code", $code]
- - eq: ["content.message", $message]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/shipping_address/app_delete_shippingaddress.yml b/httprunner/api/shipping_address/app_delete_shippingaddress.yml
index c4cec03..fbc67d5 100644
--- a/httprunner/api/shipping_address/app_delete_shippingaddress.yml
+++ b/httprunner/api/shipping_address/app_delete_shippingaddress.yml
@@ -16,4 +16,4 @@ request:
shippingAddressId: $shippingAddressId
validate:
- eq: ["status_code", $code]
- - eq: ["content.message", $message]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/shipping_address/app_get_shippingaddressdetails.yml b/httprunner/api/shipping_address/app_get_shippingaddressdetails.yml
index b69de66..9ac80c5 100644
--- a/httprunner/api/shipping_address/app_get_shippingaddressdetails.yml
+++ b/httprunner/api/shipping_address/app_get_shippingaddressdetails.yml
@@ -14,4 +14,4 @@ request:
Authorization: $apptoken
validate:
- eq: ["status_code", $code]
- - eq: ["content.message", $message]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/shipping_address/app_get_shippingaddresslist.yml b/httprunner/api/shipping_address/app_get_shippingaddresslist.yml
index ce0fa0f..feb3631 100644
--- a/httprunner/api/shipping_address/app_get_shippingaddresslist.yml
+++ b/httprunner/api/shipping_address/app_get_shippingaddresslist.yml
@@ -13,4 +13,4 @@ request:
Authorization: $apptoken
validate:
- eq: ["status_code", $code]
- - eq: ["content.message", $message]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/httprunner/api/shipping_address/app_update_shippingaddress.yml b/httprunner/api/shipping_address/app_update_shippingaddress.yml
index 82d477d..a5bf735 100644
--- a/httprunner/api/shipping_address/app_update_shippingaddress.yml
+++ b/httprunner/api/shipping_address/app_update_shippingaddress.yml
@@ -26,4 +26,4 @@ request:
shippingAddressId: $shippingAddressId
validate:
- eq: ["status_code", $code]
- - eq: ["content.message", $message]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/shop/app_shop_edit.yml b/httprunner/api/shop/app_shop_edit.yml
index cac01c8..848cd57 100644
--- a/httprunner/api/shop/app_shop_edit.yml
+++ b/httprunner/api/shop/app_shop_edit.yml
@@ -1,5 +1,7 @@
name: app用户修改店铺信息
variables:
+ code: 200
+ message: successful
apptoken: ${ENV(ATOKEN)}
contactPhoneNo: 18219557422
coverImgUrlList: ["http://medou.oss-cn-shenzhen.aliyuncs.com/bird_user/20090917463455009.jpg"]
@@ -23,5 +25,5 @@ request:
contacts: $contacts
name: $name
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
\ No newline at end of file
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/httprunner/api/shop/app_shop_getinfo.yml b/httprunner/api/shop/app_shop_getinfo.yml
index 133b106..e3a8922 100644
--- a/httprunner/api/shop/app_shop_getinfo.yml
+++ b/httprunner/api/shop/app_shop_getinfo.yml
@@ -1,15 +1,17 @@
-name: app用户完善店铺
+name: app用户查看店铺信息
variables:
+ code: 200
+ message: successful
apptoken: ${ENV(ATOKEN)}
storeId: 18219557422
base_url: ${ENV(AURL)}
request:
url: /recycle-service/get/store-information/$storeId
- method: POST
+ method: GET
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
\ No newline at end of file
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/httprunner/api/shop/app_shop_perfect.yml b/httprunner/api/shop/app_shop_perfect.yml
index 9c04eff..363f7b5 100644
--- a/httprunner/api/shop/app_shop_perfect.yml
+++ b/httprunner/api/shop/app_shop_perfect.yml
@@ -1,5 +1,7 @@
name: app用户完善店铺
variables:
+ code: 200
+ message: successful
apptoken: ${ENV(ATOKEN)}
contactPhoneNo: 18219557422
coverImgUrlList: ["http://medou.oss-cn-shenzhen.aliyuncs.com/bird_user/20090917463455009.jpg"]
@@ -23,5 +25,5 @@ request:
contacts: $contacts
name: $name
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
\ No newline at end of file
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/httprunner/api/shop_settlement/app_store_getstoresettlementlist .yml b/httprunner/api/shop_settlement/app_store_getstoresettlementlist.yml
similarity index 82%
rename from httprunner/api/shop_settlement/app_store_getstoresettlementlist .yml
rename to httprunner/api/shop_settlement/app_store_getstoresettlementlist.yml
index 358d732..8b73670 100644
--- a/httprunner/api/shop_settlement/app_store_getstoresettlementlist .yml
+++ b/httprunner/api/shop_settlement/app_store_getstoresettlementlist.yml
@@ -13,4 +13,4 @@ request:
Authorization: $apptoken
validate:
- eq: ["status_code", $code]
- - eq: ["content.message", $message]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/shop_settlement/app_store_getstoresettlementoverview .yml b/httprunner/api/shop_settlement/app_store_getstoresettlementoverview.yml
similarity index 82%
rename from httprunner/api/shop_settlement/app_store_getstoresettlementoverview .yml
rename to httprunner/api/shop_settlement/app_store_getstoresettlementoverview.yml
index 4e6a8e9..a4d9ecc 100644
--- a/httprunner/api/shop_settlement/app_store_getstoresettlementoverview .yml
+++ b/httprunner/api/shop_settlement/app_store_getstoresettlementoverview.yml
@@ -13,4 +13,4 @@ request:
Authorization: $apptoken
validate:
- eq: ["status_code", $code]
- - eq: ["content.message", $message]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/statistics/admin_stat_getstatuser.yml b/httprunner/api/statistics/admin_stat_getstatuser.yml
index 3072508..47ad2ee 100644
--- a/httprunner/api/statistics/admin_stat_getstatuser.yml
+++ b/httprunner/api/statistics/admin_stat_getstatuser.yml
@@ -1,5 +1,7 @@
name: 后台首页累计用户数
variables:
+ code: 200
+ message: successful
token: ${ENV(LDAPTOKEN)}
startDate: 2020-01-01
endDate: 2020-09-15
@@ -15,5 +17,5 @@ request:
startDate: $startDate
endDate: $endDate
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
\ No newline at end of file
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/httprunner/api/statistics/admin_stat_getstatvip.yml b/httprunner/api/statistics/admin_stat_getstatvip.yml
index 1fe0ce9..53fbcf4 100644
--- a/httprunner/api/statistics/admin_stat_getstatvip.yml
+++ b/httprunner/api/statistics/admin_stat_getstatvip.yml
@@ -1,5 +1,7 @@
name: 后台首页累计会员数
variables:
+ code: 200
+ message: successful
token: ${ENV(LDAPTOKEN)}
startDate: 2020-01-01
endDate: 2020-09-15
@@ -15,5 +17,5 @@ request:
startDate: $startDate
endDate: $endDate
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
\ No newline at end of file
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/httprunner/api/statistics/admin_stat_user.yml b/httprunner/api/statistics/admin_stat_user.yml
index d04936b..719cb20 100644
--- a/httprunner/api/statistics/admin_stat_user.yml
+++ b/httprunner/api/statistics/admin_stat_user.yml
@@ -1,5 +1,7 @@
name: 后台首页统计用户
variables:
+ code: 200
+ message: successful
token: ${ENV(LDAPTOKEN)}
base_url: ${ENV(BURL)}
request:
@@ -10,5 +12,5 @@ request:
X-APP-ID: "1"
Authorization: $token
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
\ No newline at end of file
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/httprunner/api/store_paper/admin_store_create_paper.yml b/httprunner/api/store_paper/admin_store_create_paper.yml
index f3d035e..b91d3f2 100644
--- a/httprunner/api/store_paper/admin_store_create_paper.yml
+++ b/httprunner/api/store_paper/admin_store_create_paper.yml
@@ -1,5 +1,7 @@
name: 后台管理员创建纸品品类
variables:
+ code: 200
+ message: successful
token: ${ENV(LDAPTOKEN)}
description: "描述"
enable: 1
@@ -23,5 +25,5 @@ request:
name: $name
parentId: $parentId
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
\ No newline at end of file
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/httprunner/api/store_paper/admin_store_get_paperCategoryList.yml b/httprunner/api/store_paper/admin_store_get_paperCategoryList.yml
index dc29663..75a2a7e 100644
--- a/httprunner/api/store_paper/admin_store_get_paperCategoryList.yml
+++ b/httprunner/api/store_paper/admin_store_get_paperCategoryList.yml
@@ -1,5 +1,7 @@
name: 后台管理员查询纸品品类列表
variables:
+ code: 200
+ message: successful
token: ${ENV(LDAPTOKEN)}
base_url: ${ENV(BURL)}
request:
@@ -10,5 +12,5 @@ request:
X-APP-ID: "1"
Authorization: $token
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
\ No newline at end of file
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/httprunner/api/store_paper/admin_store_update_paper.yml b/httprunner/api/store_paper/admin_store_update_paper.yml
index 035ed8f..9eb594e 100644
--- a/httprunner/api/store_paper/admin_store_update_paper.yml
+++ b/httprunner/api/store_paper/admin_store_update_paper.yml
@@ -1,5 +1,7 @@
name: 后台管理员编辑纸品品类
variables:
+ code: 200
+ message: successful
token: ${ENV(LDAPTOKEN)}
description: "描述"
enable: 1
@@ -23,5 +25,5 @@ request:
name: $name
parentId: $parentId
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
\ No newline at end of file
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/httprunner/api/store_paper/admin_store_update_paperstatus.yml b/httprunner/api/store_paper/admin_store_update_paperstatus.yml
index 263a5f7..0d0aed2 100644
--- a/httprunner/api/store_paper/admin_store_update_paperstatus.yml
+++ b/httprunner/api/store_paper/admin_store_update_paperstatus.yml
@@ -1,5 +1,7 @@
name: 后台管理员启用/禁用纸品品类
variables:
+ code: 200
+ message: successful
token: ${ENV(LDAPTOKEN)}
paperId: "496396824362487808"
base_url: ${ENV(BURL)}
@@ -11,5 +13,5 @@ request:
X-APP-ID: "1"
Authorization: $token
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
\ No newline at end of file
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/httprunner/api/user_info/app_user_getbaseinfo.yml b/httprunner/api/user_info/app_user_getbaseinfo.yml
index f093f28..8470005 100644
--- a/httprunner/api/user_info/app_user_getbaseinfo.yml
+++ b/httprunner/api/user_info/app_user_getbaseinfo.yml
@@ -12,5 +12,5 @@ request:
X-APP-ID: "1"
Authorization: $apptoken
validate:
- - eq: ["status_code",200]
- - eq: ["content.message",$message]
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/httprunner/api/user_info/app_user_getmemberinfo.yml b/httprunner/api/user_info/app_user_getmemberinfo.yml
index d165978..b63891f 100644
--- a/httprunner/api/user_info/app_user_getmemberinfo.yml
+++ b/httprunner/api/user_info/app_user_getmemberinfo.yml
@@ -13,5 +13,5 @@ request:
Authorization: $apptoken
validate:
- eq: ["status_code", $code]
- - eq: ["content.message", $message]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/user_info/app_user_setsigninpassword.yml b/httprunner/api/user_info/app_user_setsigninpassword.yml
index 18673ab..de7dd6f 100644
--- a/httprunner/api/user_info/app_user_setsigninpassword.yml
+++ b/httprunner/api/user_info/app_user_setsigninpassword.yml
@@ -1,4 +1,4 @@
-name: app用户修改会员信息
+name: app用户修改登录密码
variables:
code: 200
message: successful
@@ -16,5 +16,5 @@ request:
password: $password
validate:
- eq: ["status_code", $code]
- - eq: ["content.message", $message]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/api/user_info/app_user_updatememberinfo.yml b/httprunner/api/user_info/app_user_updatememberinfo.yml
index 0ff0ac5..ca6501b 100644
--- a/httprunner/api/user_info/app_user_updatememberinfo.yml
+++ b/httprunner/api/user_info/app_user_updatememberinfo.yml
@@ -18,5 +18,4 @@ request:
nickname: $nickname
validate:
- eq: ["status_code", $code]
- - eq: ["content.message", $message]
-
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/cases/member/app_member.yml b/httprunner/cases/member/app_member.yml
new file mode 100644
index 0000000..405518f
--- /dev/null
+++ b/httprunner/cases/member/app_member.yml
@@ -0,0 +1,4 @@
+testcases:
+-
+ name: 购买会员测试套件
+ testcase: steps/member/app_member.yml
diff --git a/httprunner/cases/mybalance/app_mybalance.yml b/httprunner/cases/mybalance/app_mybalance.yml
new file mode 100644
index 0000000..1a259ef
--- /dev/null
+++ b/httprunner/cases/mybalance/app_mybalance.yml
@@ -0,0 +1,4 @@
+testcases:
+-
+ name: 我的余额测试套件
+ testcase: steps/mybalance/app_mybalance.yml
diff --git a/httprunner/cases/product/app_product.yml b/httprunner/cases/product/app_product.yml
new file mode 100644
index 0000000..0c7ee84
--- /dev/null
+++ b/httprunner/cases/product/app_product.yml
@@ -0,0 +1,4 @@
+testcases:
+-
+ name: 商品测试套件
+ testcase: steps/product/app_product.yml
diff --git a/httprunner/cases/product/app_product_create.yml b/httprunner/cases/product/app_product_create.yml
new file mode 100644
index 0000000..282e250
--- /dev/null
+++ b/httprunner/cases/product/app_product_create.yml
@@ -0,0 +1,5 @@
+testcases:
+-
+ name: app用户创建商品测试套件
+ testcase: steps/product/app_product_create.yml
+ parameters:
diff --git a/httprunner/cases/product/app_product_delete.yml b/httprunner/cases/product/app_product_delete.yml
new file mode 100644
index 0000000..2da52b8
--- /dev/null
+++ b/httprunner/cases/product/app_product_delete.yml
@@ -0,0 +1,5 @@
+testcases:
+-
+ name: app用户删除商品测试套件
+ testcase: steps/product/app_product_delete.yml
+ parameters:
diff --git a/httprunner/cases/product/app_product_update.yml b/httprunner/cases/product/app_product_update.yml
new file mode 100644
index 0000000..feb1ddf
--- /dev/null
+++ b/httprunner/cases/product/app_product_update.yml
@@ -0,0 +1,5 @@
+testcases:
+-
+ name: app用户修改商品测试套件
+ testcase: steps/product/app_product_update.yml
+ parameters:
diff --git a/httprunner/cases/share/app_share.yml b/httprunner/cases/share/app_share.yml
new file mode 100644
index 0000000..cfedc5a
--- /dev/null
+++ b/httprunner/cases/share/app_share.yml
@@ -0,0 +1,4 @@
+testcases:
+-
+ name: 分享测试套件
+ testcase: steps/share/app_share.yml
diff --git a/httprunner/cases/shipping_address/app_create_shippingaddress.yml b/httprunner/cases/shipping_address/app_create_shippingaddress.yml
new file mode 100644
index 0000000..8519876
--- /dev/null
+++ b/httprunner/cases/shipping_address/app_create_shippingaddress.yml
@@ -0,0 +1,5 @@
+testcases:
+-
+ name: app创建收货地址测试套件
+ testcase: steps/shipping_address/app_create_shippingaddress.yml
+ parameters:
\ No newline at end of file
diff --git a/httprunner/cases/shipping_address/app_delete_shippingaddress.yml b/httprunner/cases/shipping_address/app_delete_shippingaddress.yml
new file mode 100644
index 0000000..b41077a
--- /dev/null
+++ b/httprunner/cases/shipping_address/app_delete_shippingaddress.yml
@@ -0,0 +1,5 @@
+testcases:
+-
+ name: app删除收货地址测试套件
+ testcase: steps/shipping_address/app_delete_shippingaddress.yml
+ parameters:
\ No newline at end of file
diff --git a/httprunner/cases/shipping_address/app_shipping_address.yml b/httprunner/cases/shipping_address/app_shipping_address.yml
new file mode 100644
index 0000000..1dd97b5
--- /dev/null
+++ b/httprunner/cases/shipping_address/app_shipping_address.yml
@@ -0,0 +1,4 @@
+testcases:
+-
+ name: app收货地址测试套件
+ testcase: steps/shipping_address/app_shipping_address.yml
\ No newline at end of file
diff --git a/httprunner/cases/shipping_address/app_update_shippingaddress.yml b/httprunner/cases/shipping_address/app_update_shippingaddress.yml
new file mode 100644
index 0000000..ee38a6a
--- /dev/null
+++ b/httprunner/cases/shipping_address/app_update_shippingaddress.yml
@@ -0,0 +1,5 @@
+testcases:
+-
+ name: app修改收货地址测试套件
+ testcase: steps/shipping_address/app_update_shippingaddress.yml
+ parameters:
\ No newline at end of file
diff --git a/httprunner/cases/shop/app_shop.yml b/httprunner/cases/shop/app_shop.yml
new file mode 100644
index 0000000..a2b2208
--- /dev/null
+++ b/httprunner/cases/shop/app_shop.yml
@@ -0,0 +1,4 @@
+testcases:
+-
+ name: 我的店铺测试套件
+ testcase: steps/shop/app_shop.yml
diff --git a/httprunner/cases/shop/app_shop_edit.yml b/httprunner/cases/shop/app_shop_edit.yml
new file mode 100644
index 0000000..a6f5c31
--- /dev/null
+++ b/httprunner/cases/shop/app_shop_edit.yml
@@ -0,0 +1,5 @@
+testcases:
+-
+ name: app用户修改店铺信息测试套件
+ testcase: steps/shop/app_shop_edit.yml
+ parameters:
diff --git a/httprunner/cases/shop/app_shop_perfect.yml b/httprunner/cases/shop/app_shop_perfect.yml
new file mode 100644
index 0000000..0057706
--- /dev/null
+++ b/httprunner/cases/shop/app_shop_perfect.yml
@@ -0,0 +1,5 @@
+testcases:
+-
+ name: app用户完善店铺测试套件
+ testcase: steps/shop/app_shop_perfect.yml
+ parameters:
diff --git a/httprunner/cases/shop_settlement/app_shop_settlement.yml b/httprunner/cases/shop_settlement/app_shop_settlement.yml
new file mode 100644
index 0000000..2ffc5d7
--- /dev/null
+++ b/httprunner/cases/shop_settlement/app_shop_settlement.yml
@@ -0,0 +1,4 @@
+testcases:
+-
+ name: 店铺结算测试套件
+ testcase: steps/shop_settlement/app_shop_settlement.yml
diff --git a/httprunner/cases/statistics/admin_statistics.yml b/httprunner/cases/statistics/admin_statistics.yml
new file mode 100644
index 0000000..05a7a2c
--- /dev/null
+++ b/httprunner/cases/statistics/admin_statistics.yml
@@ -0,0 +1,4 @@
+testcases:
+-
+ name: 统计测试套件
+ testcase: steps/statistics/admin_statistics.yml
diff --git a/httprunner/cases/store_paper/admin_store_create_paper.yml b/httprunner/cases/store_paper/admin_store_create_paper.yml
new file mode 100644
index 0000000..9e641a4
--- /dev/null
+++ b/httprunner/cases/store_paper/admin_store_create_paper.yml
@@ -0,0 +1,5 @@
+testcases:
+-
+ name: 后台管理员创建纸品品类测试套件
+ testcase: steps/store_paper/admin_store_create_paper.yml
+ parameters:
diff --git a/httprunner/cases/store_paper/admin_store_paper.yml b/httprunner/cases/store_paper/admin_store_paper.yml
new file mode 100644
index 0000000..0541256
--- /dev/null
+++ b/httprunner/cases/store_paper/admin_store_paper.yml
@@ -0,0 +1,4 @@
+testcases:
+-
+ name: 纸品品类测试套件
+ testcase: steps/store_paper/admin_store_paper.yml
diff --git a/httprunner/cases/store_paper/admin_store_update_paper.yml b/httprunner/cases/store_paper/admin_store_update_paper.yml
new file mode 100644
index 0000000..dfe04bb
--- /dev/null
+++ b/httprunner/cases/store_paper/admin_store_update_paper.yml
@@ -0,0 +1,5 @@
+testcases:
+-
+ name: 后台管理员编辑纸品品类测试套件
+ testcase: steps/store_paper/admin_store_update_paper.yml
+ parameters:
diff --git a/httprunner/cases/store_paper/admin_store_update_paperstatus.yml b/httprunner/cases/store_paper/admin_store_update_paperstatus.yml
new file mode 100644
index 0000000..bc51f1a
--- /dev/null
+++ b/httprunner/cases/store_paper/admin_store_update_paperstatus.yml
@@ -0,0 +1,5 @@
+testcases:
+-
+ name: 后台管理员启用/禁用纸品品类测试套件
+ testcase: steps/store_paper/admin_store_update_paperstatus.yml
+ parameters:
diff --git a/httprunner/cases/user_info/app_user_getbaseinfo.yml b/httprunner/cases/user_info/app_user_getbaseinfo.yml
index bdc0f31..87409f8 100644
--- a/httprunner/cases/user_info/app_user_getbaseinfo.yml
+++ b/httprunner/cases/user_info/app_user_getbaseinfo.yml
@@ -1,7 +1,4 @@
testcases:
-
name: 获取app用户基本信息测试套件
- testcase: steps/user_info/app_user_getbaseinfo.yml
- parameters:
- - title-code-message:
- - ["获取app用户基本信息成功",200,"successful"]
+ testcase: steps/user_info/app_user_getinfo.yml
diff --git a/httprunner/cases/user_info/app_user_getmemberinfo.yml b/httprunner/cases/user_info/app_user_getmemberinfo.yml
index ce31d05..328c077 100644
--- a/httprunner/cases/user_info/app_user_getmemberinfo.yml
+++ b/httprunner/cases/user_info/app_user_getmemberinfo.yml
@@ -2,6 +2,3 @@ testcases:
-
name: 获取app用户会员信息测试套件
testcase: steps/user_info/app_user_getmemberinfo.yml
- parameters:
- - title-code-message:
- - ["获取app用户会员信息成功",200,"successful"]
diff --git a/httprunner/cases/user_info/app_user_getshippingaddresslist.yml b/httprunner/cases/user_info/app_user_getshippingaddresslist.yml
deleted file mode 100644
index 884df35..0000000
--- a/httprunner/cases/user_info/app_user_getshippingaddresslist.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-testcases:
--
- name: app获取收货地址列表测试套件
- testcase: steps/user_info/app_get_shippingaddresslist.yml
- parameters:
- - title-code-message:
- - ["app获取收货地址列表成功",200,"successful"]
diff --git a/httprunner/cases/user_info/app_user_setsigninpassword.yml b/httprunner/cases/user_info/app_user_setsigninpassword.yml
new file mode 100644
index 0000000..13c7b8f
--- /dev/null
+++ b/httprunner/cases/user_info/app_user_setsigninpassword.yml
@@ -0,0 +1,6 @@
+testcases:
+-
+ name: 获取app用户会员信息测试套件
+ testcase: steps/user_info/app_user_getmemberinfo.yml
+ parameters:
+
diff --git a/httprunner/cases/user_info/app_user_updatememberinfo.yml b/httprunner/cases/user_info/app_user_updatememberinfo.yml
new file mode 100644
index 0000000..13c7b8f
--- /dev/null
+++ b/httprunner/cases/user_info/app_user_updatememberinfo.yml
@@ -0,0 +1,6 @@
+testcases:
+-
+ name: 获取app用户会员信息测试套件
+ testcase: steps/user_info/app_user_getmemberinfo.yml
+ parameters:
+
diff --git a/httprunner/steps/customer_and_business_relations/admin_customerbizrelation_relation.yml b/httprunner/steps/customer_and_business_relations/admin_customerbizrelation_relation.yml
index 108ca35..7977e87 100644
--- a/httprunner/steps/customer_and_business_relations/admin_customerbizrelation_relation.yml
+++ b/httprunner/steps/customer_and_business_relations/admin_customerbizrelation_relation.yml
@@ -26,7 +26,7 @@ teststeps:
-
name: 获取app用户基本信息的id和name
- api: api/user_info/app_user_getbaseinfo.yml
+ api: api/user_info/app_user_getinfo.yml
variables:
apptoken: QNT $apptoken
extract:
diff --git a/httprunner/steps/customer_and_business_relations/admin_customerbizrelation_save_relation.yml b/httprunner/steps/customer_and_business_relations/admin_customerbizrelation_save_relation.yml
index 9efc94a..00f136b 100644
--- a/httprunner/steps/customer_and_business_relations/admin_customerbizrelation_save_relation.yml
+++ b/httprunner/steps/customer_and_business_relations/admin_customerbizrelation_save_relation.yml
@@ -5,13 +5,13 @@ teststeps:
name: 员工登录获取token
api: api/login/ldap_login_password.yml
extract:
- - accesstoken: headers.Authorization
+ - token: headers.Authorization
-
name: $title
api: api/customer_and_business_relations/admin_customerbizrelation_save_relation.yml
variables:
- accesstoken: $accesstoken
+ accesstoken: $token
bizUserId: $bizUserId
bizUserName: $bizUserName
cusormerId: $cusormerId
diff --git a/httprunner/steps/customer_and_business_relations/admin_customerbizrelation_update_relation.yml b/httprunner/steps/customer_and_business_relations/admin_customerbizrelation_update_relation.yml
index cd9a8c6..513c6c6 100644
--- a/httprunner/steps/customer_and_business_relations/admin_customerbizrelation_update_relation.yml
+++ b/httprunner/steps/customer_and_business_relations/admin_customerbizrelation_update_relation.yml
@@ -5,13 +5,13 @@ teststeps:
name: 员工登录获取token
api: api/login/ldap_login_password.yml
extract:
- - accesstoken: headers.Authorization
+ - token: headers.Authorization
-
name: 获取销售id和name
api: api/customer_and_business_relations/admin_employer_list_employerseller.yml
variables:
- token: $accesstoken
+ token: $token
extract:
- bizUserId: content.data.0.adminId
- bizUserName: content.data.0.name
diff --git a/httprunner/steps/member/app_member.yml b/httprunner/steps/member/app_member.yml
new file mode 100644
index 0000000..3c8aa7d
--- /dev/null
+++ b/httprunner/steps/member/app_member.yml
@@ -0,0 +1,18 @@
+config:
+ name: 购买会员
+teststeps:
+-
+ name: app密码登录获取token
+ api: api/login/app_login_password.yml
+ extract:
+ - apptoken: content.data.token
+-
+ name: app用户获取会员资费列表
+ api: api/member/app_member_getmemberexpenselist.yml
+ variables:
+ apptoken: $apptoken
+-
+ name: app用户购买会员
+ api: api/member/app_member_buymember.yml
+ variables:
+ apptoken: $apptoken
diff --git a/httprunner/steps/mybalance/app_mybalance.yml b/httprunner/steps/mybalance/app_mybalance.yml
new file mode 100644
index 0000000..ade043f
--- /dev/null
+++ b/httprunner/steps/mybalance/app_mybalance.yml
@@ -0,0 +1,28 @@
+config:
+ name: 我的余额
+teststeps:
+-
+ name: app密码登录获取token
+ api: api/login/app_login_password.yml
+ extract:
+ - apptoken: content.data.token
+-
+ name: app获取我的余额
+ api: api/mybalance/app_get_balance.yml
+ variables:
+ apptoken: $apptoken
+-
+ name: app获取账单详情
+ api: api/mybalance/app_get_billdetail.yml
+ variables:
+ apptoken: $apptoken
+-
+ name: app获取账单列表
+ api: api/mybalance/app_get_billlist.yml
+ variables:
+ apptoken: $apptoken
+-
+ name: app获取账单汇总
+ api: api/mybalance/app_get_billoverview.yml
+ variables:
+ apptoken: $apptoken
diff --git a/httprunner/steps/product/app_product.yml b/httprunner/steps/product/app_product.yml
new file mode 100644
index 0000000..1544705
--- /dev/null
+++ b/httprunner/steps/product/app_product.yml
@@ -0,0 +1,33 @@
+config:
+ name: 商品
+teststeps:
+-
+ name: app密码登录获取token
+ api: api/login/app_login_password.yml
+ extract:
+ - apptoken: content.data.token
+-
+ name: app用户创建商品
+ api: api/product/app_product_create.yml
+ variables:
+ apptoken: $apptoken
+-
+ name: app用户获取商品列表
+ api: api/product/app_product_getlist.yml
+ variables:
+ apptoken: $apptoken
+-
+ name: app用户查询商品
+ api: api/product/app_product_get.yml
+ variables:
+ apptoken: $apptoken
+-
+ name: app用户修改商品
+ api: api/product/app_product_update.yml
+ variables:
+ apptoken: $apptoken
+-
+ name: app用户删除商品
+ api: api/product/app_product_delete.yml
+ variables:
+ apptoken: $apptoken
diff --git a/httprunner/steps/product/app_product_create.yml b/httprunner/steps/product/app_product_create.yml
new file mode 100644
index 0000000..c1d6ca3
--- /dev/null
+++ b/httprunner/steps/product/app_product_create.yml
@@ -0,0 +1,13 @@
+config:
+ name: 创建商品
+teststeps:
+-
+ name: app密码登录获取token
+ api: api/login/app_login_password.yml
+ extract:
+ - apptoken: content.data.token
+-
+ name: app用户创建商品
+ api: api/product/app_product_create.yml
+ variables:
+ apptoken: $apptoken
diff --git a/httprunner/steps/product/app_product_delete.yml b/httprunner/steps/product/app_product_delete.yml
new file mode 100644
index 0000000..870a9d5
--- /dev/null
+++ b/httprunner/steps/product/app_product_delete.yml
@@ -0,0 +1,13 @@
+config:
+ name: 删除商品
+teststeps:
+-
+ name: app密码登录获取token
+ api: api/login/app_login_password.yml
+ extract:
+ - apptoken: content.data.token
+-
+ name: app用户删除商品
+ api: api/product/app_product_delete.yml
+ variables:
+ apptoken: $apptoken
diff --git a/httprunner/steps/product/app_product_update.yml b/httprunner/steps/product/app_product_update.yml
new file mode 100644
index 0000000..dff4e03
--- /dev/null
+++ b/httprunner/steps/product/app_product_update.yml
@@ -0,0 +1,14 @@
+config:
+ name: 修改商品
+teststeps:
+-
+ name: app密码登录获取token
+ api: api/login/app_login_password.yml
+ extract:
+ - apptoken: content.data.token
+-
+ name: app用户修改商品
+ api: api/product/app_product_update.yml
+ variables:
+ apptoken: $apptoken
+
diff --git a/httprunner/steps/share/app_share.yml b/httprunner/steps/share/app_share.yml
new file mode 100644
index 0000000..e191031
--- /dev/null
+++ b/httprunner/steps/share/app_share.yml
@@ -0,0 +1,18 @@
+config:
+ name: 分享
+teststeps:
+-
+ name: app密码登录获取token
+ api: api/login/app_login_password.yml
+ extract:
+ - apptoken: content.data.token
+-
+ name: app分享采购商品
+ api: api/share/share_get_product.yml
+ variables:
+ apptoken: $apptoken
+-
+ name: app分享一口价/竞价商品
+ api: api/share/share_get_userproduct.yml
+ variables:
+ apptoken: $apptoken
diff --git a/httprunner/steps/user_info/app_user_getbaseinfo.yml b/httprunner/steps/shipping_address/app_create_shippingaddress.yml
similarity index 58%
rename from httprunner/steps/user_info/app_user_getbaseinfo.yml
rename to httprunner/steps/shipping_address/app_create_shippingaddress.yml
index 73c30f7..6c01ac1 100644
--- a/httprunner/steps/user_info/app_user_getbaseinfo.yml
+++ b/httprunner/steps/shipping_address/app_create_shippingaddress.yml
@@ -1,16 +1,16 @@
config:
- name: app用户基本信息
+ name: 创建收货地址
teststeps:
-
name: app密码登录获取token
api: api/login/app_login_password.yml
extract:
- - token: content.data.token
+ - apptoken: content.data.token
-
- name: 获取app用户基本信息
- api: api/user_info/app_user_getbaseinfo.yml
+ name: app创建收货地址
+ api: api/shipping_address/app_delete_shippingaddress.yml
variables:
- token: QNT $token
+ apptoken: $apptoken
validate:
- eq: ["status_code", $code]
- {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/steps/shipping_address/app_delete_shippingaddress.yml b/httprunner/steps/shipping_address/app_delete_shippingaddress.yml
new file mode 100644
index 0000000..32769ad
--- /dev/null
+++ b/httprunner/steps/shipping_address/app_delete_shippingaddress.yml
@@ -0,0 +1,16 @@
+config:
+ name: 删除收货地址
+teststeps:
+-
+ name: app密码登录获取token
+ api: api/login/app_login_password.yml
+ extract:
+ - apptoken: content.data.token
+-
+ name: app删除收货地址
+ api: api/shipping_address/app_delete_shippingaddress.yml
+ variables:
+ apptoken: $apptoken
+ validate:
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/steps/shipping_address/app_get_shippingaddressdetails.yml b/httprunner/steps/shipping_address/app_get_shippingaddressdetails.yml
new file mode 100644
index 0000000..4fc7b1b
--- /dev/null
+++ b/httprunner/steps/shipping_address/app_get_shippingaddressdetails.yml
@@ -0,0 +1,16 @@
+config:
+ name: 收货地址详情
+teststeps:
+-
+ name: app密码登录获取token
+ api: api/login/app_login_password.yml
+ extract:
+ - apptoken: content.data.token
+-
+ name: app获取收货地址详情
+ api: api/shipping_address/app_get_shippingaddressdetails.yml
+ variables:
+ apptoken: $apptoken
+ validate:
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/steps/user_info/app_user_getshippingaddresslist.yml b/httprunner/steps/shipping_address/app_get_shippingaddresslist.yml
similarity index 67%
rename from httprunner/steps/user_info/app_user_getshippingaddresslist.yml
rename to httprunner/steps/shipping_address/app_get_shippingaddresslist.yml
index 9de9e2b..ebc7ac5 100644
--- a/httprunner/steps/user_info/app_user_getshippingaddresslist.yml
+++ b/httprunner/steps/shipping_address/app_get_shippingaddresslist.yml
@@ -1,16 +1,16 @@
config:
- name: app用户基本信息
+ name: 收货地址列表
teststeps:
-
name: app密码登录获取token
api: api/login/app_login_password.yml
extract:
- - token: content.data.token
+ - apptoken: content.data.token
-
name: app获取收货地址列表
- api: api/user_info/app_get_shippingaddresslist.yml
+ api: api/user_info/app_shipping_address.yml
variables:
- token: $token
+ apptoken: $apptoken
validate:
- eq: ["status_code", $code]
- {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/steps/shipping_address/app_shipping_address.yml b/httprunner/steps/shipping_address/app_shipping_address.yml
new file mode 100644
index 0000000..6c45997
--- /dev/null
+++ b/httprunner/steps/shipping_address/app_shipping_address.yml
@@ -0,0 +1,33 @@
+config:
+ name: 收货地址
+teststeps:
+-
+ name: app密码登录获取token
+ api: api/login/app_login_password.yml
+ extract:
+ - apptoken: content.data.token
+-
+ name: app创建收货地址
+ api: api/shipping_address/app_delete_shippingaddress.yml
+ variables:
+ apptoken: $apptoken
+-
+ name: app获取收货地址列表
+ api: api/user_info/app_shipping_address.yml
+ variables:
+ apptoken: $apptoken
+-
+ name: app获取收货地址详情
+ api: api/shipping_address/app_get_shippingaddressdetails.yml
+ variables:
+ apptoken: $apptoken
+-
+ name: app修改收货地址
+ api: api/shipping_address/app_update_shippingaddress.yml
+ variables:
+ apptoken: $apptoken
+-
+ name: app删除收货地址
+ api: api/shipping_address/app_delete_shippingaddress.yml
+ variables:
+ apptoken: $apptoken
\ No newline at end of file
diff --git a/httprunner/steps/shipping_address/app_update_shippingaddress.yml b/httprunner/steps/shipping_address/app_update_shippingaddress.yml
new file mode 100644
index 0000000..4cbc6c1
--- /dev/null
+++ b/httprunner/steps/shipping_address/app_update_shippingaddress.yml
@@ -0,0 +1,16 @@
+config:
+ name: 修改收货地址
+teststeps:
+-
+ name: app密码登录获取token
+ api: api/login/app_login_password.yml
+ extract:
+ - apptoken: content.data.token
+-
+ name: app修改收货地址
+ api: api/shipping_address/app_update_shippingaddress.yml
+ variables:
+ apptoken: $apptoken
+ validate:
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/steps/shop/app_shop.yml b/httprunner/steps/shop/app_shop.yml
new file mode 100644
index 0000000..ff647fb
--- /dev/null
+++ b/httprunner/steps/shop/app_shop.yml
@@ -0,0 +1,23 @@
+config:
+ name: 我的店铺
+teststeps:
+-
+ name: app密码登录获取token
+ api: api/login/app_login_password.yml
+ extract:
+ - apptoken: content.data.token
+-
+ name: app用户完善店铺
+ api: api/shop/app_shop_perfect.yml
+ variables:
+ apptoken: $apptoken
+-
+ name: app用户查看店铺信息
+ api: api/shop/app_shop_getinfo.yml
+ variables:
+ apptoken: $apptoken
+-
+ name: app用户修改店铺信息
+ api: api/shop/app_shop_edit.yml
+ variables:
+ apptoken: $apptoken
diff --git a/httprunner/steps/shop/app_shop_edit.yml b/httprunner/steps/shop/app_shop_edit.yml
new file mode 100644
index 0000000..848cd57
--- /dev/null
+++ b/httprunner/steps/shop/app_shop_edit.yml
@@ -0,0 +1,29 @@
+name: app用户修改店铺信息
+variables:
+ code: 200
+ message: successful
+ apptoken: ${ENV(ATOKEN)}
+ contactPhoneNo: 18219557422
+ coverImgUrlList: ["http://medou.oss-cn-shenzhen.aliyuncs.com/bird_user/20090917463455009.jpg"]
+ locDetails: 车陂
+ locDistrictId: 440106
+ contacts: 测试
+ name: 测试店铺
+base_url: ${ENV(AURL)}
+request:
+ url: /recycle-service/edit/store-information
+ method: POST
+ headers:
+ Content-Type: "application/json;charset=UTF-8"
+ X-APP-ID: "1"
+ Authorization: $apptoken
+ json:
+ contactPhoneNo: $contactPhoneNo
+ coverImgUrlList: $coverImgUrlList
+ locDetails: $locDetails
+ locDistrictId: $locDistrictId
+ contacts: $contacts
+ name: $name
+validate:
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/httprunner/steps/shop/app_shop_perfect.yml b/httprunner/steps/shop/app_shop_perfect.yml
new file mode 100644
index 0000000..363f7b5
--- /dev/null
+++ b/httprunner/steps/shop/app_shop_perfect.yml
@@ -0,0 +1,29 @@
+name: app用户完善店铺
+variables:
+ code: 200
+ message: successful
+ apptoken: ${ENV(ATOKEN)}
+ contactPhoneNo: 18219557422
+ coverImgUrlList: ["http://medou.oss-cn-shenzhen.aliyuncs.com/bird_user/20090917463455009.jpg"]
+ locDetails: 车陂
+ locDistrictId: 440106
+ contacts: 测试
+ name: 测试店铺
+base_url: ${ENV(AURL)}
+request:
+ url: /recycle-service/update/store-information
+ method: POST
+ headers:
+ Content-Type: "application/json;charset=UTF-8"
+ X-APP-ID: "1"
+ Authorization: $apptoken
+ json:
+ contactPhoneNo: $contactPhoneNo
+ coverImgUrlList: $coverImgUrlList
+ locDetails: $locDetails
+ locDistrictId: $locDistrictId
+ contacts: $contacts
+ name: $name
+validate:
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/httprunner/steps/shop_settlement/app_shop_settlement.yml b/httprunner/steps/shop_settlement/app_shop_settlement.yml
new file mode 100644
index 0000000..ea66de2
--- /dev/null
+++ b/httprunner/steps/shop_settlement/app_shop_settlement.yml
@@ -0,0 +1,18 @@
+config:
+ name: 店铺结算
+teststeps:
+-
+ name: app密码登录获取token
+ api: api/login/app_login_password.yml
+ extract:
+ - apptoken: content.data.token
+-
+ name: app获取结算列表
+ api: api/shop_settlement/app_store_getstoresettlementlist.yml
+ variables:
+ apptoken: $apptoken
+-
+ name: app获取结算汇总
+ api: api/shop_settlement/app_store_getstoresettlementoverview.yml
+ variables:
+ apptoken: $apptoken
diff --git a/httprunner/steps/statistics/admin_statistics.yml b/httprunner/steps/statistics/admin_statistics.yml
new file mode 100644
index 0000000..5f353e2
--- /dev/null
+++ b/httprunner/steps/statistics/admin_statistics.yml
@@ -0,0 +1,32 @@
+config:
+ name: 统计
+teststeps:
+-
+ name: 后台管理员登录获取token
+ api: api/login/ldap_login_password.yml
+ extract:
+ - token: headers.Authorization
+-
+ name: 获取后台首页统计用户
+ api: api/statistics/admin_stat_user.yml
+ variables:
+ token: QNT $token
+ validate:
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
+-
+ name: 后台首页累计用户数
+ api: api/statistics/admin_stat_getstatuser.yml
+ variables:
+ token: QNT $token
+ validate:
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
+-
+ name: 后台首页累计会员数
+ api: api/statistics/admin_stat_getstatvip.yml
+ variables:
+ token: QNT $token
+ validate:
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
diff --git a/httprunner/steps/store_paper/admin_store_create_paper.yml b/httprunner/steps/store_paper/admin_store_create_paper.yml
new file mode 100644
index 0000000..65e521b
--- /dev/null
+++ b/httprunner/steps/store_paper/admin_store_create_paper.yml
@@ -0,0 +1,13 @@
+config:
+ name: 纸品品类
+teststeps:
+-
+ name: 后台管理员登录获取token
+ api: api/login/ldap_login_password.yml
+ extract:
+ - token: headers.Authorization
+-
+ name: 后台管理员创建纸品品类
+ api: api/store_paper/admin_store_create_paper.yml
+ variables:
+ token: $token
diff --git a/httprunner/steps/store_paper/admin_store_paper.yml b/httprunner/steps/store_paper/admin_store_paper.yml
new file mode 100644
index 0000000..e6ca13a
--- /dev/null
+++ b/httprunner/steps/store_paper/admin_store_paper.yml
@@ -0,0 +1,28 @@
+config:
+ name: 纸品品类
+teststeps:
+-
+ name: 后台管理员登录获取token
+ api: api/login/ldap_login_password.yml
+ extract:
+ - token: headers.Authorization
+-
+ name: 后台管理员创建纸品品类
+ api: api/store_paper/admin_store_create_paper.yml
+ variables:
+ token: $token
+-
+ name: 后台管理员查询纸品品类列表
+ api: api/store_paper/admin_store_get_paperCategoryList.yml
+ variables:
+ token: $token
+-
+ name: 后台管理员编辑纸品品类
+ api: api/store_paper/admin_store_update_paper.yml
+ variables:
+ token: $token
+-
+ name: 后台管理员启用/禁用纸品品类
+ api: api/store_paper/admin_store_update_paperstatus.yml
+ variables:
+ token: $token
diff --git a/httprunner/steps/store_paper/admin_store_update_paper.yml b/httprunner/steps/store_paper/admin_store_update_paper.yml
new file mode 100644
index 0000000..025d707
--- /dev/null
+++ b/httprunner/steps/store_paper/admin_store_update_paper.yml
@@ -0,0 +1,13 @@
+config:
+ name: 纸品品类
+teststeps:
+-
+ name: 后台管理员登录获取token
+ api: api/login/ldap_login_password.yml
+ extract:
+ - token: headers.Authorization
+-
+ name: 后台管理员编辑纸品品类
+ api: api/store_paper/admin_store_update_paper.yml
+ variables:
+ token: $token
diff --git a/httprunner/steps/store_paper/admin_store_update_paperstatus.yml b/httprunner/steps/store_paper/admin_store_update_paperstatus.yml
new file mode 100644
index 0000000..25d67e9
--- /dev/null
+++ b/httprunner/steps/store_paper/admin_store_update_paperstatus.yml
@@ -0,0 +1,13 @@
+config:
+ name: 纸品品类
+teststeps:
+-
+ name: 后台管理员登录获取token
+ api: api/login/ldap_login_password.yml
+ extract:
+ - token: headers.Authorization
+-
+ name: 后台管理员启用/禁用纸品品类
+ api: api/store_paper/admin_store_update_paperstatus.yml
+ variables:
+ token: $token
diff --git a/httprunner/steps/user_info/app_user_getinfo.yml b/httprunner/steps/user_info/app_user_getinfo.yml
new file mode 100644
index 0000000..a89eeba
--- /dev/null
+++ b/httprunner/steps/user_info/app_user_getinfo.yml
@@ -0,0 +1,13 @@
+config:
+ name: app用户基本信息
+teststeps:
+-
+ name: app密码登录获取token
+ api: api/login/app_login_password.yml
+ extract:
+ - apptoken: content.data.token
+-
+ name: 获取app用户基本信息
+ api: api/user_info/app_user_getinfo.yml
+ variables:
+ apptoken: QNT $apptoken
diff --git a/httprunner/steps/user_info/app_user_getmemberinfo.yml b/httprunner/steps/user_info/app_user_getmemberinfo.yml
index fd5e69f..ef19d39 100644
--- a/httprunner/steps/user_info/app_user_getmemberinfo.yml
+++ b/httprunner/steps/user_info/app_user_getmemberinfo.yml
@@ -1,16 +1,13 @@
config:
- name: app用户基本信息
+ name: app用户会员信息
teststeps:
-
name: app密码登录获取token
api: api/login/app_login_password.yml
extract:
- - token: content.data.token
+ - apptoken: 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}
+ apptoken: QNT $apptoken
diff --git a/httprunner/steps/user_info/app_user_setsigninpassword.yml b/httprunner/steps/user_info/app_user_setsigninpassword.yml
new file mode 100644
index 0000000..3aeba99
--- /dev/null
+++ b/httprunner/steps/user_info/app_user_setsigninpassword.yml
@@ -0,0 +1,16 @@
+config:
+ name: 修改登录密码
+teststeps:
+-
+ name: app密码登录获取token
+ api: api/login/app_login_password.yml
+ extract:
+ - apptoken: content.data.token
+-
+ name: app用户修改登录密码
+ api: api/user_info/app_user_setsigninpassword.yml
+ variables:
+ apptoken: QNT $apptoken
+ validate:
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/httprunner/steps/user_info/app_user_updatememberinfo.yml b/httprunner/steps/user_info/app_user_updatememberinfo.yml
new file mode 100644
index 0000000..41850e3
--- /dev/null
+++ b/httprunner/steps/user_info/app_user_updatememberinfo.yml
@@ -0,0 +1,16 @@
+config:
+ name: 修改会员信息
+teststeps:
+-
+ name: app密码登录获取token
+ api: api/login/app_login_password.yml
+ extract:
+ - apptoken: content.data.token
+-
+ name: app用户修改会员信息
+ api: api/user_info/app_user_updatememberinfo.yml
+ variables:
+ apptoken: QNT $apptoken
+ validate:
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/zhitongbao/api/bankcard/bankcard_add.yml b/zhitongbao/api/bankcard/bankcard_add.yml
new file mode 100644
index 0000000..cd5dcb1
--- /dev/null
+++ b/zhitongbao/api/bankcard/bankcard_add.yml
@@ -0,0 +1,22 @@
+name: 添加银行卡
+variables:
+ cardNo:
+base_url: ${ENV(URL)}
+
+request:
+ url: payment-settlement-center/bankcard/post/verify/bankverify
+ method: POST
+
+ headers:
+ Content-Type: "application/json;charset=UTF-8"
+ X-APP-ID: "470236309865238555"
+ Authorization: ${ENV(APPTOKEN)}
+ json:
+ cardNo: $cardNo
+ idno: "522328199807132811"
+ name: "张山"
+ phone: "13060994305"
+ type: 4
+ verificationCode: "888888"
+validate:
+ - eq: ["status_code", 200]
\ No newline at end of file
diff --git a/zhitongbao/api/bankcard/bankcard_delete.yml b/zhitongbao/api/bankcard/bankcard_delete.yml
new file mode 100644
index 0000000..0d10d9a
--- /dev/null
+++ b/zhitongbao/api/bankcard/bankcard_delete.yml
@@ -0,0 +1,14 @@
+name: 添加银行卡
+base_url: ${ENV(URL)}
+
+request:
+ url: /payment-settlement-center/bankcard/delete/bankCard/$id
+ method: POST
+
+ headers:
+ Content-Type: "application/json;charset=UTF-8"
+ X-APP-ID: "470236309865238555"
+ Authorization: ${ENV(APPTOKEN)}
+
+validate:
+ - eq: ["status_code", 200]
\ No newline at end of file
diff --git a/zhitongbao/api/bankcard/bankcard_list.yml b/zhitongbao/api/bankcard/bankcard_list.yml
new file mode 100644
index 0000000..bacea3b
--- /dev/null
+++ b/zhitongbao/api/bankcard/bankcard_list.yml
@@ -0,0 +1,14 @@
+name: 用户银行卡查询
+base_url: ${ENV(URL)}
+
+request:
+ url: /payment-settlement-center/bankcard/getBankCardList
+ method: GET
+
+ headers:
+ Content-Type: "application/json;charset=UTF-8"
+ X-APP-ID: "470236309865238555"
+ Authorization: ${ENV(APPTOKEN)}
+
+validate:
+ - eq: ["status_code", 200]
\ No newline at end of file
diff --git a/zhitongbao/api/bankcard/bankcard_verify.yml b/zhitongbao/api/bankcard/bankcard_verify.yml
new file mode 100644
index 0000000..9838174
--- /dev/null
+++ b/zhitongbao/api/bankcard/bankcard_verify.yml
@@ -0,0 +1,15 @@
+name: 银行卡图片识别
+variables:
+ Authorization: ${ENV(APPTOKEN)}
+base_url: ${ENV(URL)}
+request:
+ url: /payment-settlement-center/bankcard/get/ocr/bankcard
+ method: POST
+ headers:
+ Content-Type: "application/json;charset=UTF-8"
+ X-APP-ID: "470236309865238555"
+ Authorization: $Authorization
+ json:
+ base64Image: "https://qncloudtest.oss-cn-shenzhen.aliyuncs.com/saas/1600328167187.jpg"
+validate:
+ - eq: ["status_code", 200]
\ No newline at end of file
diff --git a/zhitongbao/api/login/app_login.yml b/zhitongbao/api/login/app_login.yml
index ad229e1..7311e90 100644
--- a/zhitongbao/api/login/app_login.yml
+++ b/zhitongbao/api/login/app_login.yml
@@ -1,8 +1,10 @@
-name: app账号密码登录
+name: app密码登录
variables:
- account: 13288889434
+ code: 200
+ message: successful
+ account: 19128859944
accountType: MOBILE
- password: 9602bf7a8c5feab91385d1bb9ea70df0
+ password: e10adc3949ba59abbe56e057f20f883e
base_url: ${ENV(URL)}
request:
url: /recycle-service/authorize/by-password
@@ -15,5 +17,5 @@ request:
accountType: $accountType
password: $password
validate:
- - eq: ["status_code", 200]
- - {"check": "content.message", "comparator": "contains", "expect": "successful"}
\ No newline at end of file
+ - eq: ["status_code", $code]
+ - {"check": "content.message", "comparator": "contains", "expect": $message}
\ No newline at end of file
diff --git a/zhitongbao/reports/1600134084.html b/zhitongbao/reports/1600134084.html
deleted file mode 100644
index 866fa0e..0000000
--- a/zhitongbao/reports/1600134084.html
+++ /dev/null
@@ -1,492 +0,0 @@
-
-
-
- - TestReport
-
-
-
-
- Test Report:
-
- Summary
-
-
- | START AT |
- 2020-09-15 09:41:24 |
-
-
- | DURATION |
- 0.369 seconds |
-
-
- | PLATFORM |
- HttpRunner 2.3.0 |
- CPython 3.8.4 |
- Windows-10-10.0.18362-SP0 |
-
-
- | STAT |
- TESTCASES (success/fail) |
- TESTSTEPS (success/fail/error/skip) |
-
-
- | total (details) => |
- 1 (1/0) |
- 1 (1/0/0/0) |
-
-
-
- Details
-
-
-
- 修改会员
-
-
- | TOTAL: 1 |
- SUCCESS: 1 |
- FAILED: 0 |
- ERROR: 0 |
- SKIPPED: 0 |
-
-
- | Status |
- Name |
- Response Time |
- Detail |
-
-
-
-
-
-
- | success |
- 修改会员 |
- 355.38 ms |
-
-
-
-
- log-1
-
-
-
-
-
- |
-
-
-
-
-
\ No newline at end of file
diff --git a/zhitongbao/reports/1600134497.html b/zhitongbao/reports/1600134497.html
deleted file mode 100644
index 2fd85d5..0000000
--- a/zhitongbao/reports/1600134497.html
+++ /dev/null
@@ -1,492 +0,0 @@
-
-
-
- - TestReport
-
-
-
-
- Test Report:
-
- Summary
-
-
- | START AT |
- 2020-09-15 09:48:17 |
-
-
- | DURATION |
- 0.235 seconds |
-
-
- | PLATFORM |
- HttpRunner 2.3.0 |
- CPython 3.8.4 |
- Windows-10-10.0.18362-SP0 |
-
-
- | STAT |
- TESTCASES (success/fail) |
- TESTSTEPS (success/fail/error/skip) |
-
-
- | total (details) => |
- 1 (1/0) |
- 1 (1/0/0/0) |
-
-
-
- Details
-
-
-
- 新增会员
-
-
- | TOTAL: 1 |
- SUCCESS: 1 |
- FAILED: 0 |
- ERROR: 0 |
- SKIPPED: 0 |
-
-
- | Status |
- Name |
- Response Time |
- Detail |
-
-
-
-
-
-
- | success |
- 新增会员 |
- 197.34 ms |
-
-
-
-
- log-1
-
-
-
-
-
- |
-
-
-
-
-
\ No newline at end of file
diff --git a/zhitongbao/reports/1600134541.html b/zhitongbao/reports/1600134541.html
deleted file mode 100644
index d060c97..0000000
--- a/zhitongbao/reports/1600134541.html
+++ /dev/null
@@ -1,516 +0,0 @@
-
-
-
- - TestReport
-
-
-
-
- Test Report:
-
- Summary
-
-
- | START AT |
- 2020-09-15 09:49:01 |
-
-
- | DURATION |
- 0.116 seconds |
-
-
- | PLATFORM |
- HttpRunner 2.3.0 |
- CPython 3.8.4 |
- Windows-10-10.0.18362-SP0 |
-
-
- | STAT |
- TESTCASES (success/fail) |
- TESTSTEPS (success/fail/error/skip) |
-
-
- | total (details) => |
- 1 (0/1) |
- 1 (0/1/0/0) |
-
-
-
- Details
-
-
-
- 删除会员
-
-
- | TOTAL: 1 |
- SUCCESS: 0 |
- FAILED: 1 |
- ERROR: 0 |
- SKIPPED: 0 |
-
-
- | Status |
- Name |
- Response Time |
- Detail |
-
-
-
-
-
-
- | failure |
- 删除会员 |
- 58.55 ms |
-
-
-
-
- log-1
-
-
-
-
- traceback
-
-
-
- |
-
-
-
-
-
\ No newline at end of file
diff --git a/zhitongbao/reports/1600134565.html b/zhitongbao/reports/1600134565.html
deleted file mode 100644
index e7b2c1c..0000000
--- a/zhitongbao/reports/1600134565.html
+++ /dev/null
@@ -1,492 +0,0 @@
-
-
-
- - TestReport
-
-
-
-
- Test Report:
-
- Summary
-
-
- | START AT |
- 2020-09-15 09:49:25 |
-
-
- | DURATION |
- 0.887 seconds |
-
-
- | PLATFORM |
- HttpRunner 2.3.0 |
- CPython 3.8.4 |
- Windows-10-10.0.18362-SP0 |
-
-
- | STAT |
- TESTCASES (success/fail) |
- TESTSTEPS (success/fail/error/skip) |
-
-
- | total (details) => |
- 1 (1/0) |
- 1 (1/0/0/0) |
-
-
-
- Details
-
-
-
- 删除会员
-
-
- | TOTAL: 1 |
- SUCCESS: 1 |
- FAILED: 0 |
- ERROR: 0 |
- SKIPPED: 0 |
-
-
- | Status |
- Name |
- Response Time |
- Detail |
-
-
-
-
-
-
- | success |
- 删除会员 |
- 854.67 ms |
-
-
-
-
- log-1
-
-
-
-
-
- |
-
-
-
-
-
\ No newline at end of file
diff --git a/zhitongbao/reports/1600134650.html b/zhitongbao/reports/1600134650.html
deleted file mode 100644
index 519e502..0000000
--- a/zhitongbao/reports/1600134650.html
+++ /dev/null
@@ -1,492 +0,0 @@
-
-
-
- - TestReport
-
-
-
-
- Test Report:
-
- Summary
-
-
- | START AT |
- 2020-09-15 09:50:50 |
-
-
- | DURATION |
- 0.281 seconds |
-
-
- | PLATFORM |
- HttpRunner 2.3.0 |
- CPython 3.8.4 |
- Windows-10-10.0.18362-SP0 |
-
-
- | STAT |
- TESTCASES (success/fail) |
- TESTSTEPS (success/fail/error/skip) |
-
-
- | total (details) => |
- 1 (1/0) |
- 1 (1/0/0/0) |
-
-
-
- Details
-
-
-
- 删除会员
-
-
- | TOTAL: 1 |
- SUCCESS: 1 |
- FAILED: 0 |
- ERROR: 0 |
- SKIPPED: 0 |
-
-
- | Status |
- Name |
- Response Time |
- Detail |
-
-
-
-
-
-
- | success |
- 删除会员 |
- 255.39 ms |
-
-
-
-
- log-1
-
-
-
-
-
- |
-
-
-
-
-
\ No newline at end of file
diff --git a/zhitongbao/testcases/bankcard.yml b/zhitongbao/testcases/bankcard.yml
new file mode 100644
index 0000000..97d5b8b
--- /dev/null
+++ b/zhitongbao/testcases/bankcard.yml
@@ -0,0 +1,34 @@
+config:
+ name:
+teststeps:
+-
+ name: 登录获取token
+ api: api/login/app_login.yml
+ extract:
+ - token: content.data.token
+-
+ name: OCR自动识别银行卡
+ api: api/bankcard/bankcard_verify.yml
+ variables:
+ Authorization: $token
+ extract:
+ - cardNo: content.data.card_num
+-
+ name: 添加银行卡
+ api: api/bankcard/bankcard_add.yml
+ variables:
+ Authorization: $token
+ cardNo: $cardNo
+-
+ name: 银行卡列表查询
+ api: api/bankcard/bankcard_list.yml
+ variables:
+ Authorization: $token
+ extract:
+ - id: content.data.0.id
+-
+ name: 删除银行卡
+ api: api/bankcard/bankcard_delete.yml
+ variables:
+ Authorization: $token
+ id: $id
\ No newline at end of file