Automating the Crossword
Testing Web Games at the New York Times
Phil Wells @thephilwells phil.wells@nytimes.com October 2019
1
Automating the Crossword Testing Web Games at the New York Times - - PowerPoint PPT Presentation
Automating the Crossword Testing Web Games at the New York Times Phil Wells @thephilwells phil.wells@nytimes.com October 2019 1 Games at the New York Times Team composition and processes Cross-functional team building games for
Phil Wells @thephilwells phil.wells@nytimes.com October 2019
1
○ Cross-functional team building games for web, iOS, and Android ○ Agile teams combining test automation with manual QA processes
○ Supported and updated the online NYT Crossword ○ Released new games: Spelling Bee! Letter Boxed!
2
@thephilwells
Doing Monday’s Puzzle Doing Saturday’s Puzzle
3
@thephilwells
Monday/Tuesday solvers
4
@thephilwells
Milestone Animations Vertical Streaks Autocheck
5
@thephilwells
6
7
@thephilwells
8
Responsibility Running Often Reliability Really Quite Fast @thephilwells
9
Everybody! @thephilwells
broken forever!”
10
@thephilwells
11
@thephilwells
code
12
@thephilwells
13
@thephilwells
14
@thephilwells
Launch
“Code Hardening”
15
16
@thephilwells
17
@thephilwells
18
Roger that! @thephilwells
have been three releases in that time!”
can’t pinpoint which tests might fail.”
19
@thephilwells
20
@thephilwells
21
@thephilwells
22
@thephilwells
23
@thephilwells
24
@thephilwells
25
@thephilwells
26
@thephilwells
27
@thephilwells
28
Not on my watch! @thephilwells
group of test users.”
29
@thephilwells
30
Martin Fowler
@thephilwells
○ https://martinfowler.com/articles/practical-test-pyramid.html
31
@thephilwells
32
@thephilwells
33
34
@thephilwells
35
@thephilwells
36
Problem: Trying to assert existence of short-lived elements on the page. Case in point: milestone animations!
37
@thephilwells
38
@thephilwells
39
@thephilwells
40
@thephilwells
41
This “mutation” is an animation event! Set up a new array in the browser’s window object Identify web element where event will occur What kind of change events are we watching for? Set up a watcher for these animation events
42
@thephilwells
43
44
@thephilwells
45
@thephilwells
46
@thephilwells
47
@thephilwells
48
@thephilwells
49
Yes we can! @thephilwells
weeks.”
momentum.”
5 minutes on SauceLabs.”
50
@thephilwells
51
@thephilwells
52
the cells’ states be validated
53
@thephilwells
Operation # of Network Calls Seconds Network Traffic (ms) Get all cells 1 100 For each cell, get answer text 255 22,500! Now try it on Sauce VM’s 255 225,000!!!
54
@thephilwells
55
@thephilwells
56
@thephilwells
57
@thephilwells
58
@thephilwells
59
@thephilwells
from days to hours
60
@thephilwells
61
@thephilwells
to catch up post-release
62
@thephilwells
63
@thephilwells