Modern QA2026Practical Exercise — tiles
Log inJoin
60 / 80 · 12 Programming for QA · Regex and Parsing← prev⊞ allnext →☰ Read as one page

7.9Practical Exercise

  1. Write a regex that extracts all error-level log lines from a log file and groups them by service name (text in square brackets like [PaymentService])
  2. Parse a JSON API response and validate that all items have required fields, correct types, and no sensitive data
  3. Write a function that converts a HAR file (JSON format) into a summary: total requests, average response time, and error count
  4. Create a YAML-based test data file and write a pytest parametrize test that reads from it