~/talk

From network tab to automated API test with GenAI

Talkat TestFlix 2024 · 2024-10-19..10-20· [large-language-models, testing]
slides:none on file

Automates generation of API tests from a HAR file by extracting GraphQL queries, saving query, variables and response, then using a PNPM NX TypeScript generator plus OpenAI to produce k6 test scaffolding, compile to JavaScript and run. It produces 10 tests for 10 GraphQL queries, executes them with k6 and reports 273 assertions across scenarios. The generator works end-to-end but requires manual verification of responses and prefers regex scripting for simple file moves while using GenAI for assertion code.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:09Challenges in backend API testing
  3. 3:15Six-layer k6 architecture explained
  4. 3:35Demo setup and HAR file extraction
  5. 4:43Generating tests from HAR file
  6. 6:31Running and validating generated tests
  7. 7:32Deep dive into a single test scenario
  8. 9:17Solution breakdown and AI integration
  9. 10:43AI tools and prompt optimization
  10. 12:08Balancing AI and manual automation
  11. 12:48Closing remarks and Q&A
~/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.