File: testcases.rpy

package info (click to toggle)
renpy 8.0.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 81,768 kB
  • sloc: python: 44,587; ansic: 13,708; javascript: 308; makefile: 41; sh: 13
file content (299 lines) | stat: -rw-r--r-- 5,867 bytes parent folder | download | duplicates (2)
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299

testcase player_experience:
    scroll "Bar" until "Player Experience"
    click until "Yes."

    # Dialogue after menu.
    click
    click
    click

    # Rollback to the menu.
    click button 4
    click button 4
    click button 4
    click button 4

    # Roll forward.
    click button 5
    click button 5

    # Back again.
    click button 4
    click button 4

    # Roll forward.
    type PAGEDOWN
    type PAGEDOWN

    # Back again.
    type PAGEUP
    type PAGEUP

    "No."

    click until label tutorials

testcase new_game:
    scroll "Bar" until "Creating a New Game"
    click until label tutorials

testcase dialogue:
    scroll "Bar" until "Writing Dialogue"
    click until label tutorials

testcase images:
    scroll "Bar" until "Adding Images"
    click until label tutorials

testcase transitions:
    scroll "Bar" until "Transitions"
    click until label tutorials

testcase music:
    scroll "Bar" until "Music and Sound Effects"
    click until label tutorials

testcase choices:
    scroll "Bar" until "Choices and Python"
    click until "Yes, I do."
    click until "Yes."
    click until label tutorials


testcase input:
    scroll "Bar" until "Input and Interpolation"
    click until "Some games might prompt the player for input."
    type "Tom"
    type BACKSPACE
    type "m"
    type LEFT
    type RIGHT
    type "\n"
    click until label tutorials

testcase positioning_images:
    scroll "Bar" until "Positioning Images"
    click until label tutorials

testcase video:
    scroll "Bar" until "Video Playback"
    click until label tutorials

testcase nvl_mode:
    scroll "Bar" until "NVL Mode"
    click until "Yes."
    click until label tutorials

testcase tools:
    scroll "Bar" until "Tools and the Interactive Director"

    # Not actually testing the various tools yet.

    click until label tutorials

testcase building:
    scroll "Bar" until "Building Distributions"
    click until label tutorials


testcase text_tags:
    scroll "Bar" until "Text Tags, Escapes, and Interpolation"
    click until label tutorials

testcase character_objects:
    scroll "Bar" until "Character Objects"
    click until label tutorials

testcase simple_displayables:
    scroll "Bar" until "Simple Displayables"
    click until label tutorials



testcase transition_gallery:
    $ _test.transition_timeout = 60.0

    scroll "Bar" until "Transition Gallery"
    click until "Simple"
    click until "ImageDissolve"
    click until "MoveTransition"
    click until "CropMove"
    click until "PushMove"
    click until "AlphaDissolve"
    click until "something else"
    click until label tutorials

    $ _test.transition_timeout = 0.05

testcase position_properties:
    scroll "Bar" until "Position Properties"
    click until "xpos .75 ypos .25"
    click until label tutorials

testcase transforms:

    scroll "Bar" until "Transforms and Animation"
    click until label tutorials

    scroll "Bar" until "Transform Properties"
    click until label tutorials

testcase gui_customization:

    scroll "Bar" until "GUI Customization"
    click until label tutorials


testcase styles:

    scroll "Bar" until "Styles and Style Properties"
    click until "Style basics."
    click until "General style properties."
    click until "Text style properties."
    click until "Window and Button style properties."
    click until "Bar style properties."
    click until "Box, Grid, and Fixed style properties."
    click until "The Displayable Inspector."
    click until "That's all I want to know."
    click until label tutorials


testcase screens:

    scroll "Bar" until "Screen Basics"
    click until "What screens can do."
    click until "Yes."
    click until "How to show screens."
    click until "you'll have to click"
    "Okay"
    click until "Passing parameters to screens."
    click until "the call screen statement"
    "Okay"
    click until "Screen properties."
    click until "Close This Screen"
    pause .5
    "Close This Screen"
    click until "Special screen statements."
    click until "Using other screens."
    click until "That's it."

    scroll "Bar" until "Screen Displayables"
    click until "Common properties"
    click until "Adding images"
    click until "Text"
    click until "Buttons"
    click until "Bars"
    click until "Viewports"
    click until "Imagemaps"
    click until "Science"
    click until "That's all"

    click until label tutorials


testcase translations:

    scroll "Bar" until "Translations"
    click until label tutorials


testcase out_of_game:
    "Back"
    "Back"

    "Skip"

    "Back"

    $ _preferences.self_voicing = False
    $ _preferences.afm_time = 1


    "Auto"
    scroll "Bar" until "Player Experience"
    "Auto"
    "History"

    pause .5

    "Save"
    "Save Slot 1"
    "Yes"

    "Load"
    pause .5

    "Load Slot 1"
    "Yes"

    "Prefs"
    pause .5

    "About"
    pause .5

    "Help"
    pause .5

    "Main Menu"
    "Yes"

    "Load"
    pause .5

    "Load Slot 1"

    click until "Yes."
    click until label tutorials



testcase template:

    scroll "Bar" until "-"
    click until label tutorials


testcase default:

    $ _test.transition_timeout = 0.05

    "Start"
    click until label tutorials

    call player_experience
    call new_game
    call dialogue
    call images
    call positioning_images
    call transitions
    call music
    call choices
    call input
    call video
    call nvl_mode
    call tools
    call building

    call text_tags
    call character_objects
    call simple_displayables
    call transition_gallery
    call position_properties
    call transforms
    call gui_customization
    call styles
    call screens

    # Skip Minigames and CDDs.

    call translations
    call out_of_game

    "That's enough for now."
    click until "Quit"
    pause .5