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
10355714
Commit
10355714
authored
May 28, 2025
by
liguangyu06
Browse files
新增期初导入脚本
parent
8c43348c
Changes
3
Hide whitespace changes
Inline
Side-by-side
air_case/b2_herp3_bs/生成采购数据.air/生成采购数据.py
View file @
10355714
...
...
@@ -25,17 +25,19 @@ import json
module
=
"b2_herp3_bs"
# 内网登录
username
=
commonFuc
().
get_business_data
(
module
,
"username411"
)
## print('医院名称',username)
password
=
commonFuc
().
get_business_data
(
module
,
"password411"
)
# print(username, password,'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
# 获取token和projectCode
token
,
projectCode
,
uxid
,
corpId
,
info
=
login_system
(
username
,
password
).
get_token
()
# print( token,projectCode,uxid,corpId,info)
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers_pur"
,
token
)
def
c_purplan
():
# 内网登录
username
=
commonFuc
().
get_business_data
(
module
,
"username411"
)
## print('医院名称',username)
password
=
commonFuc
().
get_business_data
(
module
,
"password411"
)
# print(username, password,'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
# 获取token和projectCode
token
,
projectCode
,
uxid
,
corpId
,
info
=
login_system
(
username
,
password
).
get_token
()
# print( token,projectCode,uxid,corpId,info)
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers_pur"
,
token
)
# 暂存
url
=
'http://spdtest.cmic.com.cn:8080/api/herpService/purPlan/insert'
...
...
@@ -366,16 +368,20 @@ def c_purplan():
# 获取接口响应时间
result
=
json
.
loads
(
result
.
content
)
print
(
result
)
n
=
0
while
n
<
1000
:
# 创建多线程
threads
=
[]
for
_
in
range
(
5
):
t
=
threading
.
Thread
(
target
=
c_purplan
)
threads
.
append
(
t
)
t
.
start
()
# 等待所有线程完成
for
t
in
threads
:
t
.
join
()
# # 创建多线程
# threads = []
# for _ in range(1):
# t = threading.Thread(target=c_purplan)
# threads.append(t)
# t.start()
#
# # 等待所有线程完成
# for t in threads:
# t.join()
n
=
n
+
1
data/b1_herp3_login/data
View file @
10355714
# 登录内网herp系统
"VerifyCode_url": "/api/oauthService/auth/getVerifyCode"
"login_url": "/api/oauthService/auth/login"
"VerifyCode_url": "/api/platformService/auth/getVerifyCode"
"VerifyCode_url1": "/api/oauthService/auth/getVerifyCode"
"login_url": "/api/platformService/auth/login"
"login_url1": "/api/oauthService/auth/login"
"platform_login_url": "/api/platformService/userOnline/getUserOnlineLogin"
"username": "test001"
"password": "Gyqx2023!"
...
...
data/b2_herp3_bs/data
View file @
10355714
...
...
@@ -230,14 +230,15 @@ json_headers_pur: {
"payload_wait": {
"pageNum": 1,
"pageSize":
10
0000,
"pageSize":
5
0000,
"queryObject": {
"businessType": 0,
"createOrderTime": [
"2025-05-
01
",
"2025-05-
06
"
"2025-05-
28
",
"2025-05-
31
"
],
"createOrderTimeStart": "2025-05-
01
",
"createOrderTimeEnd": "2025-05-
06
"
"createOrderTimeStart": "2025-05-
28
",
"createOrderTimeEnd": "2025-05-
31
"
}
}
...
...
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