Skip to content

← All questions

Why did my API scenario write posts.api.har and not posts.har?

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

Same tag, same command shape as the UI one, different filename. After recording:

text
projects/demo-shop/har/staging/products.har        926K   <- the @ui scenario
projects/demo-shop/har/staging/products.har.json     205
projects/demo-shop/har/staging/posts.api.har       97K    <- the @api scenario
projects/demo-shop/har/staging/posts.har.json        149

There is no posts.har. I assumed the extension was a typo somewhere until I went looking for the file by hand and could not find it. Is .api.har a different format, and why does the sidecar drop the .api but the recording keeps it?

2 answers

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related