Quickstrom: property-based acceptance testing with LTL specifications
Authors:
Open Access
- 9 June 2022
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1025-1038
Abstract
We present Quickstrom, a property-based testing system for acceptance testing of interactive applications. Using Quickstrom, programmers can specify the behaviour of web applications as properties in our testing-oriented dialect of Linear Temporal Logic (LTL) called QuickLTL, and then automatically test their application against the given specification with hundreds of automatically generated interactions. QuickLTL extends existing finite variants of LTL for the testing use-case, determining likely outcomes from partial traces whose minimum length is itself determined by the LTL formula. This temporal logic is embedded in our specification language, Specstrom, which is designed to be approachable to web programmers, expressive for writing specifications, and easy to analyse. Because Quickstrom tests only user-facing behaviour, it is agnostic to the implementation language of the system under test. We therefore formally specify and test many implementations of the popular TodoMVC benchmark, used for evaluation and comparison across various web frontend frameworks and languages. Our tests uncovered bugs in almost half of the available implementations.Keywords
All Related Versions
This publication has 25 references indexed in Scilit:
- Testing AUTOSAR software with QuickCheck2015
- LTL types FRP2012
- Runtime Verification for LTL and TLTLACM Transactions on Software Engineering and Methodology, 2011
- Epistemic temporal logic for information flow security2011
- Comparing LTL Semantics for Runtime VerificationJournal of Logic and Computation, 2009
- Rewriting-Based Techniques for Runtime VerificationAutomated Software Engineering, 2005
- Counterexample-guided abstraction refinement for symbolic model checkingJournal of the ACM, 2003
- Learning regular sets from queries and counterexamplesInformation and Computation, 1987
- Automata-theoretic techniques for modal logics of programsJournal of Computer and System Sciences, 1986
- Defining livenessInformation Processing Letters, 1985