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
acc6d9db
Commit
acc6d9db
authored
Jul 15, 2024
by
xiao-hesheng
Browse files
数据库验证流程十脚本编写
parent
294ee286
Changes
3
Hide whitespace changes
Inline
Side-by-side
air_case/b6_spd3_core_business_flow_database_check/a_b4流程十一请领业务流_二级库向直送_数据库验证.air/a_b4流程十一请领业务流_二级库向直送_数据库验证.py
View file @
acc6d9db
...
@@ -111,9 +111,14 @@ try:
...
@@ -111,9 +111,14 @@ try:
# 从下面开始,上面的暂时注释
# 从下面开始,上面的暂时注释
pro_path
=
commonFuc
().
get_pro_path2
()
pro_path
=
commonFuc
().
get_pro_path2
()
print
(
'pro_path'
,
pro_path
)
print
(
'pro_path'
,
pro_path
)
updateUserLoginDefaultRange
(
get_listUserMgrRangePage
(
2
))
# 设置登录账号默认权限是二级库
sys
.
path
.
append
(
pro_path
+
r
'/air_case/b5_spd3_core_business_flow/a_b4流程十一请领业务流_二级库向直送.air'
)
sys
.
path
.
append
(
pro_path
+
r
'/air_case/b5_spd3_core_business_flow/a_b4流程十一请领业务流_二级库向直送.air'
)
using
(
pro_path
+
r
'//air_case/b5_spd3_core_business_flow/a_b4流程十一请领业务流_二级库向直送.air'
)
updateUserLoginDefaultRange
(
get_listUserMgrRangePage
(
2
))
# 设置登录账号默认权限是二级库
print
(
'设置登录账号默认权限是二级库'
)
from
a_b4流程十一请领业务流_二级库向直送
import
goods_move2
from
a_b4流程十一请领业务流_二级库向直送
import
goods_move2
print
(
'goods_move2'
)
goods_move2
()
# 设置产品出库渠道为直送
goods_move2
()
# 设置产品出库渠道为直送
from
a_b4流程十一请领业务流_二级库向直送
import
second_dept_Request
from
a_b4流程十一请领业务流_二级库向直送
import
second_dept_Request
from
a_b4流程十一请领业务流_二级库向直送
import
BuyCarSubmit
from
a_b4流程十一请领业务流_二级库向直送
import
BuyCarSubmit
...
@@ -121,15 +126,24 @@ try:
...
@@ -121,15 +126,24 @@ try:
from
a_b4流程十一请领业务流_二级库向直送
import
order_dp
from
a_b4流程十一请领业务流_二级库向直送
import
order_dp
from
a_b4流程十一请领业务流_二级库向直送
import
check_accept_order
from
a_b4流程十一请领业务流_二级库向直送
import
check_accept_order
using
(
pro_path
+
r
'//air_case/b5_spd3_core_business_flow/a_b4流程十一请领业务流_二级库向直送.air'
)
sys
.
path
.
append
(
pro_path
+
r
'/air_case/b6_spd3_core_business_flow_database_check/a_b3流程十请领业务流_二级库向边仓_数据库验证.air'
)
using
(
pro_path
+
r
'//air_case/b6_spd3_core_business_flow_database_check/a_b3流程十请领业务流_二级库向边仓_数据库验证.air'
)
from
a_b3流程十请领业务流_二级库向边仓_数据库验证
import
check_mcms_dept_buy
,
mcms_dept_buy_detail
for
i
in
range
(
1
):
for
i
in
range
(
1
):
# # 低值
# # 低值
second_dept_Request
(
FileUtils
().
r_info8
(
"b5_spd3_core_business_flow"
,
"产品审核信息"
,
'message2'
)[
'hosGoodsId'
],
1
)
second_dept_Request
(
FileUtils
().
r_info8
(
"b5_spd3_core_business_flow"
,
"产品审核信息"
,
'message2'
)[
'hosGoodsId'
],
1
)
check_mcms_dept_buy_car
(
1
)
# # 高值
# # 高值
second_dept_Request
(
FileUtils
().
r_info8
(
"b5_spd3_core_business_flow"
,
"产品审核信息"
,
'message1'
)[
'hosGoodsId'
],
2
)
second_dept_Request
(
FileUtils
().
r_info8
(
"b5_spd3_core_business_flow"
,
"产品审核信息"
,
'message1'
)[
'hosGoodsId'
],
2
)
check_mcms_dept_buy_car
(
2
)
# # 试剂
# # 试剂
second_dept_Request
(
FileUtils
().
r_info8
(
"b5_spd3_core_business_flow"
,
"产品审核信息"
,
'message3'
)[
'hosGoodsId'
],
3
)
second_dept_Request
(
FileUtils
().
r_info8
(
"b5_spd3_core_business_flow"
,
"产品审核信息"
,
'message3'
)[
'hosGoodsId'
],
3
)
check_mcms_dept_buy_car
(
3
)
BuyCarSubmit
()
# 请领车提交
BuyCarSubmit
()
# 请领车提交
list_data
=
[
'16'
,
'20'
,
'66'
]
for
i
in
list_data
:
check_mcms_dept_buy
(
int
(
i
))
mcms_dept_buy_detail
(
int
(
i
))
for
i
in
range
(
6
):
# 三个单据共审批6次
for
i
in
range
(
6
):
# 三个单据共审批6次
approval_center
()
approval_center
()
# 采购模块处理
# 采购模块处理
...
...
data/b2_herp3_bs/message
View file @
acc6d9db
院区新增:
院区新增:
branch_id: h0347-374
2
branch_id: h0347-37
5
4
branch_name: 东土城路院区
2pj378
branch_name: 东土城路院区
)2Fs3
科室信息:
科室信息:
dept2_id:
ac8dfc2ae28d4c3d9e7e0599a8860d06
dept2_id:
b03e85ab45a24d1282eb7692dd2ad9d5
dept2_name: 二级检验科002
dept2_name: 二级检验科002
report/summary.html
View file @
acc6d9db
...
@@ -76,9 +76,9 @@ setInterval(updateTime, 1000); // 每秒更新一次时间
...
@@ -76,9 +76,9 @@ setInterval(updateTime, 1000); // 每秒更新一次时间
<tr
width=
"600"
>
<tr
width=
"600"
>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
0
</td>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
0分
12
秒
</td>
<td
class=
'details-col-elapsed'
>
0分
9
秒
</td>
<td
class=
"details-col-elapsed"
>
0.0%
</td>
<td
class=
"details-col-elapsed"
>
10
0.0%
</td>
</tr>
</tr>
</table>
</table>
...
@@ -93,9 +93,9 @@ setInterval(updateTime, 1000); // 每秒更新一次时间
...
@@ -93,9 +93,9 @@ setInterval(updateTime, 1000); // 每秒更新一次时间
</tr>
</tr>
<tr
width=
"600"
>
<tr
width=
"600"
>
<td
class=
"details-col-elapsed"
><a
href=
'../log/r_
d0
库房管理_库区设置_
人员管理_添加人员_查询人员
/log.html'
target=
'_blank'
>
r_
d0
库房管理_库区设置_
人员管理_添加人员_查询人员
</a></td>
<td
class=
"details-col-elapsed"
><a
href=
'../log/r_
b8
库房管理_库区设置_
同步库房信息
/log.html'
target=
'_blank'
>
r_
b8
库房管理_库区设置_
同步库房信息
</a></td>
<td
class=
"
fail"
>
失败
</td>
<td
class=
"
success"
>
成功
</td>
<td
class=
"details-col-elapsed"
>
12.4
</td>
<td
class=
"details-col-elapsed"
>
9.789
</td>
<td
class=
"details-col-elapsed"
>
xiaohesheng
</td>
<td
class=
"details-col-elapsed"
>
xiaohesheng
</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