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-spd
Commits
371c1146
Commit
371c1146
authored
Sep 13, 2023
by
xiao-hesheng
Browse files
优化脚本
parent
31f1d700
Changes
3
Hide whitespace changes
Inline
Side-by-side
air_case/mdm3-hs/医院注册_注册时医院已存在.air/医院注册_注册时医院已存在.py
0 → 100644
View file @
371c1146
# -*- encoding=utf8 -*-
__author__
=
"xiaohesheng"
"""
case_tag:api,mdm-web,医院注册时医院已存在,id2249,id2249-3,sit,on,10086
主数据平台:医院注册时医院已存在
"""
from
common.common_func
import
commonFuc
module
=
"mdm3-hs"
# 注册企业
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"insertHosRegistInfo_url"
)
# #获取请求头信息
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
))
h_name
=
commonFuc
().
get_business_data
(
module
,
"name1"
)
# 获取前缀name
h_name
=
h_name
+
commonFuc
().
randomString
(
5
)
# 随机数生成拼接企业名称
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload"
,
h_name
,
h_name
,
h_name
,
h_name
,
h_name
,
h_name
,
h_name
,
h_name
)
# 发送请求
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
# 发送请求
result1
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
#获取接口返回数据
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict1"
)
#断言实际结果中是否包含预期结果的内容
commonFuc
().
check_result
(
check_dict
,
result1
)
air_case/mdm3-pim/产品新增和审核通过.air/产品新增和审核通过.py
View file @
371c1146
...
...
@@ -224,5 +224,4 @@ def p_m_a():
print
(
'username'
,
username
)
return
username
,
goodsName
,
module
# p_m_a()
FileUtils
().
w_info
(
p_m_a
(),
'产品新增'
)
common/message
0 → 100644
View file @
371c1146
loginusername1:
aaaa: aaaa
bbbbbb: bbbbbb
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