2013-04-23 64 views
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 

回答

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