~/talk

An intro into API testing in Python

Talkat Nerdearla 101 2022 · 2022-08-05..08-06· [testing, python]
linkedin:basdijkstra
slides:none on file

Walks through setting up a blank PyCharm project, pip installing requests and pytest, making HTTP GETs and POSTs to typicode endpoints, asserting status code 200 for GET and 201 for POST, checking Content-Type equals application/json; charset=UTF-8, extracting data with response.json() and asserting name fields for user IDs 1–3 (parameterized to run three cases), demonstrating posting a JSON payload and reading request body, and recommending the jsonschema library for schema validation.

AI-written summary · about

  1. 0:00Introduction to API testing
  2. 2:57Why API testing matters
  3. 3:42Setting up Python project
  4. 4:49Installing requests library
  5. 5:54Exploring API endpoints
  6. 9:29Writing first automated test
  7. 11:41Testing response headers
  8. 13:07Validating response body
  9. 15:47Sending POST requests
  10. 18:44Parameterized testing
  11. 22:48Summary and key takeaways
  12. 25:06Q&A session
~/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.