~/talk

Effective API schemas testing

Talkat DevConf.CZ 2021 · 2021-02-18..02-20· [testing]
slides:none on file

A tool called Schemathesis implements property-based testing for OpenAPI v2/v3 and GraphQL by generating Hypothesis strategies from schemas, running requests via CLI or Docker, and checking five built-in assertions (crashes, schema conformance, etc.). It supports stateful sequences using OpenAPI links and Hypothesis state machines. In experiments on 18 services (~1,000 operations) it finds ~20 crashes and ~30 other logic bugs; most schemas (about 97% of schemas) are processable today.

AI-written summary · about

  1. 0:00Intro
  2. 0:41Consequences of ineffective API testing
  3. 1:43How did we get here?
  4. 2:02Common solutions
  5. 3:04Formalize testing?
  6. 3:21Automation
  7. 3:42Effective solution
  8. 4:12How to prevent problems?
  9. 6:20How do we test?
  10. 6:32Example-based testing
  11. 7:07Property-based testing
  12. 8:35API properties
  13. 9:37API Schema
  14. 9:53Supported schemas
  15. 10:12Open API directory
  16. 12:19Unit tests
  17. 13:52Open API links
  18. 14:31Generated API calls
  19. 15:59Integration tests
  20. 16:35Why to use Schemathesis?
  21. 17:43Features
  22. 18:54Is it effective?
  23. 19:22In progress results
  24. 20:29What is next?
  25. 21:10S SCHEMATHESIS • Schema improvement recommendations
  26. 21:34Summary
  27. 22:04References
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.