From 54deee55d1d33bddeb504b9eabc83e1ad3ad2d23 Mon Sep 17 00:00:00 2001 From: "liangjinman@qniao.cn" Date: Thu, 17 Sep 2020 19:24:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BC=9A=E5=91=98=E3=80=81?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF=E3=80=81=E6=94=B6=E8=B4=A7?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E3=80=81=E6=88=91=E7=9A=84=E4=BD=99=E9=A2=9D?= =?UTF-8?q?=E3=80=81=E5=BA=97=E9=93=BA=E7=BB=93=E7=AE=97=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/member/app_member_buymember.yml | 17 +++++++++ .../app_member_getmemberexpenselist.yml | 14 +++++++ httprunner/api/mybalance/app_get_balance.yml | 16 ++++++++ .../api/mybalance/app_get_billdetail.yml | 17 +++++++++ httprunner/api/mybalance/app_get_billlist.yml | 16 ++++++++ .../api/mybalance/app_get_billoverview.yml | 16 ++++++++ httprunner/api/product/app_product_create.yml | 36 +++++++++--------- httprunner/api/product/app_product_delete.yml | 2 +- httprunner/api/product/app_product_get.yml | 2 +- .../api/product/app_product_getlist.yml | 14 +++++++ httprunner/api/product/app_product_update.yml | 38 ++++++++++--------- .../api/share/authorize_get_product.yml | 15 ++++++++ .../api/share/authorize_get_userproduct.yml | 15 ++++++++ .../app_create_shippingaddress.yml | 27 +++++++++++++ .../app_delete_shippingaddress.yml | 19 ++++++++++ .../app_get_shippingaddressdetails.yml | 17 +++++++++ .../app_get_shippingaddresslist.yml} | 7 ++-- .../app_update_shippingaddress.yml | 29 ++++++++++++++ .../app_store_getstoresettlementlist .yml | 16 ++++++++ .../app_store_getstoresettlementoverview .yml | 16 ++++++++ .../api/statistics/admin_stat_getstatuser.yml | 19 ++++++++++ .../api/statistics/admin_stat_getstatvip.yml | 19 ++++++++++ httprunner/api/statistics/admin_stat_user.yml | 14 +++++++ .../store_paper/admin_store_create_paper.yml | 10 ++--- .../store_paper/admin_store_update_paper.yml | 10 ++--- ...yml => admin_store_update_paperstatus.yml} | 2 +- .../api/user_info/app_user_getbaseinfo.yml | 2 +- .../user_info/app_user_setsigninpassword.yml | 20 ++++++++++ .../user_info/app_user_updatememberinfo.yml | 22 +++++++++++ httprunner/cases/case.yml | 2 - .../app_user_getshippingaddresslist.yml | 2 +- .../app_user_getshippingaddresslist.yml | 2 +- 32 files changed, 415 insertions(+), 58 deletions(-) create mode 100644 httprunner/api/member/app_member_buymember.yml create mode 100644 httprunner/api/member/app_member_getmemberexpenselist.yml create mode 100644 httprunner/api/mybalance/app_get_balance.yml create mode 100644 httprunner/api/mybalance/app_get_billdetail.yml create mode 100644 httprunner/api/mybalance/app_get_billlist.yml create mode 100644 httprunner/api/mybalance/app_get_billoverview.yml create mode 100644 httprunner/api/product/app_product_getlist.yml create mode 100644 httprunner/api/share/authorize_get_product.yml create mode 100644 httprunner/api/share/authorize_get_userproduct.yml create mode 100644 httprunner/api/shipping_address/app_create_shippingaddress.yml create mode 100644 httprunner/api/shipping_address/app_delete_shippingaddress.yml create mode 100644 httprunner/api/shipping_address/app_get_shippingaddressdetails.yml rename httprunner/api/{user_info/app_user_getshippingaddresslist.yml => shipping_address/app_get_shippingaddresslist.yml} (72%) create mode 100644 httprunner/api/shipping_address/app_update_shippingaddress.yml create mode 100644 httprunner/api/shop_settlement/app_store_getstoresettlementlist .yml create mode 100644 httprunner/api/shop_settlement/app_store_getstoresettlementoverview .yml create mode 100644 httprunner/api/statistics/admin_stat_getstatuser.yml create mode 100644 httprunner/api/statistics/admin_stat_getstatvip.yml create mode 100644 httprunner/api/statistics/admin_stat_user.yml rename httprunner/api/store_paper/{admin_store_delete_paper.yml => admin_store_update_paperstatus.yml} (89%) create mode 100644 httprunner/api/user_info/app_user_setsigninpassword.yml create mode 100644 httprunner/api/user_info/app_user_updatememberinfo.yml diff --git a/httprunner/api/member/app_member_buymember.yml b/httprunner/api/member/app_member_buymember.yml new file mode 100644 index 0000000..9b09386 --- /dev/null +++ b/httprunner/api/member/app_member_buymember.yml @@ -0,0 +1,17 @@ +name: app用户购买会员 +variables: + apptoken: ${ENV(ATOKEN)} + memberExpenseId: 480800871886753792 +base_url: ${ENV(AURL)} +request: + url: /recycle-service/member/buy/member + method: POST + headers: + Content-Type: "application/json;charset=UTF-8" + X-APP-ID: "1" + Authorization: $apptoken + json: + memberExpenseId: $memberExpenseId +validate: + - eq: ["status_code", 200] + - {"check": "content.message", "comparator": "contains", "expect": "successful"} \ No newline at end of file diff --git a/httprunner/api/member/app_member_getmemberexpenselist.yml b/httprunner/api/member/app_member_getmemberexpenselist.yml new file mode 100644 index 0000000..a7a3f88 --- /dev/null +++ b/httprunner/api/member/app_member_getmemberexpenselist.yml @@ -0,0 +1,14 @@ +name: app用户获取会员资费列表 +variables: + apptoken: ${ENV(ATOKEN)} +base_url: ${ENV(AURL)} +request: + url: /recycle-service/member/get/member-expense-list + 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 diff --git a/httprunner/api/mybalance/app_get_balance.yml b/httprunner/api/mybalance/app_get_balance.yml new file mode 100644 index 0000000..ea69970 --- /dev/null +++ b/httprunner/api/mybalance/app_get_balance.yml @@ -0,0 +1,16 @@ +name: app获取我的余额 +variables: + code: 200 + message: successful + apptoken: ${ENV(ATOKEN)} +base_url: ${ENV(AURL)} +request: + url: /recycle-service/get/balance + 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] diff --git a/httprunner/api/mybalance/app_get_billdetail.yml b/httprunner/api/mybalance/app_get_billdetail.yml new file mode 100644 index 0000000..67a3100 --- /dev/null +++ b/httprunner/api/mybalance/app_get_billdetail.yml @@ -0,0 +1,17 @@ +name: app获取账单详情 +variables: + code: 200 + message: successful + apptoken: ${ENV(ATOKEN)} + id: 502939998706864128 +base_url: ${ENV(AURL)} +request: + url: /recycle-service/get/bill-detail/$id + 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] diff --git a/httprunner/api/mybalance/app_get_billlist.yml b/httprunner/api/mybalance/app_get_billlist.yml new file mode 100644 index 0000000..f865773 --- /dev/null +++ b/httprunner/api/mybalance/app_get_billlist.yml @@ -0,0 +1,16 @@ +name: app获取账单列表 +variables: + code: 200 + message: successful + apptoken: ${ENV(ATOKEN)} +base_url: ${ENV(AURL)} +request: + url: /recycle-service/get/bill-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] diff --git a/httprunner/api/mybalance/app_get_billoverview.yml b/httprunner/api/mybalance/app_get_billoverview.yml new file mode 100644 index 0000000..9897f16 --- /dev/null +++ b/httprunner/api/mybalance/app_get_billoverview.yml @@ -0,0 +1,16 @@ +name: app获取账单汇总 +variables: + code: 200 + message: successful + apptoken: ${ENV(ATOKEN)} +base_url: ${ENV(AURL)} +request: + url: /recycle-service/get/bill-overview + 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] diff --git a/httprunner/api/product/app_product_create.yml b/httprunner/api/product/app_product_create.yml index b9f0f8c..2e56522 100644 --- a/httprunner/api/product/app_product_create.yml +++ b/httprunner/api/product/app_product_create.yml @@ -1,24 +1,24 @@ name: app用户创建商品 variables: apptoken: ${ENV(ATOKEN)} - bidType: 0 - biddingInterval: 0 - coverImgUrl: "string" - description: "string" - dopantRate: 0 - firstCategoryId: 0 - imgList: ["string"] - initialUnitPrice: 0 - locCityId: 0 - locDetails: "string" - locDistrictId: 0 - locProvinceId: 0 - lowestNum: 0 - secondCategoryId: 0 - stock: 0 - unitPrice: 0 - videoUrl: "string" - waterRate: 0 + bidType: 1 + biddingInterval: "" + coverImgUrl: "http://medou.oss-cn-shenzhen.aliyuncs.com/bird_user/20090917463455009.jpg" + description: "描述:这个是一口价商品" + dopantRate: 2 + firstCategoryId: 12 + imgList: ["http://medou.oss-cn-shenzhen.aliyuncs.com/bird_user/20090917463455009.jpg"] + initialUnitPrice: 100 + locCityId: 440100 + locDetails: "车陂" + locDistrictId: 440106 + locProvinceId: 440000 + lowestNum: 10 + secondCategoryId: 2 + stock: 1999 + unitPrice: 100 + videoUrl: "" + waterRate: 2 base_url: ${ENV(AURL)} request: url: /recycle-service/create/product diff --git a/httprunner/api/product/app_product_delete.yml b/httprunner/api/product/app_product_delete.yml index d5e965d..a5c6cb5 100644 --- a/httprunner/api/product/app_product_delete.yml +++ b/httprunner/api/product/app_product_delete.yml @@ -1,7 +1,7 @@ name: app用户删除商品 variables: apptoken: ${ENV(ATOKEN)} - productId: 0 + productId: 501513092195291136 base_url: ${ENV(AURL)} request: url: /recycle-service/delete/product diff --git a/httprunner/api/product/app_product_get.yml b/httprunner/api/product/app_product_get.yml index 640f3cc..c503220 100644 --- a/httprunner/api/product/app_product_get.yml +++ b/httprunner/api/product/app_product_get.yml @@ -1,7 +1,7 @@ name: app用户查询商品 variables: apptoken: ${ENV(ATOKEN)} - productId: 0 + productId: 501513092195291136 base_url: ${ENV(AURL)} request: url: /recycle-service/get/product/$productId diff --git a/httprunner/api/product/app_product_getlist.yml b/httprunner/api/product/app_product_getlist.yml new file mode 100644 index 0000000..5fa3659 --- /dev/null +++ b/httprunner/api/product/app_product_getlist.yml @@ -0,0 +1,14 @@ +name: app用户获取商品列表 +variables: + apptoken: ${ENV(ATOKEN)} +base_url: ${ENV(AURL)} +request: + url: /recycle-service/get/product-list + 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 diff --git a/httprunner/api/product/app_product_update.yml b/httprunner/api/product/app_product_update.yml index e926691..820ac60 100644 --- a/httprunner/api/product/app_product_update.yml +++ b/httprunner/api/product/app_product_update.yml @@ -1,24 +1,25 @@ name: app用户修改商品 variables: apptoken: ${ENV(ATOKEN)} - bidType: 0 - biddingInterval: 0 - coverImgUrl: "string" - description: "string" - dopantRate: 0 - firstCategoryId: 0 - imgList: ["string"] - initialUnitPrice: 0 - locCityId: 0 - locDetails: "string" - locDistrictId: 0 - locProvinceId: 0 - lowestNum: 0 - secondCategoryId: 0 - stock: 0 - unitPrice: 0 - videoUrl: "string" - waterRate: 0 + productId: 501513092195291136 + bidType: 1 + biddingInterval: "" + coverImgUrl: "http://medou.oss-cn-shenzhen.aliyuncs.com/bird_user/20090917463455009.jpg" + description: "描述:这个是一口价商品" + dopantRate: 2 + firstCategoryId: 12 + imgList: ["http://medou.oss-cn-shenzhen.aliyuncs.com/bird_user/20090917463455009.jpg"] + initialUnitPrice: 100 + locCityId: 440100 + locDetails: "车陂" + locDistrictId: 440106 + locProvinceId: 440000 + lowestNum: 10 + secondCategoryId: 2 + stock: 1999 + unitPrice: 100 + videoUrl: "" + waterRate: 2 base_url: ${ENV(AURL)} request: url: /recycle-service/update/product @@ -28,6 +29,7 @@ request: X-APP-ID: "1" Authorization: $apptoken json: + productId: $productId bidType: $bidType biddingInterval: $biddingInterval coverImgUrl: $coverImgUrl diff --git a/httprunner/api/share/authorize_get_product.yml b/httprunner/api/share/authorize_get_product.yml new file mode 100644 index 0000000..f1e3343 --- /dev/null +++ b/httprunner/api/share/authorize_get_product.yml @@ -0,0 +1,15 @@ +name: 分享采购商品 +variables: + token: ${ENV(LDAPTOKEN)} + productId: 501513092195291136 +base_url: ${ENV(BURL)} +request: + url: /recycle-service/share/get/product/$productId + 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"} \ No newline at end of file diff --git a/httprunner/api/share/authorize_get_userproduct.yml b/httprunner/api/share/authorize_get_userproduct.yml new file mode 100644 index 0000000..cfdb70b --- /dev/null +++ b/httprunner/api/share/authorize_get_userproduct.yml @@ -0,0 +1,15 @@ +name: 分享采购商品 +variables: + token: ${ENV(LDAPTOKEN)} + productId: 501513092195291136 +base_url: ${ENV(BURL)} +request: + url: /recycle-service/share/get/user-product/$productId + 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"} \ 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 new file mode 100644 index 0000000..1f885b2 --- /dev/null +++ b/httprunner/api/shipping_address/app_create_shippingaddress.yml @@ -0,0 +1,27 @@ +name: app创建收货地址 +variables: + code: 200 + message: successful + apptoken: ${ENV(ATOKEN)} + details: "车陂" + districtId: 440106 + isDefault: 0 + phone: "18219557422" + receiver: "测试" +base_url: ${ENV(AURL)} +request: + url: /recycle-service/create/shipping-address + method: POST + headers: + Content-Type: "application/json;charset=UTF-8" + X-APP-ID: "1" + Authorization: $apptoken + json: + details: $details + districtId: $districtId + isDefault: $isDefault + phone: $phone + receiver: $receiver +validate: + - eq: ["status_code", $code] + - eq: ["content.message", $message] diff --git a/httprunner/api/shipping_address/app_delete_shippingaddress.yml b/httprunner/api/shipping_address/app_delete_shippingaddress.yml new file mode 100644 index 0000000..c4cec03 --- /dev/null +++ b/httprunner/api/shipping_address/app_delete_shippingaddress.yml @@ -0,0 +1,19 @@ +name: app删除收货地址 +variables: + code: 200 + message: successful + apptoken: ${ENV(ATOKEN)} + shippingAddressId: 1298553557582520321 +base_url: ${ENV(AURL)} +request: + url: /recycle-service/delete/shipping-address + method: POST + headers: + Content-Type: "application/json;charset=UTF-8" + X-APP-ID: "1" + Authorization: $apptoken + json: + shippingAddressId: $shippingAddressId +validate: + - eq: ["status_code", $code] + - eq: ["content.message", $message] diff --git a/httprunner/api/shipping_address/app_get_shippingaddressdetails.yml b/httprunner/api/shipping_address/app_get_shippingaddressdetails.yml new file mode 100644 index 0000000..b69de66 --- /dev/null +++ b/httprunner/api/shipping_address/app_get_shippingaddressdetails.yml @@ -0,0 +1,17 @@ +name: app获取收货地址详情 +variables: + code: 200 + message: successful + apptoken: ${ENV(ATOKEN)} + shippingAddressId: 1298553557582520321 +base_url: ${ENV(AURL)} +request: + url: /recycle-service/get/shipping-address-details/$shippingAddressId + 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] diff --git a/httprunner/api/user_info/app_user_getshippingaddresslist.yml b/httprunner/api/shipping_address/app_get_shippingaddresslist.yml similarity index 72% rename from httprunner/api/user_info/app_user_getshippingaddresslist.yml rename to httprunner/api/shipping_address/app_get_shippingaddresslist.yml index 40c5f3e..ce0fa0f 100644 --- a/httprunner/api/user_info/app_user_getshippingaddresslist.yml +++ b/httprunner/api/shipping_address/app_get_shippingaddresslist.yml @@ -8,10 +8,9 @@ request: url: /recycle-service/get/shipping-address-list method: GET headers: - Content-Type: "application/json;charset=UTF-8" - X-APP-ID: "1" - Authorization: $apptoken + Content-Type: "application/json;charset=UTF-8" + X-APP-ID: "1" + Authorization: $apptoken validate: - eq: ["status_code", $code] - eq: ["content.message", $message] - diff --git a/httprunner/api/shipping_address/app_update_shippingaddress.yml b/httprunner/api/shipping_address/app_update_shippingaddress.yml new file mode 100644 index 0000000..82d477d --- /dev/null +++ b/httprunner/api/shipping_address/app_update_shippingaddress.yml @@ -0,0 +1,29 @@ +name: app修改收货地址 +variables: + code: 200 + message: successful + apptoken: ${ENV(ATOKEN)} + details: "车陂" + districtId: 440106 + isDefault: 0 + phone: "18219557422" + receiver: "测试" + shippingAddressId: 1298553557582520321 +base_url: ${ENV(AURL)} +request: + url: /recycle-service/update/shipping-address + method: POST + headers: + Content-Type: "application/json;charset=UTF-8" + X-APP-ID: "1" + Authorization: $apptoken + json: + details: $details + districtId: $districtId + isDefault: $isDefault + phone: $phone + receiver: $receiver + shippingAddressId: $shippingAddressId +validate: + - eq: ["status_code", $code] + - eq: ["content.message", $message] diff --git a/httprunner/api/shop_settlement/app_store_getstoresettlementlist .yml b/httprunner/api/shop_settlement/app_store_getstoresettlementlist .yml new file mode 100644 index 0000000..358d732 --- /dev/null +++ b/httprunner/api/shop_settlement/app_store_getstoresettlementlist .yml @@ -0,0 +1,16 @@ +name: app获取结算列表 +variables: + code: 200 + message: successful + apptoken: ${ENV(ATOKEN)} +base_url: ${ENV(AURL)} +request: + url: /recycle-service/store/get/store-settlement-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] diff --git a/httprunner/api/shop_settlement/app_store_getstoresettlementoverview .yml b/httprunner/api/shop_settlement/app_store_getstoresettlementoverview .yml new file mode 100644 index 0000000..4e6a8e9 --- /dev/null +++ b/httprunner/api/shop_settlement/app_store_getstoresettlementoverview .yml @@ -0,0 +1,16 @@ +name: app获取结算汇总 +variables: + code: 200 + message: successful + apptoken: ${ENV(ATOKEN)} +base_url: ${ENV(AURL)} +request: + url: /recycle-service/store/get/store-settlement-overview + 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] diff --git a/httprunner/api/statistics/admin_stat_getstatuser.yml b/httprunner/api/statistics/admin_stat_getstatuser.yml new file mode 100644 index 0000000..3072508 --- /dev/null +++ b/httprunner/api/statistics/admin_stat_getstatuser.yml @@ -0,0 +1,19 @@ +name: 后台首页累计用户数 +variables: + token: ${ENV(LDAPTOKEN)} + startDate: 2020-01-01 + endDate: 2020-09-15 +base_url: ${ENV(BURL)} +request: + url: /recycle-service/admin/stat/get/stat-user + method: GET + headers: + Content-Type: "application/json;charset=UTF-8" + X-APP-ID: "1" + Authorization: $token + params: + startDate: $startDate + endDate: $endDate +validate: + - eq: ["status_code", 200] + - {"check": "content.message", "comparator": "contains", "expect": "successful"} \ No newline at end of file diff --git a/httprunner/api/statistics/admin_stat_getstatvip.yml b/httprunner/api/statistics/admin_stat_getstatvip.yml new file mode 100644 index 0000000..1fe0ce9 --- /dev/null +++ b/httprunner/api/statistics/admin_stat_getstatvip.yml @@ -0,0 +1,19 @@ +name: 后台首页累计会员数 +variables: + token: ${ENV(LDAPTOKEN)} + startDate: 2020-01-01 + endDate: 2020-09-15 +base_url: ${ENV(BURL)} +request: + url: /recycle-service/admin/stat/get/stat-vip + method: GET + headers: + Content-Type: "application/json;charset=UTF-8" + X-APP-ID: "1" + Authorization: $token + params: + startDate: $startDate + endDate: $endDate +validate: + - eq: ["status_code", 200] + - {"check": "content.message", "comparator": "contains", "expect": "successful"} \ No newline at end of file diff --git a/httprunner/api/statistics/admin_stat_user.yml b/httprunner/api/statistics/admin_stat_user.yml new file mode 100644 index 0000000..d04936b --- /dev/null +++ b/httprunner/api/statistics/admin_stat_user.yml @@ -0,0 +1,14 @@ +name: 后台首页统计用户 +variables: + token: ${ENV(LDAPTOKEN)} +base_url: ${ENV(BURL)} +request: + url: /recycle-service/admin/stat/user + 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"} \ 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 a1b2f4c..f3d035e 100644 --- a/httprunner/api/store_paper/admin_store_create_paper.yml +++ b/httprunner/api/store_paper/admin_store_create_paper.yml @@ -1,12 +1,12 @@ name: 后台管理员创建纸品品类 variables: token: ${ENV(LDAPTOKEN)} - description: "string" - enable: 0 + description: "描述" + enable: 1 id: 0 - level: 0 - name: "string" - parentId: 0 + level: 1 + name: "白纸" + parentId: "" base_url: ${ENV(BURL)} request: url: /recycle-service/admin/store/create/paper diff --git a/httprunner/api/store_paper/admin_store_update_paper.yml b/httprunner/api/store_paper/admin_store_update_paper.yml index dc78655..035ed8f 100644 --- a/httprunner/api/store_paper/admin_store_update_paper.yml +++ b/httprunner/api/store_paper/admin_store_update_paper.yml @@ -1,12 +1,12 @@ name: 后台管理员编辑纸品品类 variables: token: ${ENV(LDAPTOKEN)} - description: "string" - enable: 0 + description: "描述" + enable: 1 id: 0 - level: 0 - name: "string" - parentId: 0 + level: 1 + name: "白纸" + parentId: "" base_url: ${ENV(BURL)} request: url: /recycle-service/admin/store/update/paper diff --git a/httprunner/api/store_paper/admin_store_delete_paper.yml b/httprunner/api/store_paper/admin_store_update_paperstatus.yml similarity index 89% rename from httprunner/api/store_paper/admin_store_delete_paper.yml rename to httprunner/api/store_paper/admin_store_update_paperstatus.yml index b9edf04..263a5f7 100644 --- a/httprunner/api/store_paper/admin_store_delete_paper.yml +++ b/httprunner/api/store_paper/admin_store_update_paperstatus.yml @@ -1,7 +1,7 @@ name: 后台管理员启用/禁用纸品品类 variables: token: ${ENV(LDAPTOKEN)} - paperId: "string" + paperId: "496396824362487808" base_url: ${ENV(BURL)} request: url: /recycle-service/admin/store/update/paper-status/$paperId diff --git a/httprunner/api/user_info/app_user_getbaseinfo.yml b/httprunner/api/user_info/app_user_getbaseinfo.yml index f7caaff..f093f28 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",$code] + - eq: ["status_code",200] - eq: ["content.message",$message] diff --git a/httprunner/api/user_info/app_user_setsigninpassword.yml b/httprunner/api/user_info/app_user_setsigninpassword.yml new file mode 100644 index 0000000..18673ab --- /dev/null +++ b/httprunner/api/user_info/app_user_setsigninpassword.yml @@ -0,0 +1,20 @@ +name: app用户修改会员信息 +variables: + code: 200 + message: successful + apptoken: ${ENV(ATOKEN)} + password: "dc483e80a7a0bd9ef71d8cf973673924" +base_url: ${ENV(AURL)} +request: + url: /recycle-service/user/set/sign-in-password + method: POST + headers: + Content-Type: "application/json;charset=UTF-8" + X-APP-ID: "1" + Authorization: $apptoken + json: + password: $password +validate: + - eq: ["status_code", $code] + - eq: ["content.message", $message] + diff --git a/httprunner/api/user_info/app_user_updatememberinfo.yml b/httprunner/api/user_info/app_user_updatememberinfo.yml new file mode 100644 index 0000000..0ff0ac5 --- /dev/null +++ b/httprunner/api/user_info/app_user_updatememberinfo.yml @@ -0,0 +1,22 @@ +name: app用户修改会员信息 +variables: + code: 200 + message: successful + apptoken: ${ENV(ATOKEN)} + avatar: "" + nickname: "test" +base_url: ${ENV(AURL)} +request: + url: /recycle-service/user/update/member-info + method: POST + headers: + Content-Type: "application/json;charset=UTF-8" + X-APP-ID: "1" + Authorization: $apptoken + json: + avatar: $avatar + nickname: $nickname +validate: + - eq: ["status_code", $code] + - eq: ["content.message", $message] + diff --git a/httprunner/cases/case.yml b/httprunner/cases/case.yml index 54492d4..1c5b6a3 100644 --- a/httprunner/cases/case.yml +++ b/httprunner/cases/case.yml @@ -1,7 +1,5 @@ config: name: "testsuites" - base_url: "http://127.0.0.1:80" - testcases: - name: case one diff --git a/httprunner/cases/user_info/app_user_getshippingaddresslist.yml b/httprunner/cases/user_info/app_user_getshippingaddresslist.yml index e156004..884df35 100644 --- a/httprunner/cases/user_info/app_user_getshippingaddresslist.yml +++ b/httprunner/cases/user_info/app_user_getshippingaddresslist.yml @@ -1,7 +1,7 @@ testcases: - name: app获取收货地址列表测试套件 - testcase: steps/user_info/app_user_getshippingaddresslist.yml + testcase: steps/user_info/app_get_shippingaddresslist.yml parameters: - title-code-message: - ["app获取收货地址列表成功",200,"successful"] diff --git a/httprunner/steps/user_info/app_user_getshippingaddresslist.yml b/httprunner/steps/user_info/app_user_getshippingaddresslist.yml index 37fa27c..9de9e2b 100644 --- a/httprunner/steps/user_info/app_user_getshippingaddresslist.yml +++ b/httprunner/steps/user_info/app_user_getshippingaddresslist.yml @@ -8,7 +8,7 @@ teststeps: - token: content.data.token - name: app获取收货地址列表 - api: api/user_info/app_user_getshippingaddresslist.yml + api: api/user_info/app_get_shippingaddresslist.yml variables: token: $token validate: