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
947e5b64
Commit
947e5b64
authored
Oct 25, 2024
by
xiao-hesheng
Browse files
流程五脚本提交
parent
4e209504
Changes
8
Hide whitespace changes
Inline
Side-by-side
air_case/a2_mdm3_ea/a企业认领.air/a企业认领.py
View file @
947e5b64
...
@@ -26,7 +26,7 @@ id1,cname=es()
...
@@ -26,7 +26,7 @@ id1,cname=es()
#企业注册提交接口_认领
#企业注册提交接口_认领
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"updateById_url"
)
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"updateById_url"
)
username
=
commonFuc
().
get_business_data
(
module
,
"username1"
)
username
=
commonFuc
().
get_business_data
(
module
,
"username1"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password
1
"
)
# print(username, password)
# print(username, password)
# 获取token和projectCode
# 获取token和projectCode
token
,
projectCode
,
uxid
,
corpId
,
info
=
login_system
(
username
,
password
).
get_token
()
token
,
projectCode
,
uxid
,
corpId
,
info
=
login_system
(
username
,
password
).
get_token
()
...
...
air_case/a2_mdm3_ea/a企业锁定.air/a企业锁定.py
View file @
947e5b64
...
@@ -26,7 +26,7 @@ id1=global_var_id
...
@@ -26,7 +26,7 @@ id1=global_var_id
"""
"""
#企业注册提交接口_锁定_开始
#企业注册提交接口_锁定_开始
username
=
commonFuc
().
get_business_data
(
module
,
"username1"
)
username
=
commonFuc
().
get_business_data
(
module
,
"username1"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password
1
"
)
# 获取token和projectCode
# 获取token和projectCode
token
,
projectCode
,
uxid
,
corpId
,
info
=
login_system
(
username
,
password
).
get_token
()
token
,
projectCode
,
uxid
,
corpId
,
info
=
login_system
(
username
,
password
).
get_token
()
...
...
air_case/a2_mdm3_ea/企业审核.air/企业审核.py
View file @
947e5b64
...
@@ -31,7 +31,7 @@ def test1():
...
@@ -31,7 +31,7 @@ def test1():
"""
"""
# 企业注册提交接口_审核通过_开始
# 企业注册提交接口_审核通过_开始
username
=
commonFuc
().
get_business_data
(
module
,
"username1"
)
username
=
commonFuc
().
get_business_data
(
module
,
"username1"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password
1
"
)
# print(username, password)
# print(username, password)
# 获取token和projectCode
# 获取token和projectCode
token
,
projectCode
,
uxid
,
corpId
,
info
=
login_system
(
username
,
password
).
get_token
()
token
,
projectCode
,
uxid
,
corpId
,
info
=
login_system
(
username
,
password
).
get_token
()
...
...
air_case/b5_spd3_core_business_flow/a_a2_流程二供货关系申请提交审批.air/a_a2_流程二供货关系申请提交审批.py
View file @
947e5b64
...
@@ -23,8 +23,8 @@ def h_login():
...
@@ -23,8 +23,8 @@ def h_login():
# 如果需要h0347医院账号登录,这里就从data文件获取登录医院的用户名
# 如果需要h0347医院账号登录,这里就从data文件获取登录医院的用户名
# username = commonFuc().get_business_data(module, "username")
# username = commonFuc().get_business_data(module, "username")
username
=
commonFuc
().
get_business_data
(
module
,
"
username
"
)
username
=
commonFuc
().
get_business_data
(
module
,
"
test_1
"
)
password
=
commonFuc
().
get_business_data
(
module
,
"
password1
"
)
password
=
commonFuc
().
get_business_data
(
module
,
"
Gyqx2023!
"
)
print
(
'医院名称'
,
username
)
print
(
'医院名称'
,
username
)
print
(
username
,
password
,
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
)
print
(
username
,
password
,
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
)
# 获取token和projectCode
# 获取token和projectCode
...
...
air_case/b5_spd3_core_business_flow/a_a3_流程三_产品导入和审批.air/a_a3_流程三_产品导入和审批.py
View file @
947e5b64
...
@@ -22,7 +22,7 @@ module = "b5_spd3_core_business_flow"
...
@@ -22,7 +22,7 @@ module = "b5_spd3_core_business_flow"
def
h_login
():
def
h_login
():
module
=
"a4_mdm3_cm"
module
=
"a4_mdm3_cm"
username
=
commonFuc
().
get_business_data
(
module
,
"username"
)
username
=
commonFuc
().
get_business_data
(
module
,
"username"
)
password
=
commonFuc
().
get_business_data
(
module
,
"
password1
"
)
password
=
commonFuc
().
get_business_data
(
module
,
"
Gyqx2023!
"
)
print
(
'医院名称'
,
username
)
print
(
'医院名称'
,
username
)
print
(
username
,
password
,
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
)
print
(
username
,
password
,
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
)
# 获取token和projectCode
# 获取token和projectCode
...
...
air_case/b5_spd3_core_business_flow/a_a4_流程四_基础模块设置.air/a_a4_流程四_基础模块设置.py
View file @
947e5b64
...
@@ -392,7 +392,7 @@ def main():
...
@@ -392,7 +392,7 @@ def main():
#==============删除业务数据和报表数据
#==============删除业务数据和报表数据
test1
()
#参数2是新增院区后缀为6位数的参数1是老模式
test1
()
#参数2是新增院区后缀为6位数的参数1是老模式
#20241018,外网导入产品默认为停用状态,设置了一个参数
#20241018,外网导入产品默认为停用状态,设置了一个参数
#select * from sys_config t where t.id ='goodsCheckAuditSpd3';
#select * from
spd_ybtest_hdi.
sys_config t where t.id ='goodsCheckAuditSpd3';
test2
()
# 科室添加产品信息(产品是从外网同步过来的)
test2
()
# 科室添加产品信息(产品是从外网同步过来的)
dept_query_all
()
# 科室查询,将科室id写入文件中
dept_query_all
()
# 科室查询,将科室id写入文件中
grants_user
()
#给用户授权
grants_user
()
#给用户授权
...
...
data/a2_mdm3_ea/data
View file @
947e5b64
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
"username": "test_1"
"username": "test_1"
"password": "Gyqx2023!"
"password": "Gyqx2023!"
"username1": "001f90380"
"username1": "001f90380"
"password1": "1qaz!QAZ"
json_contentType: "application/json"
json_contentType: "application/json"
json_headers: {
json_headers: {
...
...
data/a4_mdm3_cm/data
View file @
947e5b64
"
username
": "test_1"
"
test_1
": "test_1"
"password": "a123456!"
"password": "a123456!"
"password1": "1qaz!QAZ"
"password1": "1qaz!QAZ"
"Gyqx2023!": "Gyqx2023!"
"username": "test_1"
"submitSupplyRelation_url": "/api/hdiFusion/supplyRelation/submitSupplyRelation"
"submitSupplyRelation_url": "/api/hdiFusion/supplyRelation/submitSupplyRelation"
"listVoPage_url": "/api/hdiFusion/supplyRelation/listVoPage/"
"listVoPage_url": "/api/hdiFusion/supplyRelation/listVoPage/"
...
...
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