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-sc
Commits
2df0b31a
Commit
2df0b31a
authored
Nov 09, 2023
by
章 登恒
Browse files
commit
parent
662d77e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
testcase/test_scene11/scene11_mainflow.py
View file @
2df0b31a
...
@@ -404,51 +404,58 @@ class SalesReject(PurchaseOrder):
...
@@ -404,51 +404,58 @@ class SalesReject(PurchaseOrder):
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
step1
=
LoginSys
()
try
:
step2_1
=
DealerPurchaseRequisition
()
step1
=
LoginSys
()
step2_2
=
PurchaseOrder
()
step2_1
=
DealerPurchaseRequisition
()
step3
=
DivisionPurchase
()
step2_2
=
PurchaseOrder
()
step4
=
SalesOrder
()
step3
=
DivisionPurchase
()
step5_1
=
Outstore
()
step4
=
SalesOrder
()
step5_2
=
Outstore1
()
step5_1
=
Outstore
()
step6
=
SalesReject
()
step5_2
=
Outstore1
()
step7_1
=
Instore
()
step6
=
SalesReject
()
step7_2
=
Instore1
()
step7_1
=
Instore
()
step1
.
loginsys
(
SIT_URL
,
usr2
,
pwd2
)
step7_2
=
Instore1
()
step2_1
.
data_add_requisition
()
step1
.
loginsys
(
SIT_URL
,
usr2
,
pwd2
)
jyhtorder
=
step2_1
.
return_jyhtorder
()
step2_1
.
data_add_requisition
()
step2_2
.
button_click1
()
jyhtorder
=
step2_1
.
return_jyhtorder
()
print
(
'经销商要货申请提交成功'
)
step2_2
.
button_click1
()
step2_2
.
switch_loggin
(
usr1
,
pwd1
)
print
(
'经销商要货申请提交成功'
)
step2_2
.
query_click
(
'经销商要货申请'
,
jyhtorder
,
'vxe-body--column col_20 col--center col--ellipsis dw-click-cell'
,
'要货申请单号'
)
step2_2
.
switch_loggin
(
usr1
,
pwd1
)
step2_2
.
button_click2
()
step2_2
.
query_click
(
'经销商要货申请'
,
jyhtorder
,
'vxe-body--column col_20 col--center col--ellipsis dw-click-cell'
,
'要货申请单号'
)
step2_2
.
switch_loggin
(
usr2
,
pwd2
)
step2_2
.
button_click2
()
step3
.
divisionpurchase
()
step2_2
.
switch_loggin
(
usr2
,
pwd2
)
step2_2
.
closetab
()
step3
.
divisionpurchase
()
step2_2
.
query_click
(
'销售订单'
,
jyhtorder
,
'vxe-body--column col_19 col--center col--ellipsis dw-click-cell'
,
'要货申请订单号'
)
step2_2
.
closetab
()
sotorderno
=
step4
.
return_sotorderno
()
step2_2
.
query_click
(
'销售订单'
,
jyhtorder
,
'vxe-body--column col_19 col--center col--ellipsis dw-click-cell'
,
'要货申请订单号'
)
step4
.
button_click1
(
type
=
3
)
sotorderno
=
step4
.
return_sotorderno
()
step2_2
.
switch_loggin
(
usr1
,
pwd1
)
step4
.
button_click1
(
type
=
3
)
step2_2
.
query_click
(
'销售订单'
,
jyhtorder
,
'vxe-body--column col_19 col--center col--ellipsis dw-click-cell'
,
'要货申请订单号'
)
step2_2
.
switch_loggin
(
usr1
,
pwd1
)
step4
.
button_click2
(
msg1
=
'发送成功'
)
step2_2
.
query_click
(
'销售订单'
,
jyhtorder
,
'vxe-body--column col_19 col--center col--ellipsis dw-click-cell'
,
'要货申请订单号'
)
step2_2
.
switch_loggin
(
usr4
,
pwd4
)
step4
.
button_click2
(
msg1
=
'发送成功'
)
step5_1
.
deliver_goods
(
sotorderno
)
#仓库发货
step2_2
.
switch_loggin
(
usr4
,
pwd4
)
step5_1
.
picking_goods
(
sotorderno
)
#仓库拣货
step5_1
.
deliver_goods
(
sotorderno
)
#仓库发货
step2_2
.
switch_loggin
(
usr5
,
pwd5
)
step5_1
.
picking_goods
(
sotorderno
)
#仓库拣货
step5_2
.
outbound_review1
(
sotorderno
)
#出库复核
step2_2
.
switch_loggin
(
usr5
,
pwd5
)
step2_2
.
switch_loggin
(
usr2
,
pwd2
)
step5_2
.
outbound_review1
(
sotorderno
)
#出库复核
step6
.
relate_order
(
sotorderno
)
#关联原单采退并提交
step2_2
.
switch_loggin
(
usr2
,
pwd2
)
sftorderno
=
step6
.
return_sftorderno
()
step6
.
relate_order
(
sotorderno
)
#关联原单采退并提交
step2_2
.
switch_loggin
(
usr1
,
pwd1
)
sftorderno
=
step6
.
return_sftorderno
()
step2_2
.
query_click
(
'销售退货单'
,
sftorderno
,
'vxe-body--column col_19 col--ellipsis dw-click-cell'
,
'销退订单号'
)
step2_2
.
switch_loggin
(
usr1
,
pwd1
)
step4
.
button_click2
(
msg1
=
'发送成功'
)
#审批采退单
step2_2
.
query_click
(
'销售退货单'
,
sftorderno
,
'vxe-body--column col_19 col--ellipsis dw-click-cell'
,
'销退订单号'
)
step2_2
.
switch_loggin
(
usr4
,
pwd4
)
step4
.
button_click2
(
msg1
=
'发送成功'
)
#审批采退单
step7_1
.
take_over_goods
(
sftorderno
)
#仓库收货
step2_2
.
switch_loggin
(
usr4
,
pwd4
)
step2_2
.
switch_loggin
(
usr5
,
pwd5
)
step7_1
.
take_over_goods
(
sftorderno
)
#仓库收货
step7_2
.
goods_check
(
sftorderno
,
type
=
3
)
#仓库验收
step2_2
.
switch_loggin
(
usr5
,
pwd5
)
step2_2
.
switch_loggin
(
usr4
,
pwd4
)
step7_2
.
goods_check
(
sftorderno
,
type
=
3
)
#仓库验收
step7_1
.
goods_grounding
(
sftorderno
)
#仓库上架
step2_2
.
switch_loggin
(
usr4
,
pwd4
)
step7_1
.
goods_grounding
(
sftorderno
)
#仓库上架
except
Exception
as
e
:
step6
=
ExceptionHandling
()
traceback
.
print_exc
()
step6
.
handle
(
errmsg1
,
e
)
finally
:
chrome
.
quit
()
...
...
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