Skip to content

← All questions

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

Asked 9,640 views3 answers

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?

asked by Kostya Petrov7,903 ·

3 answers

Have the same question?

Ask it with the command you ran and the output you got, and it will be answered here.

Ask a question

Related