Skip to content

← All questions

When should I reach for the mock step instead of @har, or the other way round?

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.

Both stub the network. I can write this:

gherkin
When I mock "**/api/banner" with JSON:
  """json
  { "text": "Welcome {{username}}" }
  """

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 pick, or is it taste?

3 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