21 Nov 2011

Features may look different

 Like promised, here's my suggestion to the "Create a new player" feature. As you can see the format of the file may differ but the relevant scenarios should be there. Remember also that both groups had different acceptance criteria. That means that the automated tests and documented behaviours should be different.

-------------------------------------

Feature: Create a new player

In order to be able to start managing players
As a system administrator
I can add players to the system

Scenario: Adding a player
    When I add a player 'John' 'Doe'
    Then a player with name 'John' 'Doe' is created
     And the player has default picture

Scenario: Adding a player with picture
    When I add a player with picture 'player_picture.png'
    Then a player with picture 'player_picture.png' is created

Scenario: Adding a player with a name of an existing player
    Given there is a player 'John' 'Doe'
     When I add a player 'John' 'Doe'
     Then there are 2 players with the name 'John Doe'

Scenario Outline: Adding a player without name
    When I add a player '<first name>' '<last name>'
    Then user is given an error message

    Examples:
    | first name    | last name |
    |                     | Rambo      |
    | John             |                  |
    |                     |                  |

Scenario: Adding a player with invalid picture
    When I add a player with picture 'invalid_picture.tiff'
    Then user is given an error message

No comments:

Post a Comment