2013-04-23 4 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

Смежные вопросы