Questions tagged har
Recording and replaying network traffic from a HAR file.
16 questions
har record printed no scrub line and the Cookie header is still sitting in the file
We only have one project registered, so I have got into the habit of leaving -p off and letting it pick. Recorded fine, scenario replays. But there was no line like this at the…
asked by Devon Marsh183 ·sdods har list leaves glob and recorded blank even though the sidecar exists
Cosmetic, but it made me think the recording was broken. The sidecar is right there next to the recording and it has the timestamp in it: The replay works. Why does the listing…
asked by Zeynep Arslan64 ·sdods har record --interactive exits before the browser even opens
Trying to capture a flow by hand rather than through a scenario. Fine, added --name checkout. Codegen opened, I clicked through the flow, closed the window, and got this: Nothing…
asked by Ingrid Solberg241 ·@har:checkout warns that no recorded file exists — is there a way to declare it up front?
Writing the scenario before recording the traffic, which I thought was the intended order: It is only a warning and I understand why — the file genuinely is not there yet. But we…
asked by Devon Marsh183 ·Running the smoke suite on a plane — what do I need so nothing touches the network?
Long flight, and separately we are being asked to prove the suite runs on an air-gapped runner. Same problem twice, so I would like to get it right once. Everything is tagged…
asked by Rasha Halabi572 ·Why does the HAR strict failure have no code, hint or docs link like every other error?
Small thing, but it broke a script. Every failure I have seen so far comes out shaped like this, and our CI wrapper parses the code out of it: A strict HAR miss comes out shaped…
asked by Koen Vermeulen309 ·GET replays fine, the POST in the same scenario misses on every run
Recorded, committed, replays fine for a day, then the POST starts failing and never recovers. The GET against the same endpoint keeps working. The entry is in the file. I opened…
asked by Tanvi Bhatt126 ·Can one session give me both the recorded spec and a HAR for offline replay?
I want the network traffic from a recording session so we can replay the flow offline in CI later. Do I record the flow, then do a second pass for the HAR, or is there a way to…
asked by Bruno Teixeira694 ·Recorded with four workers and half the requests are missing from the file
Four scenarios share @har:cart. I recorded them together to save time: The run was green and the file exists, but on replay two of the four scenarios abort on requests that…
asked by Bruno Teixeira694 ·The API added a field — how do I re-record so the old entries stop coming back?
Backend renamed a field. I re-recorded: The scenario passes now, but the file grew instead of being replaced, and the old response with the old field name is still sitting in…
asked by Nikhil Sane487 ·Why did my API scenario write posts.api.har and not posts.har?
Same tag, same command shape as the UI one, different filename. After recording: There is no posts.har. I assumed the extension was a typo somewhere until I went looking for the…
asked by Bea Lindqvist4,318 ·Green on my machine, red on the runner — it was replaying a HAR the whole time
Spent most of a day on this so I am writing it down. A colleague recorded @har:posts a fortnight ago. Since then my local runs have been passing against a payload that no longer…
asked by Yusuf Demir201 ·Should HAR files go into git? Ours are nearly a megabyte each
Three recordings and the repository is a couple of megabytes heavier: Two worries. Size, obviously, since every re-record rewrites the whole blob and the history grows. And the…
asked by Ify Adeyemi6,584 ·When should I reach for the mock step instead of @har, or the other way round?
Both stub the network. I can write this: or I can tag the scenario @har:banner and record it. They look interchangeable from where I am standing. Is there a rule for which one to…
asked by Kostya Petrov7,903 ·Can one HAR recording cover staging and prod, or is it per environment?
We have three environments that serve identical payloads. Re-recording the same traffic three times feels silly. sdods har list prints an env column so I assume the answer is no,…
asked by Sam Orbison9,420 ·Scenario tagged @har:products runs green but har/staging is still empty
I added the tag and ran the suite. It passes, but nothing lands in projects/demo-shop/har/staging/. The only odd thing in the output was a yellow line I scrolled past: Do I have…
asked by Lena Hartwig10,388 ·