Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
754b76e8
Commit
754b76e8
authored
10 months ago
by
周念东
Browse files
Options
Download
Email Patches
Plain Diff
用例优化
parent
eb6d6ecf
master
No related merge requests found
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
air_case/cmdc_login/多采商城登录/verifycode.png
+0
-0
air_case/cmdc_login/多采商城登录/verifycode.png
air_case/cmdc_portal_reportbill/上报植入台账已上报清单.air/上报植入台账已上报清单.py
+2
-2
...ase/cmdc_portal_reportbill/上报植入台账已上报清单.air/上报植入台账已上报清单.py
air_case/cmdc_portal_reportbill/植入上报未上报列表.air/植入上报未上报列表.py
+5
-5
air_case/cmdc_portal_reportbill/植入上报未上报列表.air/植入上报未上报列表.py
data/cmdc_portal_reportbill/data
+4
-4
data/cmdc_portal_reportbill/data
log/runtime.txt
+1
-1
log/runtime.txt
report/summary.html
+3
-3
report/summary.html
with
15 additions
and
15 deletions
+15
-15
air_case/cmdc_login/多采商城登录/verifycode.png
+
0
-
0
View replaced file @
eb6d6ecf
View file @
754b76e8
1.99 KB
|
W:
0px
|
H:
0px
1.94 KB
|
W:
0px
|
H:
0px
2-up
Swipe
Onion skin
This diff is collapsed.
Click to expand it.
air_case/cmdc_portal_reportbill/上报植入台账已上报清单.air/上报植入台账已上报清单.py
+
2
-
2
View file @
754b76e8
...
...
@@ -2,7 +2,7 @@
__author__
=
"zhouniandong"
"""
case_tag:cmdc_api,cmdc
多采商城
上报植入台账已上报清单,1001-2,1001-2-1,sit,bs
case_tag:cmdc_api,cmdc上报植入台账已上报清单,1001-2,1001-2-1,sit,bs
主数据平台:多采商城上报植入台账接口
"""
...
...
@@ -28,7 +28,7 @@ print(url1)
request_body1
=
commonFuc
().
get_business_data
(
module
,
"payload3"
)
"""
场景:多采商城上报植入台账
用例名称:
多采商城
上报植入台账已上报清单(多采商城上报植入台账)
用例名称:上报植入台账已上报清单(多采商城上报植入台账)
输出:{"success":true,"code":"200","message":"OK","data":"ok"}
"""
# 发送请求
...
...
This diff is collapsed.
Click to expand it.
air_case/cmdc_portal_reportbill/植入上报未上报列表.air/植入上报未上报列表.py
+
5
-
5
View file @
754b76e8
...
...
@@ -23,9 +23,9 @@ password1 = commonFuc().get_business_data(module, "password")
cmdc_access_token1
=
CmdcMaiiLogin
(
username1
,
password1
).
get_token
()
headers1
=
commonFuc
().
get_business_data
(
module
,
"json_headers1"
,
cmdc_access_token1
)
# print(headers1)
url1
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"url
5
"
)
url1
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"url
11
"
)
print
(
url1
)
request_body1
=
commonFuc
().
get_business_data
(
module
,
"payload
5
"
)
request_body1
=
commonFuc
().
get_business_data
(
module
,
"payload
11
"
)
"""
场景:多采商城上报植入
用例名称:植入上报未上报列表(多采商城上报植入)
...
...
@@ -33,16 +33,16 @@ request_body1 = commonFuc().get_business_data(module, "payload5")
"""
# 发送请求
result1
=
requests
.
post
(
url1
,
json
=
request_body1
,
headers
=
headers1
)
#
print("\033[031mresult1============\033[0m",result1)
print
(
"
\033
[031mresult1============
\033
[0m"
,
result1
)
#result1 = json.loads(result1.content)
# 获取接口响应时间
api_time
=
float
(
result1
.
elapsed
.
total_seconds
())
result1
=
json
.
loads
(
result1
.
content
)
result1
[
"api_time"
]
=
api_time
print
(
api_time
)
#
print("\033[031mresult2============\033[0m",result1)
print
(
"
\033
[031mresult2============
\033
[0m"
,
result1
)
# 获取预期结果
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict
5
"
)
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict
11
"
)
#print("\033[031mcheckDict1============\033[0m",checkDict)
# 断言实际结果中是否包含预期结果的内容
commonFuc
().
check_result
(
check_dict
,
result1
)
This diff is collapsed.
Click to expand it.
data/cmdc_portal_reportbill/data
+
4
-
4
View file @
754b76e8
...
...
@@ -89,11 +89,11 @@ checkDict9: {"success":true,"code":"200","message":"OK","data":[],"freshToken":n
#预期结果
checkDict10: {"success":true,"code":"200","message":"OK","data":[],"freshToken":null}
#
信息中心查看详情按ID查询
post
"url11": "/
cms/mall/notice/queryById
"
"payload11": {"
noticeId":"5340033"
}
#
植入上报未上报列表
post
"url11": "/
order/public/getReportList
"
"payload11": {"
productLineCode":"","reportHospitalCodeList":[],"reportAuditStatusList":[],"invoiceStatusList":[],"reportQueryType":"2","companyCode":"00103","reportHospitalCode":"","companyName":"国药集团北京医疗器械有限公司","companyId":3,"customerCode":"1127254","customerName":"国药集团云南医疗器械有限公司","isBack":0,"pageNum":1,"pageSize":10,"pageStart":1
}
#预期结果
checkDict11: {"success":true,"code":"200","message":"
操作成功
"}
checkDict11: {"success":true,"code":"200","message":"
OK
"}
#信息中心查看详情更新状态 post
"url12": "/cms/mall/notice/updateStatus"
...
...
This diff is collapsed.
Click to expand it.
log/runtime.txt
+
1
-
1
View file @
754b76e8
植入上报按客户编码获取医院信息 1719372337311 1719372338246
zhouniandong
上报植入台账待上报清单 1719383682960 1719383684002
zhouniandong
This diff is collapsed.
Click to expand it.
report/summary.html
+
3
-
3
View file @
754b76e8
...
...
@@ -73,11 +73,11 @@
</tr>
<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=
"details-col-elapsed"
>
0.935
</td>
<td
class=
"details-col-elapsed"
>
1.042
</td>
<td
class=
"details-col-elapsed"
>
zhouniandong
</td>
<td
class=
"details-col-elapsed"
>
0.1
74235
</td>
<td
class=
"details-col-elapsed"
>
0.1
82109
</td>
</tr>
</table>
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets