This commit is contained in:
miggaze 2020-12-04 13:35:13 +07:00
parent 0f6d6a5e18
commit 7a3b36e4e5
4 changed files with 39 additions and 2 deletions

View file

@ -56,6 +56,11 @@
EndIf
Var TestLoopMakeDrink = 0
Var TestLoopSuccess = 0
Var TestLoopFailed = 0
</EventOpen>
@ -63,6 +68,8 @@
<Timeout> 800 </Timeout>
<EventTimeout>
If MachineStage = "close-maintenance" Then
Open "ROOT/taobin_project/xml/page_show_error.xml"
@ -132,7 +139,9 @@
<EventClick>
Var countClick = countClick + 1
If countClick = 3 Then
Var TestLoopMakeDrink = 1
EndIf
If countClick = 5 Then
@ -205,7 +214,7 @@
<Text>
<X> 0 </X>
<Y> 1886 </Y>
<Y> 1860 </Y>
<Size> 20 </Size>
<Width> 1080</Width>
<Align> Center </Align>

View file

@ -219,6 +219,23 @@
EndIf
If TestLoopMakeDrink = 1 Then
If MachineState_Result = 1 Then
Var MachineState_Result = 0
Var TestLoopSuccess = TestLoopSuccess + 1
Open "ROOT/taobin_project/xml/page_drinkloop.xml"
EndIf
If MachineState_Result = 2 Then
;Var MachineState_Result = 0
Var TestLoopFailed = TestLoopFailed + 1
Open "ROOT/taobin_project/xml/page_drinkloop.xml"
EndIf
EndIf
If MachineState_Result = 1 Then
Var Timeout = 0
Var ProcessText = ""

View file

@ -301,6 +301,12 @@
EndIf
Open "ROOT/taobin_project/xml/page_catalog.xml"
EndIf
If TestLoopMakeDrink = 1 Then
MakeDrinkV1 SelectDrink SelectSugarID
Open "ROOT/taobin_project/xml/page_thankyou.xml"
EndIf

View file

@ -62,6 +62,11 @@
If CountDownThankyou = 0 Then
;Open "ROOT/taobin_project/xml/page_lid_straw.xml"
;Open "ROOT/taobin_project/xml/page_brewing.xml"
If TestLoopMakeDrink = 1 Then
Open "ROOT/taobin_project/xml/page_brewing2.xml"
EndIf
Open "ROOT/taobin_project/xml/page_collect_point_1.xml"
EndIf