0

我想知道在描述非人类代理时,黄瓜步骤是否更适合以第三人称而不是第一人称编写的读者。我觉得更少的代词清楚谁在做什么。

Scenario: Monitor notifies admin for healthcheck failure.
  Given I am a monitor
  When I retrieve a failed healthcheck message
  Then I notifies the admin

Scenario: Monitor notifies admin for healthcheck failure.
  Given there is a monitor
  When the monitor retrieves a failed healthcheck message
  Then the monitor notifies the admin
4

1 回答 1

1

它根本没有任何区别。=p

Scenario: Monitor notifies admin of healthcheck failure.
  Given I am a monitor
  When I retrieve a failed healthcheck message
  Then I should notify an admin

Scenario: Monitor notifies admin for healthcheck failure.
  Given there is a monitor
  When it retrieves a failed healthcheck message
  Then it should notify an admin

这只是你喜欢写它的方式。=p

于 2013-04-23T17:43:33.640 回答