Specifying and Testing Web Applications
Oskar Wickström
Code Mesh, November 2020
sleep
or wait
Change the modality of the sub-expression
Available operators from LTL:
queryOne
queryAll
We must instruct Quickstrom which actions to try
List of weighted probabilities and action specifiers
Array (Tuple Int Action)
Comes with predefined actions, e.g. foci
, clicks
Often need to carefully pick selectors, actions, and weights
numbers
strings
arrays
transformers
generics-rep
Use the check
command:
Origin can be a file:
1. State
• .play-pause
-
- property "textContent" = "Play"
• .time-display
-
- property "textContent" = "00:00"
2. click button[0]
3. click button[0]
4. State
• .play-pause
-
- property "textContent" = "Play"
• .time-display
-
- property "textContent" = "NaN:NaN"
Failed after 1 tests and 4 levels of shrinking.
--max-trailing-state-changes
--trailing-state-change-timeout