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
Compare Revisions
e97c4c960d50a40d38822800eafb9a92ff0d0c71...c44a48ff6f1744ff413136d140fe1f21921e4405
Commits (3)
脚本优化
· 8a762e5c
xiao-hesheng
authored
Jul 09, 2024
8a762e5c
脚本优化
· fe36df06
xiao-hesheng
authored
Jul 09, 2024
fe36df06
脚本优化
· c44a48ff
xiao-hesheng
authored
Jul 09, 2024
c44a48ff
Hide whitespace changes
Inline
Side-by-side
air_case/public1/public1/public1.py
View file @
c44a48ff
...
...
@@ -2292,7 +2292,7 @@ def check_accept_order():
data
=
commonFuc
().
analysis_json
(
'data'
,
result
)
code
=
commonFuc
().
analysis_json
(
'code'
,
result
)
print
(
code
)
if
code
==
0
and
data
=
=
1
:
if
code
==
0
and
len
(
data
)
>
=
1
:
break
else
:
print
(
'设置产品合格出现问题'
)
...
...
main1/main_text.py
View file @
c44a48ff
...
...
@@ -163,6 +163,21 @@ def main_text():
print
(
'===================删除垃圾数据完毕============================'
)
else
:
print
(
'Cancel'
)
def
flow5_flow18
():
flow5
()
flow6
()
flow7
()
flow8
()
flow9
()
flow10
()
flow11
()
flow12
()
flow13
()
flow14
()
flow15
()
flow16
()
flow17
()
flow18
()
def
confirm
():
...
...
@@ -175,7 +190,8 @@ def main_text():
# print(result)
print
(
"用户选择了:"
,
"OK"
if
result
else
"Cancel"
)
return
result
def
download_data
():
print
(
'从Jenkins服务器下载data数据'
)
# 文本显示的位置。
Button
(
root
,
text
=
'流程一
\n
外网企业注册审批'
,
width
=
16
,
height
=
8
,
command
=
flow1
).
grid
(
row
=
2
,
column
=
0
)
Button
(
root
,
text
=
'流程二
\n
供货关系申请审批'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow2
).
grid
(
row
=
2
,
column
=
2
)
...
...
@@ -196,8 +212,10 @@ def main_text():
Button
(
root
,
text
=
'流程十七
\n
退库业务_中心库退
\n
供应商'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow17
).
grid
(
row
=
4
,
column
=
8
)
Button
(
root
,
text
=
'流程十八
\n
中心库业务_拆包功能'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow18
).
grid
(
row
=
4
,
column
=
10
)
Button
(
root
,
text
=
'一键执行'
,
anchor
=
'center'
,
width
=
8
,
height
=
2
,
command
=
flow0
).
grid
(
row
=
5
,
column
=
2
)
Button
(
root
,
text
=
'删除垃圾数据'
,
anchor
=
'center'
,
width
=
8
,
height
=
2
,
command
=
del_data
).
grid
(
row
=
5
,
column
=
4
)
Button
(
root
,
text
=
'退 出'
,
anchor
=
'center'
,
width
=
8
,
height
=
2
,
command
=
exit
).
grid
(
row
=
5
,
column
=
8
)
Button
(
root
,
text
=
'流程五开始
\n
一键执行'
,
anchor
=
'center'
,
width
=
8
,
height
=
2
,
command
=
flow5_flow18
).
grid
(
row
=
5
,
column
=
4
)
Button
(
root
,
text
=
'删除垃圾
\n
数据'
,
anchor
=
'center'
,
width
=
8
,
height
=
2
,
command
=
del_data
).
grid
(
row
=
5
,
column
=
6
)
Button
(
root
,
text
=
'从jenkins下载data
\n
数据'
,
anchor
=
'center'
,
width
=
8
,
height
=
2
,
command
=
download_data
).
grid
(
row
=
5
,
column
=
8
)
Button
(
root
,
text
=
'退 出'
,
anchor
=
'center'
,
width
=
8
,
height
=
2
,
command
=
exit
).
grid
(
row
=
5
,
column
=
10
)
# Button(root, text='anchor', anchor='e', width=30, height=4).pack()
# Button(root, text='anchor', anchor='w', width=30, height=4).pack()
...
...