Module 3. Practice: from requirements to automated tests · Lesson 22 of 41 · 16 min

Chrome DevTools for testers: Network, Console, Application, device emulation

How to find the cause of a bug in the browser in five minutes: requests and responses, JS errors, cookies and storage, slow networks, mobile screens.

Why QA should open DevTools

A developer can spend an hour on a "the button doesn't work" bug report. A report saying "POST /api/promo/apply returns 500, here's the request body and the x-request-id" takes five minutes. The difference is DevTools (F12, or Cmd+Option+I on a Mac).

Network: the tester's main tab

DevTools → Network: where to find the cause of a bugDevTools · Network · Fetch/XHR · Disable cache · Slow 4GNameStatusTypeSizeTimecart?id=812200fetch3.1 kB142 mspromo/apply500fetch0.4 kB891 msanalytics204beacon0 B38 msHeaders · Payload · Preview · Response · TimingRequest: POST /api/promo/apply {"code":"SALE10","cartId":812}Response: 500 {"error":"Internal Server Error"}x-request-id: 7f3c9a1e-2b4d-4c8e-9e11-0a5d2f6b7c90
DevTools → Network: where to find the cause of a bug. A schematic snapshot of the panel. The red row is a failed request: open Headers, Payload and Response, and copy the X-Request-Id into the bug report.
What to do Why
Fetch/XHR filter See only API requests
Preserve log Keep requests after navigating to another page
Disable cache Test as a first-time user
Throttling: Slow 4G, Offline Slow networks and dropped connections
Click a request → Headers, Payload, Response What was sent and what came back
Copy as cURL Replay the request in a terminal or Postman
Save all as HAR Attach the full network log to the bug

How to dig in: find a red (4xx/5xx) or suspiciously slow request → look at the request body → the response body → the request ID header. If the front end says "Error" but the API returned 200 with the right data, the defect is on the front end — say so in the report.

Console

  • Red JavaScript errors often explain "dead" buttons.
  • Mixed content, CORS and deprecated API warnings are bug candidates too.
  • Clear the console before reproducing so the screenshot shows only relevant messages.

Application

  • Cookies — does the session cookie have the HttpOnly, Secure and SameSite flags?
  • Local Storage / Session Storage — are tokens, passwords or personal data sitting there?
  • Clear site data — become a "new" user quickly without a new browser profile.

Device Mode and emulation

The phone icon (Ctrl+Shift+M) turns on screen, touch and DPR emulation. Check 375, 768 and 1280 px. Remember: it's emulation, not a real device — do the final check on an actual phone.

Useful for forms and layout

  • Elements → Edit as HTML — remove a disabled or maxlength attribute and see whether the server validates (often it doesn't!).
  • Rendering → Emulate vision deficiencies — check contrast and color blindness.
  • Lighthouse — a quick performance and accessibility audit.

What to put in the bug report

  1. The method, URL and status of the failing request.
  2. The request and response bodies (without passwords and tokens).
  3. The x-request-id or traceparent header.
  4. A console screenshot if there's an error.
  5. A HAR file for complex scenarios.

How to put it all together is covered in bugs and bug reports and the bug report template.

Key takeaways

  • Network is the main source of facts: the request, the response, the status, the request ID.
  • Removing form restrictions in Elements lets you check server-side validation.
  • Device emulation doesn't replace testing on a real phone.

Check yourself

  1. 1. The front end shows "Error", but the API returned 200 with correct data. Where's the likely defect?

  2. 2. Why turn on Preserve log?

  3. 3. You removed maxlength in DevTools, sent 500 characters, and the server saved them. This is…

Practice: Drill: find the bugs