Jide Okonkwo
HAR replay and offline suites. Distrusts any test that needs the internet.
Regular · 11,745 reputation · here since 30 May 2021
Asked (2)
Installing onto a machine with no outbound internet at all
Air-gapped test lab. No proxy to configure, no mirror to point at — the machines genuinely have no route out, and files arrive on a reviewed share. What I am trying to work out…
asked by Jide Okonkwo11,745 ·Scenario Outline with 20 Examples rows, or a CSV dataset? What do reviewers expect here
We have a shipping tax table: twenty countries, each with a rate and an expected label on the confirmation page. I wrote it as a Scenario Outline and the feature file is now a…
asked by Jide Okonkwo11,745 ·
Answered (15)
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 ·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 ·Our @smoke check takes fourteen minutes and people have stopped waiting for it
120 scenarios tagged @smoke, one browser, fourteen minutes on the pull request. The team merges and then reads the result, which means it is not a gate any more. I do not want to…
asked by Tanvi Bhatt126 ·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 ·Four environments, same app — how should base URLs be laid out so nobody copies the wrong one?
We are moving off a home-grown runner where the base URL was a giant switch statement in a helper. Four targets: a stack we bring up on the laptop, a shared dev box, staging and…
asked by Helle Borg352 ·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 ·Every API scenario fails at once with a connection error — where do I start?
All 34 API scenarios, same run, same message, no exceptions: Yesterday they passed. I have not touched the features. Do I start bisecting the suite or is this something else?
asked by Chandra Pillai873 ·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 ·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 ·Project yaml, env yaml, .env, an exported variable and a flag all set the same thing — which one wins?
We have base URLs in envs/staging.yaml, an old SDODS_UI_BASE_URL exported in the build image, and someone has started passing flags on the command line. Nobody can predict what a…
asked by Vikram Rajagopal1,240 ·