Commit 13859465 authored by liguangyu06's avatar liguangyu06
Browse files

提交电商项目用例

parent 13b3da0e
Pipeline #6911 failed with stages
in 3 seconds
#需求单列表接口地址
"url1": "/order/back/listDemand"
json_headers: {
"Content-Type": "application/json",
"Cmdc_access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOjIsInVzZXJOYW1lIjoiYWRtaW4yIiwidGltZSI6MTY5Mzk4ODY5NDg0M30.f71cshaaFyY2w2i53P87etu5-x2Y3gqMVKraUGYndp0"
}
"payload": {"times":[null],"listOrderStatus":[],"productName":null,"demandCode":null,"demandParentCode":null,"customerName":null,"manufacturer":null,"materialCode":null,"sellerCompanyName":null,"produceRegisterNum":null,"productLineName":null,"auditByName":null,"orderSource":null,"changeTypeList":null,"isRebateEdit":null,"jdeType":null,"pageSize":8,"pageStart":1,"orderChangeType":null,"snSgin":null,"changeSign":null,"customerCode":null,"distributionType":null,"busCustomerCode":null,"loginName":null,"cancelSign":0,"shipmentType":null,"startTime":null}
#预期结果
checkDict1: {"code":"401","message":"Unauthorized","success":false}
# 后台运营管理系统登录信息
"username": "admin2"
"password": "Aa123456"
json_headers1: {
"Content-Type": "application/json",
"Cmdc_access_token": "%s"
}
"payload1": {"times":[null],"listOrderStatus":[],"productName":null,"demandCode":null,"demandParentCode":null,"customerName":null,"manufacturer":null,"materialCode":null,"sellerCompanyName":null,"produceRegisterNum":null,"productLineName":null,"auditByName":null,"orderSource":null,"changeTypeList":null,"isRebateEdit":null,"jdeType":null,"pageSize":8,"pageStart":1,"orderChangeType":null,"snSgin":null,"changeSign":null,"customerCode":null,"distributionType":null,"busCustomerCode":null,"loginName":null,"cancelSign":0,"shipmentType":null,"startTime":null}
#预期结果
checkDict2: {"success":true,"code":"200","message":"OK"}
#需求单草稿订单删除接口地址
"url": "/order/back/deleteDraft"
json_headers2: {
"Cmdc_access_token": "%s"
}
#测试场景一:删除已保存订单状态的需求单
"payload2": {"demandId": "6585"}
#预期结果
"checkDict3": {'success': True, 'code': '200', 'message': 'OK', 'data': None, 'freshToken': None}
#测试场景二:重复删除已保存订单状态的需求单或删除其他状态下需求单
"payload3": {"demandId": "11095"}
#预期结果
"checkDict4": {'success': True, 'code': '200', 'message': 'OK', 'data': None, 'freshToken': None}
# 多彩商城登录信息
"username": "Test001"
"password": "Aa123456"
#需求单列表接口地址
"url1": "/order/public/ownListDemand"
#测试场景:获取用户多彩商城对应的需求单列表信息
json_headers1: {
"Cmdc_access_token": "%s",
"Sourcetype": "mall"
}
"payload1": {"sellerCompanyCodes":[],"materialCode":"","productCode":"","productInfoValue":"","manufacturerList":null,"orderNum":"","paymentType":null,"preferenceType":null,"changeSign":null,"mainOrderStatus":null,"shipmentType":null,"pageStart":1,"pageSize":10}
#预期结果
checkDict1: {"success":true,"code":"200","message":"OK"}
#需求单列表取消接口地址
"url2": "/order/public/customerApplyCancel"
#测试场景:在用户多彩商城中的需求单列表进行需求单取消操作
json_headers2: {
"Cmdc_access_token": "%s",
"Sourcetype": "mall"
}
"payload2": {"demandCode":"16936462668632521","remark":"123"}
#预期结果
checkDict2: {"success":true,"code":"200","message":"OK","data":1,"freshToken":null}
#需求单列表删除接口地址
"url3": "/order/mall/deleteDraft"
#测试场景:在用户多彩商城中的需求单列表进行需求单删除操作
json_headers3: {
"Cmdc_access_token": "%s",
"Sourcetype": "mall"
}
"payload3": {"demandParentId":"6297"}
#预期结果
checkDict3: {"success":true,"code":"200","message":"OK","data":null,"freshToken":null}
# 多彩商城登录信息
"username": "Test001"
"password": "Aa123456"
#常购清单列表新增商品接口地址
"url1": "/product/mall/addFrequentPurchase"
#测试场景:新增商品至用户的常购清单列表
json_headers1: {
"Cmdc_access_token": "%s",
"Sourcetype": "mall"
}
# 添加的商品不需要装机日期
"payload1": {"currentCompanyId":2,"productId":"9","quantity":1,"agreementPriceId":0,"price":68.88}
#预期结果
checkDict1: {"success":true,"code":"200","message":"OK","data":"ok"}
#测试场景:新增不存在的商品至用户的常购清单列表
json_headers4: {
"Cmdc_access_token": "%s",
"Sourcetype": "mall"
}
"payload4": {"currentCompanyId":2,"productId":"954647456754764","quantity":1,"agreementPriceId":0,"price":68.88}
#预期结果
checkDict4: {"success":false,"code":"1078","message":"该商品不存在,加入购物车失败","data":null,"freshToken":null}
#获取用户常购清单列表接口地址
"url2": "/product/mall/queryTotalFrequentPurchaseList"
#测试场景:获取用户常购清单列表
json_headers2: {
"Cmdc_access_token": "%s",
"Sourcetype": "mall"
}
"payload2": {"productName":"","materialCode":"","manufacturer":"","licenseCode":"","timeSortStatus":0,"pageSize":100,"pageStart":1}
#预期结果
checkDict2: {"success":true,"code":"200","message":"OK"}
#常购清单商品删除接口地址
"url3": "/product/mall/removeFrequentPurchase"
#测试场景:从用户常购清单列表删除已添加的商品
json_headers3: {
"Cmdc_access_token": "%s",
"Sourcetype": "mall"
}
"payload3": {"frequentPurchaseIdList":["%s"]}
#预期结果
checkDict3: {"success":true,"code":"200","message":"OK","data":"ok"}
# 多彩商城图形验证码url
"getVerifyCode_url": "/sso/getVerifyCode"
# 多彩商城登录地址
"maii_login_url": "/sso/mallLogin"
# 多彩商城登录信息
"do_username": "Test001"
"do_password": "Aa123456"
# 国药运营后台管理系统登录地址
"do_login_url": "/sso/doLogin"
# 多彩商城登录信息
"username": "admin1"
"password": "Aa123456"
#采购单查询接口
"url": "/order/purchase/list"
# 后台运营管理系统登录信息
"username": "admin2"
"password": "Aa123456"
json_headers1: {
"Content-Type": "application/json",
"Cmdc_access_token": "%s"
}
"payload1": {"billNo":"","billStatusList":[],"creator":"","demandNo":"","startTime":"","endTime":"","times":null,"status":null,"pageNumber":1,"pageSize":8}
#预期结果
checkDict2: {"success":true,"code":"200","message":null}
#采购单查询接口
"url": "/user/querySubCustomerPage"
# 后台运营管理系统登录信息
"username": "admin2"
"password": "Aa123456"
json_headers1: {
"Content-Type": "application/json",
"Cmdc_access_token": "%s"
}
"payload1": {"disableSign":0,"status":3,"telephone":"","userNo":"","userName":"","customerCompanyName":"","pageSize":10,"pageStart":1,"total":0}
#预期结果
checkDict2: {"success":true,"code":"200","message":"OK"}
# 默认数据
"enc_user_id": "u779700044448"
"headers": {
'clientInfo': '{"birthday":"2018-11-18","screenwidth":"375","clientVersion":"2.4.2","screenheight":"667","partner":"meitunmama","clientip":"10.180.81.127","traderName":"iPhone 6S","clientAppVersion":"2.4.2","clientYunyuVersion":"7.9.6","clientSystem":"ios","nettype":"wifi","deviceCode":"1f4b3860acfa303bca0407f5128bc5ea0f529fec"}',
'platform': "1",
'signature': "144c6b3c78fc20ad57da1ebdb879615b",
'token': "%s",
'timestamp': "%s",
}
payload: {}
"post_headers": {
'clientInfo': '{"birthday":"2018-11-18","screenwidth":"375","clientVersion":"2.4.2","screenheight":"667","partner":"meitunmama","clientip":"10.180.81.127","traderName":"iPhone 6S","clientAppVersion":"2.4.2","clientYunyuVersion":"7.9.6","clientSystem":"ios","nettype":"wifi","deviceCode":"1f4b3860acfa303bca0407f5128bc5ea0f529fec"}',
'platform': "1",
'signature': "144c6b3c78fc20ad57da1ebdb879615b",
'token': "%s",
'timestamp': "%s",
'Content-Type': "%s",
}
default_contentType: "application/x-www-form-urlencoded"
login_url: "http://backend-web-backend-web.1.java.babytree-test.com/sso-service/login?loginName=test001&pwd=test001@123"
\ No newline at end of file
# 登录内网测试环境地址
"spd3_login_url": "/hospitaltest2/spd/#/login?redirect=/paltform/info0/paltform/product/calatog/paltform/product/calatog"
"username": "//input[@placeholder='请输入用户名']"
"password": "//input[@placeholder='请输入密码']"
"login_button": "//span[text()='登 录']"
"name1": "xhs"
\ No newline at end of file
172.16.10.203 api.babytree-dev.com
172.16.10.203 api-test11.babytree-test.com
172.16.10.203 api.test11.babytree-fpm.com
172.16.10.203 api.babytree.com
# online
10.54.11.80 idb.baobaoshu.com
10.54.11.80 grafana.baobaoshu.com
10.54.11.80 zabbix.baobaoshu.com
10.54.11.80 cacti.baobaoshu.com
10.54.11.80 ucm.baobaoshu.com
10.54.11.80 rundeck.baobaoshu.com dubbo.baobaoshu.com
10.54.11.80 cmdb.baobaoshu.com
10.54.11.80 apollo.baobaoshu.com muse.baobaoshu.com
10.54.11.80 splunk.baobaoshu.com
172.16.10.203 test100.babytree-dev.com g.babytree-dev.com
122.9.41.244 gerrit.babytree-inc.com
10.54.17.153 localproxy.baobaoshu.com
192.168.24.43 gerrit.mtmm.com
10.17.65.22 case.cmic.com.cn
10.54.50.90 sso.baobaoshu.com
8.131.247.52 docp.plt.babytree-inc.com
This diff is collapsed.
"dingding_msg":
- 59d455293168352cecfaa4fb67f2568f3fa54453a2fdb87ce9817c316dc41b57
"select_user_token":
- user
- select token from user.uc_user_token where enc_user_id=%s;
"exp_expert":
- medical
- SELECT id,expert_name,base_service_count,service_count from exp_expert where deleted=%s and status=%s;
"select_memberPrivilegeId":
- user
- SELECT id ,enc_user_id,privilege_type FROM uc_member_privilege WHERE left_times>0 and status=1 AND privilege_type IN (5,12,9,2,10,11) AND start_time <NOW() AND end_time >NOW() AND enc_user_id IN (SELECT enc_user_id FROM uc_user_member WHERE final_end_time >NOW() AND level_type_code=001) order by id desc limit 1
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
File added
This diff is collapsed.
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment