Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
test
autotest-airtest-web-cmdc
Commits
4d6d362d
Commit
4d6d362d
authored
Jun 20, 2024
by
周念东
Browse files
用例优化
parent
bb98a855
Changes
4
Hide whitespace changes
Inline
Side-by-side
data/cmdc_portal_inventory/data
0 → 100644
View file @
4d6d362d
# 多采商城登录信息
"username": "BJ0621"
"password": "Aa123456"
#后台运营管理系统登录信息(子站)
"username1": "Admin00111"
"password1": "Aa123456"
#后台运营管理系统登录信息(总站)
"username2": "Admin"
"password2": "Aa123456"
json_headers: {
"Content-Type": "application/json",
"Cmdc_access_token": "%s"
}
#测试场景:获取用户对应的购物车列表信息
json_headers1: {
"Cmdc_access_token": "%s",
"Sourcetype": "mall"
}
#多采商城库存调拨管理按用户ID获取商业站点 get
"url1": "/user/public/getBusinessSiteByUserId"
"payload1": userId=69
#预期结果
checkDict1: {"success":true,"code":"200","message":"OK"}
#多采商城库存调拨管理列表 get
"url2": "/user/mall/trendManage/list"
"payload2": companyCode=00103&type=2
#预期结果
checkDict2: {"success":true,"code":"200","message":"OK"}
#多采商城库存调拨管理商品库存列表 get
"url3": "/order/mall/abbotImportInv/totalList"
"payload3": productLineCode=&companyCode=00103&tabType=&companyName=%E5%9B%BD%E8%8D%AF%E9%9B%86%E5%9B%A2%E5%8C%97%E4%BA%AC%E5%8C%BB%E7%96%97%E5%99%A8%E6%A2%B0%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8&companyId=3&customerCode=1127254&customerName=%E5%9B%BD%E8%8D%AF%E9%9B%86%E5%9B%A2%E4%BA%91%E5%8D%97%E5%8C%BB%E7%96%97%E5%99%A8%E6%A2%B0%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8&deleteSign=0
#预期结果
checkDict3: {"success":true,"code":"200","message":"OK"}
#多采商城库存调拨管理分页列表 get
"url4": "/order/mall/abbotImportInv/list"
"payload4": productLineCode=&companyCode=00103&tabType=&companyName=%E5%9B%BD%E8%8D%AF%E9%9B%86%E5%9B%A2%E5%8C%97%E4%BA%AC%E5%8C%BB%E7%96%97%E5%99%A8%E6%A2%B0%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8&companyId=3&customerCode=1127254&customerName=%E5%9B%BD%E8%8D%AF%E9%9B%86%E5%9B%A2%E4%BA%91%E5%8D%97%E5%8C%BB%E7%96%97%E5%99%A8%E6%A2%B0%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8&pageNum=1&pageSize=10&pageStart=1&deleteSign=0
#预期结果
checkDict4: {"success":true,"code":"200","message":"OK"}
#多采商城库存调拨管理全部调拨列表 get
"url5": "/order/mall/authorizationCustomer/list"
"payload5": companyCode=00103
#预期结果
checkDict5: {"success":true,"code":"200","message":"OK","data":[],"freshToken":null}
#多采商城库存调拨管理全部调拨分页列表 get
"url6": "/order/mall/abbotAllocation/list"
"payload6": tabType=&productLineCode=&companyCode=00103&companyName=%E5%9B%BD%E8%8D%AF%E9%9B%86%E5%9B%A2%E5%8C%97%E4%BA%AC%E5%8C%BB%E7%96%97%E5%99%A8%E6%A2%B0%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8&companyId=3&customerCode=1127254&customerName=%E5%9B%BD%E8%8D%AF%E9%9B%86%E5%9B%A2%E4%BA%91%E5%8D%97%E5%8C%BB%E7%96%97%E5%99%A8%E6%A2%B0%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8&applyTimeStart=&applyTimeEnd=&deliveryTimeStart=&deliveryTimeEnd=&auditTimeStart=&auditTimeEnd=&pageNum=1&pageSize=10&pageStart=1
#预期结果
checkDict6: {"success":true,"code":"200","message":"OK","data":{"total":0,"list":[],"pageNum":1,"pageSize":10,"size":0,"startRow":0,"endRow":0,"pages":0,"prePage":0,"nextPage":0,"isFirstPage":true,"isLastPage":true,"hasPreviousPage":false,"hasNextPage":false,"navigatePages":8,"navigatepageNums":[],"navigateFirstPage":0,"navigateLastPage":0},"freshToken":null}
#多采商城库存调拨管理待审核调拨列表 get
"url7": "/order/mall/authorizationCustomer/list"
"payload7": companyCode=00103
#预期结果
checkDict7: {"success":true,"code":"200","message":"OK","data":[],"freshToken":null}
#多采商城库存调拨管理待审核调拨分页列表 get
"url8": "/order/mall/abbotAllocation/list"
"payload8": tabType=2&productLineCode=&companyCode=00103&companyName=&companyId=3&customerCode=1127254&customerName=&applyTimeStart=&applyTimeEnd=&deliveryTimeStart=&deliveryTimeEnd=&auditTimeStart=&auditTimeEnd=&pageNum=1&pageSize=10&pageStart=1
#预期结果
checkDict8: {"success":true,"code":"200","message":"OK","data":{"total":0,"list":[],"pageNum":1,"pageSize":10,"size":0,"startRow":0,"endRow":0,"pages":0,"prePage":0,"nextPage":0,"isFirstPage":true,"isLastPage":true,"hasPreviousPage":false,"hasNextPage":false,"navigatePages":8,"navigatepageNums":[],"navigateFirstPage":0,"navigateLastPage":0},"freshToken":null}
#多采商城库存调拨管理审核驳回列表 get
"url9": "/order/mall/authorizationCustomer/list"
"payload9": companyCode=00103
#预期结果
checkDict9: {"success":true,"code":"200","message":"OK"}
#多采商城库存调拨管理审核驳回分页列表 get
"url10": "/order/mall/abbotAllocation/list"
"payload10": tabType=2&productLineCode=&companyCode=00103&companyName=&companyId=3&customerCode=1127254&customerName=&applyTimeStart=&applyTimeEnd=&deliveryTimeStart=&deliveryTimeEnd=&auditTimeStart=&auditTimeEnd=&pageNum=1&pageSize=10&pageStart=1
#预期结果
checkDict10: {"success":true,"code":"200","message":"OK",}
#多采商城库存调拨管理待收货调拨列表 get
"url11": "/order/mall/authorizationCustomer/list"
"payload11": companyCode=00103
#预期结果
checkDict11: {"success":true,"code":"200","message":"OK"}
#多采商城库存调拨管理待收货调拨分页列表 get
"url12": "/order/mall/abbotAllocation/list"
"payload12": tabType=2&productLineCode=&companyCode=00103&companyName=&companyId=3&customerCode=1127254&customerName=&applyTimeStart=&applyTimeEnd=&deliveryTimeStart=&deliveryTimeEnd=&auditTimeStart=&auditTimeEnd=&pageNum=1&pageSize=10&pageStart=1
#预期结果
checkDict12: {"success":true,"code":"200","message":"OK"}
data/cmdc_portal_reporting/data
0 → 100644
View file @
4d6d362d
# 多采商城登录信息
"username": "BJ0621"
"password": "Aa123456"
#后台运营管理系统登录信息(子站)
"username1": "Admin00111"
"password1": "Aa123456"
#后台运营管理系统登录信息(总站)
"username2": "Admin"
"password2": "Aa123456"
json_headers: {
"Content-Type": "application/json",
"Cmdc_access_token": "%s"
}
#测试场景:获取用户对应的购物车列表信息
json_headers1: {
"Cmdc_access_token": "%s",
"Sourcetype": "mall"
}
#多采商城雅培报量管理按用户ID获取商业站点 get
"url1": "/user/public/getBusinessSiteByUserId"
"payload1": userId=69
#预期结果
checkDict1: {"success":true,"code":"200","message":"OK"}
#多采商城雅培报量管理列表 get
"url2": "/user/mall/trendManage/list"
"payload2": companyCode=00103&type=2
#预期结果
checkDict2: {"success":true,"code":"200","message":"OK"}
#多采商城雅培报量管理获取买家名称 get
"url3": "/order/public/getBuyerName"
"payload3": companyCode=00103&customerCode=1127254&productLineCode=
#预期结果
checkDict3: {"success":true,"code":"200","message":"OK"}
#多采商城雅培报量管理截止时间提示 get
"url4": "/order/public/cutOffPrompt"
"payload4": companyCode=00103&productLineCode=&customerCode=1127254
#预期结果
checkDict4: {"success":true,"code":"200","message":"OK","data":{"currentMonth":null,"monthCutOffStr":null},"freshToken":null}
#多采商城雅培报量管理获取雅培报量审计统计信息 post
"url5": "/order/public/getAbbotReportAuditStatistics"
"payload5": {"companyCode":"00103","productLineCode":""}
#预期结果
checkDict5: {"success":true,"code":"200","message":"OK","data":{"auditBeforeCount":0,"auditRefuseCount":0,"allocationCount":0},"freshToken":null}
#多采商城雅培报量管理获取雅培报量列表
"url6": "/user/mall/trendManage/list"
"payload6": companyCode=00103&type=2
#预期结果
checkDict6: {"success":true,"code":"200","message":"OK","data":[],"freshToken":null}
#雅培报量管理获取雅培报量待审核列表 post
"url7": "/order/public/getAbbotReportList"
"payload7": {"handleStatus":"","reportAuditStatus":"","productLineCode":"","companyCode":"00103","tabType":2,"companyName":"国药集团北京医疗器械有限公司","companyId":3,"customerCode":"1127254","customerName":"国药集团云南医疗器械有限公司","active":"tab2","pageNum":1,"pageSize":10,"pageStart":1}
#预期结果
checkDict7: {"success":true,"code":"200","message":"OK","data":{"total":0,"list":[],"pageNum":1,"pageSize":0,"size":0,"startRow":0,"endRow":0,"pages":0,"prePage":0,"nextPage":0,"isFirstPage":true,"isLastPage":true,"hasPreviousPage":false,"hasNextPage":false,"navigatePages":8,"navigatepageNums":[],"navigateFirstPage":0,"navigateLastPage":0},"freshToken":null}
#雅培报量管理获取雅培报量待审核审计统计信息 post
"url8": "/order/public/getAbbotReportAuditStatistics"
"payload8": {"companyCode":"00103","productLineCode":""}
#预期结果
checkDict8: {"success":true,"code":"200","message":"OK","data":{"auditBeforeCount":0,"auditRefuseCount":0,"allocationCount":0},"freshToken":null}
#雅培报量管理获取雅培报量已驳回列表 post
"url9": "/order/public/getAbbotReportList"
"payload9": {"handleStatus":"","reportAuditStatus":"","productLineCode":"","companyCode":"00103","tabType":3,"companyName":"国药集团北京医疗器械有限公司","companyId":3,"customerCode":"1127254","customerName":"国药集团云南医疗器械有限公司","active":"tab3","pageNum":1,"pageSize":10,"pageStart":1}
#预期结果
checkDict9: {"success":true,"code":"200","message":"OK"}
#多采商城雅培报量管理获取雅培报量已驳回审计统计信息 post
"url10": "/order/public/getAbbotReportAuditStatistics"
"payload10": {"companyCode":"00103","productLineCode":""}
#预期结果
checkDict10: {"success":true,"code":"200","message":"OK"}
#多采商城雅培报量管理查看全年报量截止日 post
"url11": "/order/public/getYearCutOffList"
"payload11": {"companyCode":"00102","productLineCode":"YP001"}
#预期结果
checkDict11: {"success":true,"code":"200","message":"OK"}
#信息中心查看详情更新状态 post
"url12": "/cms/mall/notice/updateStatus"
"payload12": {"noticeId":"5340032"}
#预期结果
checkDict12: {"success":false,"code":"200","message":"没有可更新数据","data":null,"freshToken":null}
checkDict21: {"success":false,"code":"200","message":"商品添加完毕,本次添加商品【1】条,成功【0】条,失败【1】条:\n第1行,该商品不存在!","data":[],"freshToken":null}
#测试场景二:必填字段缺失
"payload22": {"currentCompanyId":"","buyerCartList":[{"quantity":"1"}],"excelCopySort":0,"companyId":3}
#预期结果
checkDict22: {"success":false,"code":"200","message":"商品添加完毕,本次添加商品【1】条,成功【0】条,失败【1】条:\n第1行,产品编码或物料编码为空!","data":[],"freshToken":null}
#测试场景三:子站点不存在
"payload24": {"currentCompanyId":"","buyerCartList":[{"productCode":"10231310","materialCode":"","quantity":"1"}],"excelCopySort":0,"companyId":"%d"}
#预期结果
checkDict24: {"success":false,"code":"999","message":"找不到该公司的首营信息","data":null,"freshToken":null}
#测试场景四:添加商品成功
"payload23": {"currentCompanyId":"","buyerCartList":[{"productCode":"%s","materialCode":"","quantity":"1"}],"excelCopySort":0,"companyId":"%s"}
#预期结果
checkDict23: {"success":False,"code":"200","message":"商品添加完毕,本次添加商品【1】条,成功【1】条,失败【0】条。"}
log/runtime.txt
View file @
4d6d362d
缺货篮管理查询已处理数据 1718765784048 1718765785173
zhouniandong
多采商城库存调拨管理全部调拨分页列表 1718850972235 1718850973044
zhouniandong
report/summary.html
View file @
4d6d362d
...
@@ -73,9 +73,9 @@
...
@@ -73,9 +73,9 @@
</tr>
</tr>
<tr
width=
"600"
>
<tr
width=
"600"
>
<td
class=
"details-col-elapsed"
><a
href=
'../log/
缺货篮管理查询已处理数据
/log.html'
target=
'_blank'
>
缺货篮管理查询已处理数据
</a></td>
<td
class=
"details-col-elapsed"
><a
href=
'../log/
多采商城库存调拨管理全部调拨分页列表
/log.html'
target=
'_blank'
>
多采商城库存调拨管理全部调拨分页列表
</a></td>
<td
class=
"success"
>
成功
</td>
<td
class=
"success"
>
成功
</td>
<td
class=
"details-col-elapsed"
>
1.125
</td>
<td
class=
"details-col-elapsed"
>
0.809
</td>
<td
class=
"details-col-elapsed"
>
zhouniandong
</td>
<td
class=
"details-col-elapsed"
>
zhouniandong
</td>
<td
class=
"details-col-elapsed"
>
0
</td>
<td
class=
"details-col-elapsed"
>
0
</td>
</tr>
</tr>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment