/
VerifyByScreenshots.feature
103 lines (83 loc) · 5.48 KB
/
VerifyByScreenshots.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
Feature: Verify correct rendering
Verify correct rendering by using Vice emulator and screenshots
@TC-1
Scenario: [TC-1] Check 8-way scrolling with default score panel
Given I run the command line: cmd /c BuildIt.bat ScrollEntry_MultiDirection.a
And I load labels "Scroller.map"
Given I run the command line: cmd /c start C:\Downloads\WinVICE-3.1-x86-r34062\WinVICE-3.1-x86-r34062\x64sc.exe -autostartprgmode 1 +autostart-delay-random +VICIIdsize +VICIIdscan -VICIIborders 2 -VICIIfilter 0 +sound -warp -remotemonitor
# Vice is automatically quit at the end of the test
Given connect to remote monitor at TCP "127.0.0.1" port "6510"
When send remote monitor command "break" "afterScrollerDemoWaitScorePanel"
When send remote monitor command without parsing "attach "%WCD%\scroller.crt" 20"
When send remote monitor command "reset"
When remote monitor wait for hit
When send remote monitor command without parsing "scrsh "%WCD%\target\TC-1-1.png" 2"
# When send remote monitor command "del"
# When remote monitor continue without waiting
# When disconnect remote monitor
When remote monitor wait for hit
When send remote monitor command without parsing "scrsh "%WCD%\target\TC-1-2.png" 2"
When remote monitor wait for 12 hits
When send remote monitor command without parsing "scrsh "%WCD%\target\TC-1-3.png" 2"
When remote monitor wait for 12 hits
When send remote monitor command without parsing "scrsh "%WCD%\target\TC-1-4.png" 2"
When remote monitor wait for 12 hits
When send remote monitor command without parsing "scrsh "%WCD%\target\TC-1-5.png" 2"
When remote monitor wait for 6 hits
When send remote monitor command without parsing "scrsh "%WCD%\target\TC-1-6.png" 2"
When remote monitor wait for hit
When send remote monitor command without parsing "scrsh "%WCD%\target\TC-1-7.png" 2"
When remote monitor wait for hit
When send remote monitor command without parsing "scrsh "%WCD%\target\TC-1-8.png" 2"
When remote monitor wait for hit
When send remote monitor command without parsing "scrsh "%WCD%\target\TC-1-9.png" 2"
When remote monitor wait for hit
When send remote monitor command without parsing "scrsh "%WCD%\target\TC-1-10.png" 2"
Then expect image "target/TC-1-1.png" to be identical to "testdata/TC-1-1.png"
Then expect image "target/TC-1-2.png" to be identical to "testdata/TC-1-2.png"
Then expect image "target/TC-1-3.png" to be identical to "testdata/TC-1-3.png"
Then expect image "target/TC-1-4.png" to be identical to "testdata/TC-1-4.png"
Then expect image "target/TC-1-5.png" to be identical to "testdata/TC-1-5.png"
Then expect image "target/TC-1-6.png" to be identical to "testdata/TC-1-6.png"
Then expect image "target/TC-1-7.png" to be identical to "testdata/TC-1-7.png"
Then expect image "target/TC-1-8.png" to be identical to "testdata/TC-1-8.png"
Then expect image "target/TC-1-9.png" to be identical to "testdata/TC-1-9.png"
Then expect image "target/TC-1-10.png" to be identical to "testdata/TC-1-10.png"
@TC-2
Scenario: [TC-2] Check SEUCK build
Given I run the command line: cmd /c BuildIt.bat ScrollEntry_SEUCK.a
And I load labels "Scroller.map"
Given I run the command line: cmd /c start C:\Downloads\WinVICE-3.1-x86-r34062\WinVICE-3.1-x86-r34062\x64sc.exe -autostartprgmode 1 +autostart-delay-random +VICIIdsize +VICIIdscan -VICIIborders 2 -VICIIfilter 0 +sound -warp -remotemonitor
# Vice is automatically quit at the end of the test
Given connect to remote monitor at TCP "127.0.0.1" port "6510"
When send remote monitor command "break" "titleJoystickTest"
When send remote monitor command "break" "afterScrollerDemoWaitScorePanel"
When send remote monitor command without parsing "attach "%WCD%\scroller.crt" 20"
When send remote monitor command "reset"
When remote monitor wait for 30 hits
When send remote monitor command without parsing "scrsh "%WCD%\target\TC-2-1.png" 2"
# Advance the title screen fire test
When send remote monitor command "n"
When send remote monitor command "r a=0"
When remote monitor wait for hit
# When send remote monitor command "del"
# When remote monitor continue without waiting
# When disconnect remote monitor
When remote monitor wait for 60 hits
When send remote monitor command without parsing "scrsh "%WCD%\target\TC-2-2.png" 2"
When remote monitor wait for 60 hits
When send remote monitor command without parsing "scrsh "%WCD%\target\TC-2-3.png" 2"
When remote monitor wait for hit
When send remote monitor command without parsing "scrsh "%WCD%\target\TC-2-4.png" 2"
When remote monitor wait for hit
When send remote monitor command without parsing "scrsh "%WCD%\target\TC-2-5.png" 2"
When remote monitor wait for hit
When send remote monitor command without parsing "scrsh "%WCD%\target\TC-2-6.png" 2"
When remote monitor wait for hit
When send remote monitor command without parsing "scrsh "%WCD%\target\TC-2-7.png" 2"
Then expect image "target/TC-2-1.png" to be identical to "testdata/TC-2-1.png"
Then expect image "target/TC-2-2.png" to be identical to "testdata/TC-2-2.png"
Then expect image "target/TC-2-3.png" to be identical to "testdata/TC-2-3.png"
Then expect image "target/TC-2-4.png" to be identical to "testdata/TC-2-4.png"
Then expect image "target/TC-2-5.png" to be identical to "testdata/TC-2-5.png"
Then expect image "target/TC-2-6.png" to be identical to "testdata/TC-2-6.png"